POV-Ray : Newsgroups : povray.beta-test : Slope pattern : Slope pattern Server Time
4 Nov 2024 21:23:04 EST (-0500)
  Slope pattern  
From: Trevor Quayle
Date: 23 Sep 2001 15:38:46
Message: <3bae3a46@news.povray.org>
3.5 beta3 Windows

Slope pattern still does not work for slope = 1
See attached scene file, the flat top of the object should be red.

-tgq


camera{
  direction<0,0,1>
  up<0,1,0>
  right<4/3,0,0>
  location <-60,60,-60>
  look_at  0
}

light_source{
  0
  color rgb 1
  translate<-50,200,-50>
}

background {color 0}

#declare MD1=
material{
  texture{
    pigment{rgb 1}
    finish{ambient 0.5 diffuse 0.05}
  }
  texture{
    pigment{
      slope y
      color_map{
        [0.5 rgbt 1]
        [1.0 red 1]
      }
    }
    finish{ambient 0.5 diffuse 0.85}
  }
}

merge{
  torus{20 20}
  cylinder{-20*y 20*y 20}
  material{MD1}
}


Post a reply to this message

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