Difference between revisions of "Sample Texture2D UV (LogiX node)"
Jump to navigation
Jump to search
DoubleStyx (talk | contribs) (Created page with "<languages></languages> <translate> <!--T:1--> {{Infobox Logix Node | Name = Sample Texture2D UV | Image =File: SampleTexture2D_UVNode.png | noframe | 128px | 'Sample Textur...") |
DoubleStyx (talk | contribs) m |
||
Line 15: | Line 15: | ||
== Usage == | == Usage == | ||
− | <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 UV space, where the components of the input [[Types:Float2|float2]] range from 0.0 to 1.0. | + | <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 UV space, where the components of the input [[Types:Float2|float2]] range from 0.0 to 1.0. <code>WrapMode</code> defines whether the texture should wrap around UV space. |
== Examples == | == Examples == |
Latest revision as of 03:52, 8 May 2022
Sample Texture2D UV | ||
---|---|---|
Inputs | ||
Texture2D | Texture | |
Float2 | UV | |
WrapMode | WrapMode | |
Outputs | ||
Color | Color |
The Sample Texture2D UV node samples the color of a pixel by locating it on the input 2D texture according to the specified position in UV space. This node is distinct from from the Get Texture 2D Pixel node as it accepts a float2 instead of an int2; this lets the sampling be interpolated across pixels rather than being constrained to individual 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, where the components of the input float2 range from 0.0 to 1.0. WrapMode
defines whether the texture should wrap around UV space.