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. Warning: This API is still experimental and subject to change.
-
-
Field Summary
Fields Modifier and Type Field Description intanisotropySets the number of anisotropic samples to use when sampling a VSM shadow map.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.
-
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. This implies mipmapping below.The number of anisotropic samples = 2 ^ vsmAnisotropy.
-
mipmapping
public boolean mipmapping
Whether to generate mipmaps for all VSM 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.
-
-