Lens Scripting API
    Preparing search index...

    Specifies what kind of render target it is. Some texture types, for example TextureCubemap, need additional properties set on the rendering camera to work correctly.

    //@input Asset.Texture renderTarget

    // Change the render target from a regular 2d render target to a cubemap
    if (script.renderTarget.control.textureType == RenderTargetProvider.TextureType.Texture2D) {
    script.renderTarget.control.textureType = RenderTargetProvider.TextureType.TextureCubemap;
    }
    Index

    Enumeration Members

    Texture2D: number

    A 2d texture. Render targets are this type by default.

    Texture2DArray: number

    A 2D array texture allowing for multiple layers in a single texture.

    Texture3D: number

    A 3D texture (volume texture) with width, height, and depth dimensions.

    TextureCubemap: number

    A cubemap render target.