Freeze / bake shadow ?
I would need to disable real-time update of shadows (using jit.gl.light @shadow 1) while keeping the dropped shadow as it is (=freeze shadow)
Just like when you bake shadow in Unity / blender, …
I have a complex scene with lot of objects, enabling real-time shadow consumes too much CPU / GPU and framerate drops too low..
As my scene is static, I’d like to disable real-time computation of shadow, keeping the texture applied by jit.gl.material.
In lights.shadow.map.texture.maxpat I noticed the getshadowtexoutname message to jit.gl.light to get the shadow texture… but I can’t find a way to use it as a texture mapped on my objects.
Any help welcome !
Thanks
Mathieu