I added a universal camera, but rotating the camera causes glitches randomly. I don’t know why this is happening.
The current behaviour is attached in the video below. The issue can be seen happening at 00:04, 00:07, 00:08
You can give it a try here https://playground.babylonjs.com/#BW4ZUC#7 .