SampleTexture2D#

Sample a texture at a series of 2D coordinates

Installation#

To use this Node, you must enable omni.mesh.displace in the Extension Manager.

Inputs#

Name

Type

Description

Default

active

bool

If false then disable the node operation

True

texture

token

Path to the texture image to be sampled

channels

token

Name of the texture channels to be sampled

r

normalize

bool

It true then normalize the texture values to a [0,1] range, else use [0, 255]

True

center

float

Value to be considered as the center of the texture sample results

tilesS

int

Number of tiles to use in the S direction

1

tilesT

int

Number of tiles to use in the T direction

1

tile

int

Which tile in the texture to use

bundle

bundle

Bundle containing ST data

stAttrName

token

Name of ST attribute in bundle. It must be an array of float [S, T] pairs, and the image will be sampled at those coordinates.

primvars:shared:st

outputAttrName

token

Name of the attribute to be created in the output bundle to contain texture values. It will be an array of float values, regardless of the channels attribute.

displacements

Outputs#

Name

Type

Description

Default

bundle

bundle

Bundle containing texture data

reload

bool

If true then reload the texture file and set to false. This should be a state attribute, when they are implemented

True