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 to 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)
How to use
This is not library this is example so you need manualy add it to you project. 1)Copy illumination folder 2)Use illumination render script or add logic to your script 3)Look at example.collection and add necessary objects to your collection
Support me:)
If you like the extension you can support me on patreon. It will help me make more items for defold.
- Textures in the demo are from Tiny Texture Pack 1-2 by Screaming Brain Studios.
- Specular and normal maps generated with Normal Map Online by @cpetry.
- The header background picture by Thor Alvis.