POV-Ray : Newsgroups : povray.general : Color function question : Re: Color function question Server Time
4 Nov 2024 21:24:17 EST (-0500)
  Re: Color function question  
From:
Date: 6 Sep 2003 18:47:52
Message: <3f5a6418$1@news.povray.org>
// What about something like this:


#declare Image = pigment{ image_map{ "goth.bmp" } }
#declare f_Image = function{ pigment{Image scale 2 translate <-1, -1, 0>} }

plane {
  -z, 0
  pigment{ boxed
    pigment_map {
      [ 0 color rgbt 1 ]
      [ 1E-5 function{f_Image(x,y,z).gray} ]
      }
    translate <1, 1, 0>
    scale 0.5
    }
  }

plane { -z, -1 pigment { bozo } }

light_source { <-2, 1, -3>, rgb 1 }
camera { location -3*z look_at 0 }


//   Sputnik


Post a reply to this message

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