randomPoison / gunship-rs

An experimental game engine written in Rust.
MIT License
27 stars 3 forks source link

Nothing Renders If There Isn't A Light In The Scene #56

Closed randomPoison closed 8 years ago

randomPoison commented 8 years ago

Right now the rendering code within Engine::draw() doesn't even run if there is no light in the scene. The desired behavior would be for all meshes to render but with ambient light only. The draw loop should be changed to pass an empty slice (or empty iterator?) when there are no lights, and the draw code within polygon should be changed to still render meshes but with only ambient lighting if there are no lights.

randomPoison commented 8 years ago

This is currently fixed on the render_reform branch.