PSSM + VSM

Source: Internet
Author: User

I always wanted to make a soft shadow. I had a fancy to the variance shadow map for a long time, but I never realized it. I learned very well about probability theory and cannot quite understand it. However, cherbihov's inequality is still relatively simple, the basic idea is that we can use expectation and variance to obtain the upper limit of the probability of a certain distribution interval. shadowmap is the maximum probability that we can obtain the range of the current depth value in the shadowmap, this is actually similar to PCF, for the expectation and variance method, you can look at the http://www.cnblogs.com/lookof/archive/2010/03/21/1690769.html, this eldest brother wrote very good, we can open the hardware texture filter, but due to limited sampling, so the de-distribution is limited for linear, which is a two-pixel range. Of course, we can use Gaussian to perform fuzzy processing to enable anti-aliasing, which can also be used to hide the Sawtooth, gaussian's usage notes: I simply multiply the weight by a factor of 2, which makes it impossible to implement it all the time. Then I overwrite it, but it's okay. Of course, there is also the problem of Light blend, or recommended here http://www.cnblogs.com/lookof/archive/2010/03/21/1690769.html

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.