PCF shadow shader math causing artifacts
- by user2971069
For a while now I used PCSS for my shadow technique of choice until I discovered a type of percentage closer filtering. This method creates really smooth shadows and with hopes of improving performance, with only a fraction of texture samples, I tried to implement PCF into my shader. This is the relevant code:
float c0, c1, c2, c3;
float f =…