Package com.google.android.filament
Class View.VsmShadowOptions
- java.lang.Object
-
- com.google.android.filament.View.VsmShadowOptions
-
- Enclosing class:
- View
public static class View.VsmShadowOptions extends java.lang.ObjectView-level options for VSM Shadowing.- See Also:
setVsmShadowOptions()
-
-
Field Summary
Fields Modifier and Type Field Description intanisotropySets the number of anisotropic samples to use when sampling a VSM shadow map.booleanhighPrecisionWhether to use a 32-bits or 16-bits texture format for VSM shadow maps.floatlightBleedReductionVSM light bleeding reduction amount, between 0 and 1.floatminVarianceScaleVSM minimum variance scale, must be positive.booleanmipmappingWhether to generate mipmaps for all VSM shadow maps.intmsaaSamplesThe number of MSAA samples to use when rendering VSM shadow maps.
-
Constructor Summary
Constructors Constructor Description VsmShadowOptions()
-
-
-
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.
-
msaaSamples
public int msaaSamples
The number of MSAA samples to use when rendering VSM shadow maps. Must be a power-of-two and greater than or equal to 1. A value of 1 effectively turns off MSAA. Higher values may not be available depending on the underlying hardware.
-
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.
-
-