Class EnvironmentalHdrParameters
- java.lang.Object
-
- pro.streem.ar.sceneform.utilities.EnvironmentalHdrParameters
-
public class EnvironmentalHdrParameters extends java.lang.ObjectProvides scaling factors from Environmental Hdr to Filament.A conversion is required to convert between Environmental Hdr units and an intensity value Filament can use.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnvironmentalHdrParameters.BuilderBuilds ViewerConfig, a collection of runtime config options for the viewer.
-
Field Summary
Fields Modifier and Type Field Description static floatDEFAULT_AMBIENT_SH_SCALE_FOR_FILAMENTstatic floatDEFAULT_DIRECT_INTENSITY_FOR_FILAMENTstatic floatDEFAULT_REFLECTION_SCALE_FOR_FILAMENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnvironmentalHdrParameters.Builderbuilder()Constructs a builder, all required fields must be specified.floatgetAmbientShScaleForFilament()A scale factor bridging Environmental Hdr's ambient sh to Filament's ambient sh values.floatgetDirectIntensityForFilament()Environmental Hdr provides a relative intensity, a number above zero and often below 8.floatgetReflectionScaleForFilament()A scale factor bridging Environmental Hdr's relative intensity to a lux based intensity for reflections only.static EnvironmentalHdrParametersmakeDefault()
-
-
-
Field Detail
-
DEFAULT_AMBIENT_SH_SCALE_FOR_FILAMENT
public static final float DEFAULT_AMBIENT_SH_SCALE_FOR_FILAMENT
- See Also:
- Constant Field Values
-
DEFAULT_DIRECT_INTENSITY_FOR_FILAMENT
public static final float DEFAULT_DIRECT_INTENSITY_FOR_FILAMENT
- See Also:
- Constant Field Values
-
DEFAULT_REFLECTION_SCALE_FOR_FILAMENT
public static final float DEFAULT_REFLECTION_SCALE_FOR_FILAMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static EnvironmentalHdrParameters.Builder builder()
Constructs a builder, all required fields must be specified.
-
makeDefault
public static EnvironmentalHdrParameters makeDefault()
-
getAmbientShScaleForFilament
public float getAmbientShScaleForFilament()
A scale factor bridging Environmental Hdr's ambient sh to Filament's ambient sh values.This number has been hand tuned by comparing lighting to reference app /third_party/arcore/unity/apps/whitebox
-
getDirectIntensityForFilament
public float getDirectIntensityForFilament()
Environmental Hdr provides a relative intensity, a number above zero and often below 8.
-
getReflectionScaleForFilament
public float getReflectionScaleForFilament()
A scale factor bridging Environmental Hdr's relative intensity to a lux based intensity for reflections only.
-
-