Class: PCFShadowFilter

PCFShadowFilter

PCFShadowFilter is a shadow filter that provides percentage closer soft shadow mapping. However, WebGL does not support shadow test interpolations, so the results aren't as great as its GL/DX counterpart.


new PCFShadowFilter()

Properties:
Name Type Description
softness number

The softness of the shadows in shadow map space.

numShadowSamples number

The amount of shadow samples to take.

dither boolean

Whether or not the samples should be randomly rotated per screen pixel. Introduces noise but can improve the look.

Author:
  • derschmale <http://www.derschmale.com>
See:

Extends

  • ShadowFilter