Commit Graph

14 Commits (master)

Author SHA1 Message Date
EmaMaker 6b9b85e662 only calculate normal once 2023-02-09 10:40:45 +01:00
EmaMaker b19ee8a02a longer shadows 2023-02-09 10:40:45 +01:00
EmaMaker 2453e7afc8 a change of scenery 2023-02-09 10:40:45 +01:00
EmaMaker 24f1c905ab avoid most edge artifacts 2023-02-09 10:40:45 +01:00
EmaMaker 2c8051d81b ambient occlusion, as per inigo quilez 2023-02-09 10:40:40 +01:00
EmaMaker 02f391e6ac soft shadows + refining colors 2023-02-05 20:08:32 +01:00
EmaMaker 8979a8a5f2 infinite repeat operation 2023-02-02 15:07:27 +01:00
EmaMaker c4050461e5 finite repeat operation + drop center point in sdf
derived it all on my own :D

to work correctly, center point as argument to the sdf needs to be removed. Instead, it can be set with by subtracting the position vector from the ray position
2023-02-01 21:18:34 +01:00
EmaMaker c4b871ac09 add operations, from inigo quilez
https://iquilezles.org/articles/distfunctions
2023-01-21 20:57:49 +01:00
EmaMaker 1144e29b29 add a box for the light 2023-01-16 22:10:49 +01:00
emamaker c225fbc2ee more advance phong reflection 2023-01-16 19:10:51 +01:00
EmaMaker 3c96e9eb44 per-object coloring 2023-01-11 21:55:08 +01:00
EmaMaker b0b0a9e421 basic phong illumination 2023-01-10 22:43:54 +01:00
EmaMaker 188b53d731 initial commit 2023-01-10 19:18:57 +01:00