Skip to main content
Version: 5.x

Nodes > Functions > Sample > Texture 2D Array Sample

Texture 2D Array Sample

Samples a Texture 2D Array Object at the given Array Index.

Inputs

NameTypeDescription
TextureTEXTURE_OBJECT_2D_ARRAYTexture Array object to sample
UV CoordsfloatCoordinates to sample the texture at. Range is 0-1, but values outside this range may work depending on the texture wrap mode
Array IndexfloatWhich texture object in the array to sample
LODfloatWhich LOD level to sample from. Only works if Mipmaps are enabled in the texture parameters in the material inspector

Outputs

NameTypeDescription
ColorcolorSampled color value

Properties

NameTypeDescription
TypedropdownIf Normal Map is selected, the values will be remapped from [0 -> 1] to [-1 -> 1], which is more suitable for normal map textures
UV Coords ModedropdownChoose what source to use for the UV Coordinates. If "UV Coord 0" or "UV1 Coord 1" are selected, the respective surface UV set will be used. If "Custom" is selected, the UV Coords input will be exposed and used instead
LOD ModedropdownIf set to "Auto", LOD will be handled automatically. If set to "Custom", the LOD input will be exposed and used instead
Was this page helpful?
Yes
No