using depth buffer as a texture of another object3d, possible?

Started by MichaelJPCT, November 19, 2020, 07:57:11 AM

Previous topic - Next topic

MichaelJPCT

i don't mean using it in shadow mapping, but in other situations.
although i haven't found a use of this , but i think it has special use.

EgonOlsen

You can assign the texture with the rendered depth buffer to another object and do something with it in the shader. That said, jPCT's shadow mapper doesn't do this but it's encoding the depth values in the actual pixel data for reasons that I can't remember anymore. Some compatibility issues, I guess...