niTexturingPropertyMap⚓︎
A combination of a texture, a filter mode, a clamping mode, and an index to a set of texture coordinates.
Properties⚓︎
clampMode⚓︎
The clamp mode for the Map. Maps to values in ni.texturingPropertyClampMode table.
Returns:
result(ni.texturingPropertyClampMode)
filterMode⚓︎
The filter mode for the Map. Maps to values in ni.texturingPropertyFilterMode table.
Returns:
result(ni.texturingPropertyFilterMode)
texCoordSet⚓︎
The texture coordinate set for the Map.
Returns:
result(integer)
texture⚓︎
The texture for the Map.
Returns:
result(niTexture)
Functions⚓︎
new⚓︎
Creates a new basic or bump map.
local map = niTexturingPropertyMap.new({ texture = ..., clampMode = ..., filterMode = ..., textCoords = ..., isBumpMap = ... })
Parameters:
params(table): Optional.texture(niTexture): Optional. If provided, sets the map texture to the given value.clampMode(ni.texturingPropertyClampMode): Default:ni.texturingPropertyClampMode.wrapSwrapT. The clamp mode to set the map to use.filterMode(ni.texturingPropertyFilterMode): Default:ni.texturingPropertyFilterMode.trilerp. The filter mode to set the map to use.textCoords(integer): Default:0. The texture coordinates to set the map to use.isBumpMap(boolean): Default:false. If true, a bump map will be created instead.
Returns:
map(niTexturingPropertyMap): The created basic or bump map.