Previous folly and finally success


So my previous attempts to reduce voxel world space coordinates to a unique set for voxel lighting passes was complete folly due to my ignorance of shader programming and not being able to find useful information online.

This video showed me exactly what I needed to know:  frozein@Youtube - Adding RAYTRACED LIGHTING to my Voxel Engine

[I've delete my devlog folly entries because they are just embarrassing knowing what I know now.]

Comments

Log in with itch.io to leave a comment.

I thought Frozein's video was quite impressive, what exactly did you learn that changed everything?

(2 edits)

The part that changed everything is about using atomic operations to query and/or update a hash map and add voxel hits to a list of voxel hits if not already present based on hash map query.  I've implemented it in my voxel engine's ray march code and it works well to build a unique list of voxel hits (voxel world space coordinates).  I also had to use an atomic operation to add to the list to avoid race conditions.

I will have dynamic direct sunlight working soon...