Skip to main content
Version: 5.x

Nodes > Inputs > Parameters > Texture Cube Parameter

Texture Cube Parameter

Exposes a texture cube parameter on the material. This value can be modified through the Inspector panel or by script at runtime.

In addition, this node automatically samples the texture cube at the given a 3D direction vector. The UVW coordinate represents a direction from the center of the cube to the value to be accessed.

Inputs

NameTypeDescription
UVW CoordsfloatThe 3D direction vector to sample the texture cube at. Range is 0-1, but values outside this range may work depending on the texture wrap mode.
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
Texture SizefloatDimensions of the texture (width, height), in pixels
Pixel SizefloatWidth and height of a pixel (1/texture size)

Properties

NameTypeDescription
TitlestringTitle used for this parameter when viewing the Material in the Inspector
Script NamestringVariable name scripts can use to access this parameter through the Material's mainPass
LOD ModedropdownIf set to "Auto", LOD will be handled automatically. If set to "Custom", the LOD input will be exposed and used instead
Expose Size OutputsboolIf enabled, the Texture Size and Pixel Size output ports will be exposed
GroupstringIf not empty, specifies the parameter group this parameter is shown in
Sort IndexintSpecifies the order this should be listed relative to other parameters
TooltipstringTooltip message shown on mouse hover
Was this page helpful?
Yes
No