bfops / playform

Voxel sandbox project in Rust
http://playformdev.blogspot.ca/
MIT License
212 stars 24 forks source link

Deferred shading #150

Closed bfops closed 8 years ago

bfops commented 9 years ago

The finer points of shading (e.g. texturing and lighting) to a deferred shader don't need to happen for every fragment; they only need to happen for every rendered fragment. Move them to a deferred shader to avoid the extra work.

bfops commented 8 years ago

WIP https://github.com/bfops/playform/tree/deferred-shading

bfops commented 8 years ago

Done-ish, except depth fog (and horribly hacky code), but the performance graphs look exactly the same.