Class LightProbe.Builder
- java.lang.Object
-
- pro.streem.ar.sceneform.rendering.LightProbe.Builder
-
- Enclosing class:
- LightProbe
public static final class LightProbe.Builder extends java.lang.ObjectFactory class forLightProbe
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<LightProbe>build()Creates a newLightProbebased on the parameters set previouslyLightProbe.BuildersetAssetName(java.lang.String name)Set the name of the Light Probe to load if the binary bundle file contains more than one.LightProbe.BuildersetIntensity(float intensity)Set the intensity of the indirect lighting.LightProbe.BuildersetRotation(Quaternion rotation)Sets the rotation of the indirect light.LightProbe.BuildersetSource(android.content.Context context, int resource)Allows aLightProbeto be constructed from resource.LightProbe.BuildersetSource(android.content.Context context, android.net.Uri sourceUri)Allows aLightProbeto be constructed fromUri.LightProbe.BuildersetSource(java.util.concurrent.Callable<java.io.InputStream> inputStreamCreator)Allows aLightProbeto be constructed via callable function.
-
-
-
Method Detail
-
setIntensity
public LightProbe.Builder setIntensity(float intensity)
Set the intensity of the indirect lighting.- Parameters:
intensity- intensity of the indirect lighting, the default is 220.
-
setRotation
public LightProbe.Builder setRotation(@Nullable Quaternion rotation)
Sets the rotation of the indirect light.- Parameters:
rotation- the rotation of the indirect light, identity when null
-
setAssetName
public LightProbe.Builder setAssetName(java.lang.String name)
Set the name of the Light Probe to load if the binary bundle file contains more than one.- Parameters:
name- the name of the Light Probe to load.
-
setSource
public LightProbe.Builder setSource(android.content.Context context, android.net.Uri sourceUri)
Allows aLightProbeto be constructed fromUri. Construction will be asynchronous.- Parameters:
context- a context used for loading the resourcesourceUri- a remote Uri or android resource Uri.
-
setSource
public LightProbe.Builder setSource(android.content.Context context, int resource)
Allows aLightProbeto be constructed from resource. Construction will be asynchronous.- Parameters:
context- a context used for loading the resourceresource- an android resource with raw type.
-
setSource
public LightProbe.Builder setSource(java.util.concurrent.Callable<java.io.InputStream> inputStreamCreator)
Allows aLightProbeto be constructed via callable function.
-
build
public java.util.concurrent.CompletableFuture<LightProbe> build()
Creates a newLightProbebased on the parameters set previously
-
-