I have a GradientTexture
. I want to get a color from a position in it (not just the colors in the array, but the final texture).
For example, if i have the default GradientTexture
(Black to white, width 2048), getting the pixel at position 1024 should return Color(0.5,0.5,0.5)