require "Vector" local V = Vector require "Primitives" local P = Primitives require "Operations" local O = Operations require "Textures" local T = Textures require "Render" local scene = { -- sdf = make_mandelbulb(T.make_count_texture(0.1)), 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.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}, point_at = V.origin, right = V.x, fov = 1}} Render.eps = 0.001 Render.bg_col = {0,0,0} Render.render(scene, 2560, 1440, "out/mandelbulb_rainbow.ppm") -- Render.render(scene, 2560, 1440, "out/mandelbulb_rainbow.ppm")