Package com.google.android.filament
Class View.AmbientOcclusionOptions
- java.lang.Object
-
- com.google.android.filament.View.AmbientOcclusionOptions
-
- Enclosing class:
- View
public static class View.AmbientOcclusionOptions extends java.lang.ObjectOptions for screen space Ambient Occlusion (SSAO) and Screen Space Cone Tracing (SSCT)- See Also:
setAmbientOcclusionOptions()
-
-
Field Summary
Fields Modifier and Type Field Description booleanbentNormalsenables bent normals computation from AO, and specular AOfloatbiasSelf-occlusion bias in meters.floatbilateralThresholddepth distance that constitute an edge for filteringbooleanenabledenables or disables screen-space ambient occlusionfloatintensityStrength of the Ambient Occlusion effect.View.QualityLevellowPassFilteraffects AO smoothnessfloatminHorizonAngleRadmin angle in radian to considerfloatpowerControls ambient occlusion's contrast.View.QualityLevelqualityaffects # of samples used for AO.floatradiusAmbient Occlusion radius in meters, between 0 and ~10.floatresolutionHow each dimension of the AO buffer is scaled.floatssctContactDistanceMaxScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightfloatssctDepthBiasScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightfloatssctDepthSlopeBiasScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightbooleanssctEnabledScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightfloatssctIntensityScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightfloatssctLightConeRadScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightfloat[]ssctLightDirectionScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightintssctRayCountScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightintssctSampleCountScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightfloatssctShadowDistanceScreen Space Cone Tracing (SSCT) options Ambient shadows from dominant lightView.QualityLevelupsamplingaffects AO buffer upsampling quality
-
Constructor Summary
Constructors Constructor Description AmbientOcclusionOptions()
-
-
-
Field Detail
-
radius
public float radius
Ambient Occlusion radius in meters, between 0 and ~10.
-
power
public float power
Controls ambient occlusion's contrast. Must be positive.
-
bias
public float bias
Self-occlusion bias in meters. Use to avoid self-occlusion. Between 0 and a few mm.
-
resolution
public float resolution
How each dimension of the AO buffer is scaled. Must be either 0.5 or 1.0.
-
intensity
public float intensity
Strength of the Ambient Occlusion effect.
-
bilateralThreshold
public float bilateralThreshold
depth distance that constitute an edge for filtering
-
quality
@NonNull public View.QualityLevel quality
affects # of samples used for AO.
-
lowPassFilter
@NonNull public View.QualityLevel lowPassFilter
affects AO smoothness
-
upsampling
@NonNull public View.QualityLevel upsampling
affects AO buffer upsampling quality
-
enabled
public boolean enabled
enables or disables screen-space ambient occlusion
-
bentNormals
public boolean bentNormals
enables bent normals computation from AO, and specular AO
-
minHorizonAngleRad
public float minHorizonAngleRad
min angle in radian to consider
-
ssctLightConeRad
public float ssctLightConeRad
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
ssctShadowDistance
public float ssctShadowDistance
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
ssctContactDistanceMax
public float ssctContactDistanceMax
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
ssctIntensity
public float ssctIntensity
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
ssctLightDirection
@NonNull @Size(min=3L) public float[] ssctLightDirection
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
ssctDepthBias
public float ssctDepthBias
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
ssctDepthSlopeBias
public float ssctDepthSlopeBias
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
ssctSampleCount
public int ssctSampleCount
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
ssctRayCount
public int ssctRayCount
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
ssctEnabled
public boolean ssctEnabled
Screen Space Cone Tracing (SSCT) options Ambient shadows from dominant light
-
-