Difference between revisions of "Get Texture 3D Pixel (LogiX node)"
Jump to navigation
Jump to search
DoubleStyx (talk | contribs) m |
DoubleStyx (talk | contribs) m |
||
Line 3: | Line 3: | ||
<!--T:1--> | <!--T:1--> | ||
{{Infobox Logix Node | {{Infobox Logix Node | ||
− | | Name = | + | | Name = Get Texture 3D Pixel |
− | | Image =[[File: | + | | Image =[[File: GetTexture3D_PixelNode.png | noframe | 128px | 'Get Texture 3D Pixel' LogiX node ]] |
| Input0Type = Texture3D | Input0Name = Texture | | Input0Type = Texture3D | Input0Name = Texture | ||
− | | Input1Type = | + | | Input1Type = Int3 | Input1Name = Position |
| Output0Type = Color | Output0Name = Color | | Output0Type = Color | Output0Name = Color | ||
}} | }} | ||
<!--T:2--> | <!--T:2--> | ||
− | The '''Get Texture 3D Pixel''' node returns the color of a pixel by locating it on the input 3D texture according to the specified position. | + | The '''Get Texture 3D Pixel''' node returns the color of a pixel by locating it on the input 3D texture according to the specified position. This node is distinct from from the [[Sample_Texture3D_UVW_(LogiX_node)|Sample Texture3D UVW]] node as it accepts an int3 instead of an float3; this ensures the sampling remains constrained to individual pixels rather than being [https://en.wikipedia.org/wiki/Texture_filtering interpolated across pixels]. |
== Usage == | == Usage == | ||
− | <code>Texture</code> is the texture you want to sample a pixel from. <code>Position</code> is the | + | <code>Texture</code> is the texture you want to sample a pixel from. <code>Position</code> is the coordinate of the point you want to sample in [https://en.wikipedia.org/wiki/UV_mapping UV space]. |
== Examples == | == Examples == | ||
Line 20: | Line 20: | ||
</translate> | </translate> | ||
[[Category:LogixStubs]] | [[Category:LogixStubs]] | ||
− | [[Category:LogiX{{#translation:}}| | + | [[Category:LogiX{{#translation:}}|Get Texture 3D Pixel]] |
− | [[Category:LogiX:Assets{{#translation:}}| | + | [[Category:LogiX:Assets{{#translation:}}|Get Texture 3D Pixel]] |
{{:NodeMenu-Assets{{#translation:}}}} | {{:NodeMenu-Assets{{#translation:}}}} |
Revision as of 03:36, 8 May 2022
Get Texture 3D Pixel | ||
---|---|---|
Inputs | ||
Texture3D | Texture | |
Int3 | Position | |
Outputs | ||
Color | Color |
The Get Texture 3D Pixel node returns the color of a pixel by locating it on the input 3D texture according to the specified position. This node is distinct from from the Sample Texture3D UVW node as it accepts an int3 instead of an float3; this ensures the sampling remains constrained to individual pixels rather than being interpolated across pixels.
Usage
Texture
is the texture you want to sample a pixel from. Position
is the coordinate of the point you want to sample in UV space.