Hi everyone, I am using the new directional light example to develop a 2.5D game. Initially I was using the example scene provided as default so there was no problem. But when I implemented the scene manager to the game, I selected a main collection as the main collection and loaded the example scene from it using a proxy. After that, ambient light stopped working. Directional light still works and illuminates the parts of models looking at the sun (but they do not cast shadows).
I am getting this error
ERROR:SCRIPT: example/shadow_mapping.lua:190: attempt to index local 'context' (a nil value)
stack traceback:
example/shadow_mapping.lua:190: in function final
example/directional_light_shadows.render_script:266: in function <example/directional_light_shadows.render_script:265>
but I was getting it even before ambient light stopped working.
What could be the problem with this? And how do I make the models (and sprites if possible for the 2.5 style) cast shadow?
Note: When I copy my models into the unedited example project and add to the example scene, they cast shadow. So, I probably did something wrong when changing it. When I copy the lights GO from original to my edited version, it still does not cast shadows and ambient light does not work either ![]()
I can provide more information if needed ![]()