- Home /
GetPixel in shader graph
Is there a way to find the color of a pixel (of a texture) at a given coordinate within my shader graph. Similar to Texture2D.GetPixel().
Comment
Best Answer
Answer by TreyH · Aug 09, 2019 at 06:51 PM
I think you want the Sample Texture 2D node. It's a normalized coordinate, so you'd need to scale your input by the texture's width and height to go from 0 to 1:
sample.gif
(50.3 kB)