POV-Ray : Newsgroups : povray.general : texture_map question : Re: texture_map question Server Time
1 Aug 2024 02:22:17 EDT (-0400)
  Re: texture_map question  
From: Jim Charter
Date: 25 May 2006 04:56:27
Message: <4475713b$1@news.povray.org>
Less suscinct
but also possible:

plane {
         z 1
         texture {
                 pigment_pattern {
                         object { T
                                  pigment {rgb 0 }
                                  pigment {rgb 1 }
                         }
                 }
                 texture_map {
                         [0 pigment {rgb Cyan }]
                         [1 pigment {rgb Red }]
                 }

         }

}

OR

#declare Fn_O =
function {
          pigment {
                  object { T
                          pigment {rgb 0 }
                          pigment {rgb 1 }
                  }

          }

};

plane {
         z 1
         texture {
                 function { Fn_O (x,y,z).gray }
                 texture_map {
                         [0 pigment {rgb Cyan }]
                         [1 pigment {rgb Red }]
                 }

         }

}


Post a reply to this message

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