POV-Ray : Newsgroups : povray.newusers : Color encoding of a linear_spline due to z-axis value : Re: Color encoding of a linear_spline due to z-axis value Server Time
29 Jul 2024 08:11:46 EDT (-0400)
  Re: Color encoding of a linear_spline due to z-axis value  
From: Mr Seb
Date: 23 Apr 2006 14:10:40
Message: <444bc320@news.povray.org>
Try this :
#declare pig=pigment {gradient y color_map{
 [0 Black]
 [1 Red]
 }
 scale 300
 }

(the 300 is approximative, this is the max_y in your example)

and replace pigment {Red} by pigment {pig} in your scene
"


Post a reply to this message

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