POV-Ray : Newsgroups : povray.advanced-users : Problems with macro (3.6) : Problems with macro (3.6) Server Time
28 Sep 2024 18:55:54 EDT (-0400)
  Problems with macro (3.6)  
From: SharkD
Date: 9 Jun 2010 17:22:25
Message: <4c100611$1@news.povray.org>
I've written the following macro to tweak some color values:

#macro gamma_color_adjust(in_color, in_transmit)
	#local out_gamma = 2.2;
	#if (in_transmit)
		VPow(in_color,out_gamma) + <0,0,0,in_transmit,>
	#else
		VPow(in_color,out_gamma)
	#end
#end

The macro takes a three component color vector as the first parameter, 
and a single transmit parameter as the second parameter. I keep getting 
the error, "Expected 6 parameters but only 5 found." What did I do wrong?


-- 
http://isometricland.com


Post a reply to this message

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