POV-Ray : Newsgroups : povray.general : Gradient? : Gradient? Server Time
11 Aug 2024 17:17:21 EDT (-0400)
  Gradient?  
From: ingo
Date: 9 Jun 1999 16:44:51
Message: <375ed243@news.povray.org>
In the scene below, I try to make a plane with the texture, first quarter black,
second white and the tophalf is a gradient from black to white. Well, that's
what I expected, but the top half shows a gradient form 50% to white. Why?
(Tried the same setup with a texture_map, with the same result)
How to get the result I want?

ingo
--
Met dank aan de muze met het glazen oog.

#declare CamLoc=-15*z;
camera {
  location CamLoc
  look_at z
  angle 90
  orthographic
}

plane {
   -z,-100
   no_shadow
   pigment {
      gradient y
      scale 24
      pigment_map {
         [0.25, rgb 0]
         [0.25, rgb 1]
         [0.5 , rgb 1]
         [0.5 , gradient y]
      }
      translate <0,-12,0>
   }
   finish {ambient 1}
}


Post a reply to this message

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