ProtoFlux:GetTexture3DPixel: Difference between revisions

From Resonite Wiki
m style
Updated link.
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:




The '''Get Texture 3D Pixel''' node allows one to sample the pixel color of an [[Type:ITexture3D|ITexture3D]] that has <code>Readable</code> enabled. Since the [[Component:StaticTexture3D|StaticTexture3D]] component needs to have <code>Readable</code> 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.
The '''Get Texture 3D Pixel''' node allows one to sample the pixel color of a [[Texture3D]] that has <code>Readable</code> enabled. Since the [[Component:StaticTexture3D|StaticTexture3D]] component needs to have <code>Readable</code> 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 <code>[[Type:IAsset`1|IAsset]]<Texture3D></code> instead of an asset provider. To extract the raw texture reference from the provider for use in this node, see the [[ProtoFlux:Get Asset|Get Asset]] node.
This node also takes a raw <code>[[Type:IAsset`1|IAsset]]<Texture3D></code> instead of an asset provider. To extract the raw texture reference from the provider for use in this node, see the [[ProtoFlux:Get Asset|Get Asset]] node.

Latest revision as of 22:41, 19 October 2025

Get Texture 3D Pixel
Texture
*
Position
MipLevel
Assets


The Get Texture 3D Pixel node allows one to sample the pixel color of a Texture3D that has Readable enabled. 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.

Position (Int3)

The Position to sample the colorX from.

MipLevel (Int)

The MipMap level of the provided image to sample from. Highest quality by default.

Outputs

* (colorX)

The ColorX color from the provided Texture (IAsset<Texture3D>) at the provided Position (Int3) with the provided quality MipLevel (Int).

Examples