is SHADOWUPDATE_THISFRAME working for anyone? I set the shadowUpdateMode once during the update cycle, but nothing happens. Checked all light types to no avail.
From the documentation I would have thought “shadowUpdateMode = pc.SHADOWUPDATE_THISFRAME” would cause a single shadowmap update when Playcanvas enters the render cycle and is then reset to NONE.
When using “.updateShadow()” I guess it flags the renderer to update shadows in the render cycle and not immediately?
So, you can set this flag to a light either in editor or through code and it will have the result of calculating shadows for that light only on the first frame of the app’s lifetime.
At any point you can force the shadows to update using the code I posted above, that will update the shadows immediately at the next frame rendered.