X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=blobdiff_plain;f=mandelbulb.lua;h=f39c67bc82adbf281c5dad1521de38857902f025;hb=06059eb522f33574680bb75bb73f28e2b0f6e836;hp=7d7a0113e9ddce3cb1231f1450fcb2b68528e55b;hpb=f385f4b589fc49dc55c3ce4447b4450c3e515123;p=raymarcher.git diff --git a/mandelbulb.lua b/mandelbulb.lua index 7d7a011..f39c67b 100644 --- a/mandelbulb.lua +++ b/mandelbulb.lua @@ -18,7 +18,8 @@ local scene = { sdf = P.make_mandelbulb(V.origin, 100, 8, T.make_phong_texture( {V.new{3,-5,3}}, - T.make_solid_pigment{0,0.5,1.0}, + -- T.make_solid_pigment{0,0.5,1.0}, + T.map_spherical(T.make_rainbow_pigment(0.1), V.origin, 1, 1), 0.1, 1.0, 0.0, 30)), camera = {location = V.new{0,-5,0}, @@ -28,4 +29,5 @@ local scene = { Render.eps = 0.001 Render.bg_col = {0,0,0} -Render.render(scene, 2560, 1440, "out/mandelbulb.ppm") +Render.render(scene, 2560, 1440, "out/mandelbulb_rainbow.ppm") +-- Render.render(scene, 2560, 1440, "out/mandelbulb_rainbow.ppm")