itch.io is community of indie game creators and players

Devlogs

Dynamic direct sunlight

Vorxel
A downloadable game

I've got the dynamic direct sunlight pass working...

P.S. Someone on Reddit pointed out, "Why do we see jumps in brightness on the roofs and not on the ground?"

It's due to both the angle of the sunlight relative to the angle of the roofs and because the rays are marched from voxel centers (not from voxel faces) by voxel units in direction of sun. Adjacent voxels easily block sunlight for a given voxel by nature of how I'm marching rays. There may be a way to fix this without a huge performance impact but I'd have to give it more thought.

Read comments (3)