FosterFramework / Foster

A small C# game framework
MIT License
435 stars 38 forks source link

Improvements #35

Closed amerkoleci closed 10 months ago

amerkoleci commented 10 months ago
MrBrixican commented 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.

amerkoleci commented 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.

Mmm, d3d11 for example uses float

MrBrixican commented 10 months ago

You know what, I screwed up on the math. floats have 32 bits, not 16. Ignore what I said, floats are fine.

amerkoleci commented 10 months ago

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 :)

NoelFB commented 10 months ago

Looks good, thanks! :D