What i want to do is read all the texels of a 2Dtexture to find a texel that has 1 special value, there is always only one texel or none with this special value, then i want to save its (x,y) texture coordinates to use the texel in other frames.
so my problem is a fast way to save that location.
Rendering to a texture with just 1 texel the (x,y) coordinates, is a solution but i want to know if there are better ways.
Popular Topics
Advertisement