Hello , So i'm trying to get the view-space normals texture from the g-buffer. Is there anyway to grab it (since i don't want to re-render them). Thanks
Found them : They are stored in : CameraGBufferTexture0 , CameraGBufferTexture1 ,CameraGBufferTexture2 and CameraGBufferTexture3... CameraGBufferTexture2 holds the normals.
If I read and write the exact values I get from the normals, the lighting turns out wrong. Not sure if that's because I am reading "and" writing to the buffer or if Unity is actually smart enough to give me a temp buffer to write to that it applies back into the main gBuffers after the render pass. I'm trying to read gBuffer data and write back modified gBuffer data in screen-space "before" lighting is applied (ie. not a post lighting effect).
Yes, but if I read and write the exact same value into the gBuffer normals, shouldn't I get the exact same result as if I had done nothing?