Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:SampleTexture2DUV

From Resonite Wiki
Sample Texture 2D UV
Texture
*
UV
WrapMode
Assets


Sample texture 2D UV is a node that allows you to sample the pixel color of an 2 dimensional Texture that has readable enabled based on a 0->1 range on UV instead of pixels. Since the StaticTexture2D component needs to have readable enabled, most players opt to keep a component on the object that their code is on, and then change it's URL so they can read the image's pixels.

This node also takes a raw IAsset<Texture2D> instead of an asset provider. To extract the raw texture reference from the provider for use in this node, see the Get Asset Node.

Inputs

The raw asset of an IAssetProvider<Texture2D> extracted using a Get Asset Node.

UV (Float2)

The UV position to sample the colorX from.

WrapMode (WrapMode)

Which mode should be used when sampling past the UV 0-1 space.

Outputs

* (colorX)

The ColorX color from the provided Texture (IAsset<Texture2D>) at the provided UV Position (Float2).

Examples