Closed amerkoleci closed 10 months ago
We should probably be using double
as glClearDepth
uses double
not float
, and our depth buffers have 24 bits of precision, more than the 16 max we could specify via float
.
We should probably be using
double
asglClearDepth
usesdouble
notfloat
, and our depth buffers have 24 bits of precision, more than the 16 max we could specify viafloat
.
Mmm, d3d11 for example uses float
You know what, I screwed up on the math. floats have 32 bits, not 16. Ignore what I said, floats are fine.
You know what, I screwed up on the math. floats have 32 bits, not 16. Ignore what I said, floats are fine.
Saw that, don't worry :)
Looks good, thanks! :D