OsnaCS / plantex

(UNMAINTAINED) :seedling: experimental open-world exploration game with plants :evergreen_tree: :leaves: :herb: :palm_tree:
Apache License 2.0
191 stars 37 forks source link

Basic world shadowing #124

Closed jonas-schievink closed 8 years ago

jonas-schievink commented 8 years ago

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.

jonas-schievink commented 8 years ago

Oh oops, I accidentally the whole branch :bomb: :boom:

jonas-schievink commented 8 years ago

Yay for reflog!

LukasKalbertodt commented 8 years ago

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.