Post

Replies

Boosts

Views

Activity

Writing to depth buffer
Hi-Just curious.. I'm trying to write a custom depth out in the fragment shader and I can't seem to figure out how to do this. I looked into writing to the depth texture, but the access::write is not allowed for a depth2d<> var. Is there any way to do this without doing a pre-pass?Seems odd that the same hardware that runs OpenGLES3 w/depth buffer write can't do it in the metal side of the house..Thanks!
3
0
3.1k
Nov ’18