hadronized / quaazar

Realtime 3D engine
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Basic ambient lighting #26

Closed hadronized closed 9 years ago

hadronized commented 9 years ago

Lighting

Lighting is, at current revision, implemented only in terms of Omni lighting. This is an issue because we’ll want several kinds of light be included among:

The idea of this change is to refactor the current lighting system to make it more about to include a new kind of light.

Lighting and Shadowing

Those types are going to change to only gather… framebuffers. That’s the only one thing we need to provide.

hadronized commented 9 years ago

Impacts

Core.Light

Of course, our core LightType is about to change to introduce this. We’ll add the constructor Ambient. On Ambient lights, shadowing can’t be enabled.

Shaders

Our current shaders (lighting and shadowing) implements both lighting and shadowing aspects for omnidirectional lights. That is wrong. We need to find a way to change the shader regarding the light type. Better, we need to render all types of a given type all at the same time.