Want to store info in the alpha channel but NOT have it blend the pixel

44 Views Asked by At

This is regarding an SSAO buffer. I'm storing the normals in RGB. If I don't put 1.0 in A, it will blend the normals with what's already there as a normal alpha blend operation.

I want to store some additional info in the alpha buffer, and NEVER have it blend-- I want it always to blt the value of the pixel if it passes the z-test with no blending based on the contents of A.

Is it possible to do this with GLES 3.0?

tldr: I want every single pixel write to STAMP the pixel, and never blend based on alpha, always just write whatever values passed the z-test.

(Edit: Forgot to add, I'm already saying glDisable(GL_BLEND) beforehand... it still is blending the pixel, I can't seem to stop it)

0

There are 0 best solutions below