ProtoFlux:SampleTexture3DUVW: Difference between revisions

From Resonite Wiki
Create Sample Texture3D UVW ProtoFlux Node
 
Updated description and links.
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#Invoke:ProtoFlux|GenerateUI
{{#Invoke:ProtoFlux|GenerateUI
|Name=Sample Texture 2D UVW
|Name=Sample Texture 3D UVW
|Category=Assets
|Category=Assets
|Inputs=
|Inputs=
[
[
{"Name":"Texture", "Type":"Texture2D"},
{"Name":"Texture", "Type":"Texture3D"},
{"Name":"UVW", "Type":"float2"}
{"Name":"UVW", "Type":"float2"}
]
]
Line 14: Line 14:




Sample texture 2D UVW is a node that allows you to sample the pixel color of an [[Type:ITexture3D|3 dimensional Texture]] that has readable enabled based on a 0->1 range on UVW instead of pixels.
The '''Sample Texture 3D UVW''' node allows you to sample the pixel color of a [[Texture3D]] that has readable enabled based on a 0->1 range on UVW instead of pixels.
Since the [[Component:StaticTexture3D|StaticTexture3D]] 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.
Since the [[Component:StaticTexture3D|StaticTexture3D]] 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.



Latest revision as of 22:39, 19 October 2025

Sample Texture 3D UVW
Texture
*
UVW
Assets


The Sample Texture 3D UVW node allows you to sample the pixel color of a Texture3D that has readable enabled based on a 0->1 range on UVW instead of pixels. Since the StaticTexture3D 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<Texture3D> 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

Texture (IAsset<Texture3D>)

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

UVW (Float2)

The UVW position to sample the colorX from.

Outputs

* (colorX)

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

Examples