• Samples a 2d texture array using the given UV coordinates, layer and optional properties.

    Parameters

    • texture: Texture

      The 2d texture array to sample.

    • uv: NodeMaterialConnectionPoint

      The UV coordinates.

    • layer: NodeMaterialConnectionPoint

      The layer index in the texture array.

    • Optionaloptions: Partial<TextureBlockOptions>

      Optional properties for the texture block.

    Returns TextureBlock