Last night I had decided that I wanted to take a look at what it would take to get some better looking shadows in the BGE. After doing some reading on soft shadows, I implemented PCF soft shadows in the BGE. Here are my results:

PCF Soft Shadows in the BGE

PCF Soft Shadows in the BGE

Currently the only user control over the soft shadows is the sample size which is controlled by the softness value. The number of samples is hard coded to 16 (4×4).

Here is the patch:

Cheers,
Moguri

Advertisements