I’ve been trying to create a grey (0.5, 0.5, 0.5, 1) RenderTexture via code doing something like this:
RenderTexture.active = targetTexture;
GL.Clear(true, true, Color.grey);
RenderTexture.active = null;
but this doesn’t work and the texture is always way clearer (-> closer to white) than it should be:
Any idea?
I thought it might have to do wuth the texture format and color space, but i tried everything and it doesnt seem to sort any effect