POV-Ray : Newsgroups : povray.advanced-users : Local variables in a function : Re: Local variables in a function Server Time
6 Oct 2024 13:58:13 EDT (-0400)
  Re: Local variables in a function  
From: Tim Attwood
Date: 17 Jul 2006 07:22:20
Message: <44bb72ec@news.povray.org>
If you are really set on feeding raw data into functions,
you can use an image map pigment function, and edit
an image to contain your data in one of the color channels.

#declare TooFun = function {
   pigment {
     image_map {
        tga "fun_map.tga"
     }
   }
};
#declare TooFunX = function(x) {
   TooFun(x,0,0).x
};


Post a reply to this message

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