Texture Lookup Color#

MDL Identifier: support_definitions::lookup_color

Description: Returns a value from a bitmap texture

Display Name

Type

Parameter

Default

Description

tex

uniform texture_2d

tex

coord

float2

coord

float2(0.0)

UV input

wrap_u

uniform wrap_mode

wrap_u

wrap_repeat

wrap_clamp, wrap_repeat, wrap_mirrord_repeat, wrap_clip

wrap_v

uniform wrap_mode

wrap_v

wrap_repeat

wrap_clamp, wrap_repeat, wrap_mirrord_repeat, wrap_clip

crop_u

uniform float2

crop_u

float2(0.0, 1.0)

The crop parameters further define a sub-range on the texture that is actually used and that defines the normalized texture space in the range [0, 1). The crop parameter defaults float2(0.0, 1.0) corresponds to the whole texture in the corresponding axis.

crop_v

uniform float2

crop_u

float2(0.0, 1.0)

The crop parameters further define a sub-range on the texture that is actually used and that defines the normalized texture space in the range [0, 1). The crop parameter defaults float2(0.0, 1.0) corresponds to the whole texture in the corresponding axis.