Package com.google.android.filament
Class View.FogOptions
- java.lang.Object
-
- com.google.android.filament.View.FogOptions
-
- Enclosing class:
- View
public static class View.FogOptions extends java.lang.ObjectOptions to control fog in the scene
-
-
Field Summary
Fields Modifier and Type Field Description float[]colorFog's color as a linear RGB color.floatdensityfog's density at altitude given by 'height'floatdistancedistance in world units from the camera where the fog starts ( >= 0.0 )booleanenabledenable or disable fogbooleanfogColorFromIblfog color will be modulated by the IBL color in the view directionfloatheightfog's floor in world unitsfloatheightFalloffhow fast fog dissipates with altitudefloatinScatteringSizesize of in-scattering (>0 to activate).floatinScatteringStartdistance in world units from the camera where in-scattering startsfloatmaximumOpacityfog's maximum opacity between 0 and 1
-
Constructor Summary
Constructors Constructor Description FogOptions()
-
-
-
Field Detail
-
distance
public float distance
distance in world units from the camera where the fog starts ( >= 0.0 )
-
maximumOpacity
public float maximumOpacity
fog's maximum opacity between 0 and 1
-
height
public float height
fog's floor in world units
-
heightFalloff
public float heightFalloff
how fast fog dissipates with altitude
-
color
@NonNull @Size(min=3L) public float[] color
Fog's color as a linear RGB color.
-
density
public float density
fog's density at altitude given by 'height'
-
inScatteringStart
public float inScatteringStart
distance in world units from the camera where in-scattering starts
-
inScatteringSize
public float inScatteringSize
size of in-scattering (>0 to activate). Good values are >> 1 (e.g. ~10 - 100)
-
fogColorFromIbl
public boolean fogColorFromIbl
fog color will be modulated by the IBL color in the view direction
-
enabled
public boolean enabled
enable or disable fog
-
-