Light and Shadows example

v0.8.2

Depth bias is no longer hardcoded in the shader and can now be customized by setting light_and_shadows.depth_bias or in the sun object. What’s this? To reduce the Peter Panning effect (shadows detaching from objects) in shadow mapping, you need to adjust the shadow bias, a value that offsets the shadow depth. Too high a bias causes Peter Panning, while too low a bias leads to shadow acne.

A new Tinyworld example has been added. It uses tilemap, pixelart textures, billboard sprites and different material variants.

14 Likes

Another demo “map editor”: tiny_world 0.1 (HTML5)

Added instanced model billboad shader for the forest props. What is the FPS on your device?

16 Likes

240 FPS RTX 3080 ti

4 Likes

What is the FPS on your device?

60 FPS with Intel Iris Xe integrated graphics. I assume it could go higher if vsync were disabled.

3 Likes

160+ FPS with 1000 objects - RTX 4060 on laptop


3 Likes