Class View.VsmShadowOptions

  • Enclosing class:
    View

    public static class View.VsmShadowOptions
    extends java.lang.Object
    View-level options for VSM Shadowing.
    See Also:
    setVsmShadowOptions()
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int anisotropy
      Sets the number of anisotropic samples to use when sampling a VSM shadow map.
      boolean highPrecision
      Whether to use a 32-bits or 16-bits texture format for VSM shadow maps.
      float lightBleedReduction
      VSM light bleeding reduction amount, between 0 and 1.
      float minVarianceScale
      VSM minimum variance scale, must be positive.
      boolean mipmapping
      Whether to generate mipmaps for all VSM shadow maps.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • anisotropy

        public int anisotropy
        Sets the number of anisotropic samples to use when sampling a VSM shadow map. If greater than 0, mipmaps will automatically be generated each frame for all lights. The number of anisotropic samples = 2 ^ vsmAnisotropy.
      • mipmapping

        public boolean mipmapping
        Whether to generate mipmaps for all VSM shadow maps.
      • highPrecision

        public boolean highPrecision
        Whether to use a 32-bits or 16-bits texture format for VSM shadow maps. 32-bits precision is rarely needed, but it does reduces light leaks as well as "fading" of the shadows in some situations. Setting highPrecision to true for a single shadow map will double the memory usage of all shadow maps.
      • minVarianceScale

        public float minVarianceScale
        VSM minimum variance scale, must be positive.
      • lightBleedReduction

        public float lightBleedReduction
        VSM light bleeding reduction amount, between 0 and 1.
    • Constructor Detail

      • VsmShadowOptions

        public VsmShadowOptions()