POV-Ray : Newsgroups : povray.unofficial.patches : interior_texture doesn't work with CSG? : Re: Do shadow rays take into account interior_texture? Server Time
2 Sep 2024 00:16:19 EDT (-0400)
  Re: Do shadow rays take into account interior_texture?  
From: Warp
Date: 28 Jul 2000 11:01:19
Message: <3981a03f@news.povray.org>
I think that the source code and the image itself are self-explanatory:

#version Unofficial MegaPov 0.5;

camera { location <0,-.5,-6> look_at 0 angle 35 }

// A plane with opaque outer texture and transparent inner texture (with
// slides of opaque to visualize where the plane actually is):
plane
{ y,0
  texture
  { pigment { rgb 1 } }
  interior_texture
  { pigment
    { gradient x color_map
      { [0 rgb 1][.05 rgb 1][.05 rgbt 1][.95 rgbt 1][.95 rgb 1][1 rgb 1]
      }
    }
  }
}

// A red light source above the plane
light_source
{ <1,1,0>, <1,0,0>
  looks_like { sphere { 0,.1 pigment { rgb <1,.5,.5> } finish { ambient 1 } } }
}
// A blue light source below the plane
light_source
{ <1,-1,0>, <0,0,1>
  looks_like { sphere { 0,.1 pigment { rgb <.5,.5,1> } finish { ambient 1 } } }
}

// Sphere above the plane:
sphere { <-1,1,0>, .5 pigment { rgb 1 } finish { specular .5 } }

// Sphere below the plane:
sphere { <-1,-1,0>, .5 pigment { rgb 1 } finish { specular .5 } }


-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.