Class LightProbe.Builder

  • Enclosing class:
    LightProbe

    public static final class LightProbe.Builder
    extends java.lang.Object
    Factory class for LightProbe
    • 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 a LightProbe to be constructed from Uri. Construction will be asynchronous.
        Parameters:
        context - a context used for loading the resource
        sourceUri - a remote Uri or android resource Uri.
      • setSource

        public LightProbe.Builder setSource​(android.content.Context context,
                                            int resource)
        Allows a LightProbe to be constructed from resource. Construction will be asynchronous.
        Parameters:
        context - a context used for loading the resource
        resource - an android resource with raw type.
      • setSource

        public LightProbe.Builder setSource​(java.util.concurrent.Callable<java.io.InputStream> inputStreamCreator)
        Allows a LightProbe to be constructed via callable function.
      • build

        public java.util.concurrent.CompletableFuture<LightProbe> build()
        Creates a new LightProbe based on the parameters set previously