POV-Ray : Newsgroups : povray.advanced-users : Correct function/pigment syntax? : Correct function/pigment syntax? Server Time
25 Apr 2024 15:53:42 EDT (-0400)
  Correct function/pigment syntax?  
From: Mike Horvath
Date: 13 May 2021 18:19:05
Message: <609da5d9@news.povray.org>
I am trying to combine pigments and functions in different ways. Here is 
an example:


#declare pigment_1 = pigment
{
	slope {+y}
	color_map
	{
		[0 rgb 0]
		[1 rgb 1]
	}
}
#declare function_1 = function {pigment {pigment_1}}
#declare pigment_2 = pigment {function {function_1(x,y,z)}


But I am getting a parse error on pigment_2. What is the correct syntax 
to get this example to work?


Mike


Post a reply to this message

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