Overview
This extension contains ready-to-use forward shading lighting for 3D games made with Defold. Just set the provided material to your mesh and place light sources on the scene.
Technically it supports about ~200 light sources, but the performance limit is about 20-30 sources at the moment. Need to implement clustered forward shading to get a valuable performance boost.
All the lighting data passed to the shader program as the texture, so it doesn’t use a render script.
Play HTML5 demo with on the E
key.
Look at Operator, Kinematic Walker and TrenchBroom used in the demo.
Features
- Linear and radial fog.
- Ambient lighting.
- Directional lighting.
- Light points and spots.
- Everything can be animated with
go.animate()
. - Support for baked light maps (also can be used as emission maps).
- Support for specular maps.
- Support for normal maps.
Media
Documentation
Full documentation is available in GitHub repository.