POV-Ray : Newsgroups : povray.general : [bug] Discontinuous pigment : [bug] Discontinuous pigment Server Time
31 Jul 2024 14:30:36 EDT (-0400)
  [bug] Discontinuous pigment  
From: William Peska
Date: 27 Jan 2007 09:42:20
Message: <45bb64cc$1@news.povray.org>
global_settings {
   assumed_gamma 1
   radiosity { }
}

camera{
  location <5, 9, 11>
  up       <0, 1, 0>
  right    <1, 0, 0>
  look_at  <0, 0, 0>
}

plane{
  -y, -20

  pigment { rgb 1 }
  finish { ambient 1 diffuse 0 }
}

#local f = function(a, b) { min(1, (a*a + b*b) / 100) }

plane{
  y, 0

  pigment{
   function { f(x, z) }
   pigment_map{
    [0 rgb 0]
    [1 rgb 1]
   }
  }

  finish { ambient 0 diffuse 1 }
}


then the pigment is continuous:

  texture{
   function { f(x, z) }
   texture_map{
    [0 pigment {rgb 0} finish { ambient 0 diffuse 1 }]
    [1 pigment {rgb 1} finish { ambient 0 diffuse 1 }]
   }
  }

William


Post a reply to this message

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