HackerPoet / PySpace

GLSL Fractal Ray Marcher in Python
MIT License
1.16k stars 149 forks source link

How to render Z-depth map? #11

Open josai opened 5 years ago

josai commented 5 years ago

Is it possible to render out just a Z-depth map for compositing in software later?

HackerPoet commented 5 years ago

Yes, I just pushed in some changes including a proper update of the depth map. The depth is in the range 0.0 to 1.0 where you can multiply by MAX_DIST to get the true depth.