Mix of defold-illumination and defold-light-and-shadows
This example contains ready-to-use forward shading lighting mixed with realtime shadow from one source (the sun)
Play HTML5 demo with on the E
key.
Pros:
- Worked in mobile( defold-illumination not worked in my mobile looks like shader precision problem)
- Frustum culling for light sources(from scene3d)
- Clustered forward shading
- Dynamic shadow matrix(update the shadow matrix whenever the camera moves so that it ideally describes the cameraโs frustum)
Cons:
- Remove normal and specular map. I do not use it in my games. So if you need them you can add them by yourself(look in illumination sources)
- Web build contains some precision issues(need find and fix them)