POV-Ray : Newsgroups : povray.advanced-users : Function logic? : Re: Function logic? Server Time
28 Jul 2024 16:15:45 EDT (-0400)
  Re: Function logic?  
From: Tim Nikias
Date: 6 Dec 2004 17:20:59
Message: <41b4db4b$1@news.povray.org>
> I think you need to add an extra step
>
> #declare Snow_Pig_Turb = pigment{bozo color_map{[0 rgb 1][1 rgb .85]}}
> #declare Pig_Function = function{pigment{Snow_Pig_Turb}}
> #declare SnowFunction = function{Pig_Function(x,y,z).x}

Thanks, this works nicely. Should have come to that conclusion by myself,
but once you get someone telling you how to do things, you trust them... :-)

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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