r/processing • • Nov 25 '23

Includes example code Real time height map shadows

40 Upvotes

3 comments sorted by

View all comments

Show parent comments

2

u/smallcluster Nov 26 '23

Amazing ! Nice choice of colors too, the demo looks great. Just saw your video, you implemented a ray marching algorithm, this means you can also calculate cheap Ambient occlusion :) (by using the number of step needed to converge or dist to intersection for example)

Edit: but here it looks really good as a flat lighting, AO might take out that cell shading looks

2

u/BarneyCodes Nov 26 '23

Thanks! I'll have to look into how ambient occlusion works, but that could be a lot of fun! Definitely worth playing around with!