Aeva / m.grl

Midnight Graphics & Recreation Library
http://mgrl.midnightsisters.org
GNU Lesser General Public License v3.0
44 stars 3 forks source link

add non-shadowcasting light types to m.lights #225

Closed Aeva closed 8 years ago

Aeva commented 8 years ago

This ticket covers adding support for the following types to m.light.js and the deferred renderer:

To keep things issue, casting shadows for either of the above should be in separate tickets, and that their "casts shadows" property should be frozen false for now.

Aeva commented 8 years ago

The deferred renderer now supports spot lights, point lights, and sun lights. Of those, only spot lights cast shadows at the moment. Eventually all three types should support shadows, but that is the scope of other tickets. Point lights would need texture cubes and probably some changes to the compositing graph; sun lights would be like orthographic point lights, but there is some logic needed to determine where the light's camera's virtual position would be.