4 ms·
It does looks like float32 errors from moving the camera too far in a scene. Seen it before while trying to create an infinite city in WebGL. I ended up creat
by Baristan 10y ago
It does looks like float32 errors from moving the camera too far in a scene.
Seen it before while trying to create an infinite city in WebGL. I ended up creating a world offset for each sector, and every time the camera's position was more than a sector length, reposition the camera in the scene and adjust the sector offsets. May not be the best solution, but it was quick and worked.
- astrange 10y agoYou can use fixed-point math to avoid this, but it doesn't get all the cool language support.