Node Sample Texture - anticto/Mutable-Documentation GitHub Wiki

image


Function

Samples a texture at the chosen coordinates at runtime and returns the sampled color.


Use Cases

Sample a color bar, to offer many skin tone options with a gradient between values.


Input Pins

Texture: Texture from where the sample will be taken.

X: Optional number from 0.0 to 1.0 defining the horizontal sample point in the texture. 0.0 refers to the leftmost pixel, 1.0 to the rightmost pixel, and the intermediate values will progress from left to right as they are increased. Defaults to 0.5, the middle of the texture.

Y: Optional number from 0.0 to 1.0 defining the vertical sample point in the texture. 0.0 refers to the topmost pixel, 1.0 to the bottom pixel, and the intermediate values will progress from top to bottom as they are increased. Defaults to 0.5, the middle of the texture.


Output Pins

Color: Color of the pixel under the defined location in the provided texture.