Closed jonas-schievink closed 8 years ago
Oh oops, I accidentally the whole branch :bomb: :boom:
Yay for reflog
!
You're using a real depth framebuffer, which OpenGL writesgl_Position.z/gl_Position.w
to. This means the depth distribution is logarithmic, which could decrease accuracy at the back plane. However, this might not matter at all...
Apart from that, this looks good to me after skimming the code.
Plants are not yet affected by shadows (but they do cast shadows). We'll do that later, after we wrote a fragment shader we like.