Shifted mandelbulb sdf out to primitives.
[raymarcher.git] / Textures.lua
index ccc7dbc..ad805a6 100644 (file)
@@ -29,6 +29,7 @@ local function make_phong_texture(lights, mapped_pigment, amb, diff, spec, shiny
          local light_dir = (light-location)/light_dist
 
          local vis = light_visibility(location + light_dir*eps, light_dir, eps, light_dist, 1, sdf)
+         -- local vis = 1.0
 
          local Idiff = math.max(normal*light_dir, 0)
          local Ispec = math.pow(math.max(light_dir*reflected_ray,0),shiny)
@@ -168,6 +169,7 @@ Textures = {
    make_count_texture = make_count_texture,
    make_solid_pigment = make_solid_pigment,
    make_checkered_pigment = make_checkered_pigment,
+   make_image_pigment = make_image_pigment,
    make_mandelbrot_pigment = make_mandelbrot_pigment,
    map_rectangular = map_rectangular,
    map_spherical = map_spherical