Difference between revisions of "Get Texture 2D Pixel (LogiX node)"
Jump to navigation
Jump to search
DoubleStyx (talk | contribs) m |
DoubleStyx (talk | contribs) m |
||
Line 12: | Line 12: | ||
<!--T:2--> | <!--T:2--> | ||
− | The '''Get Texture 2D Pixel''' node returns the color of a pixel by locating it on the input 2D texture according to the specified position. | + | The '''Get Texture 2D Pixel''' node returns the color of a pixel by locating it on the input 2D texture according to the specified position. This node is distinct from from the [[Sample_Texture2D_UVW_(LogiX_node)|Sample Texture2D UVW]] node as it accepts an int2 instead of an float2; 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 | + | <code>Texture</code> is the texture you want to sample a pixel from. <code>Position</code> is the 2D coordinate (starting from the bottom left of the texture) of the pixel you want to return the color value of. |
== Examples == | == Examples == |
Revision as of 03:50, 8 May 2022
Get Texture 2D Pixel | ||
---|---|---|
Inputs | ||
Texture2D | Texture | |
Int2 | Position | |
Int | MipLevel | |
Outputs | ||
Color | Color |
The Get Texture 2D Pixel node returns the color of a pixel by locating it on the input 2D texture according to the specified position. This node is distinct from from the Sample Texture2D UVW node as it accepts an int2 instead of an float2; 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 2D coordinate (starting from the bottom left of the texture) of the pixel you want to return the color value of.