POV-Ray : Newsgroups : povray.advanced-users : Problems with macro (3.6) : Re: Problems with macro (3.6) Server Time
29 Jun 2024 02:07:46 EDT (-0400)
  Re: Problems with macro (3.6)  
From: SharkD
Date: 10 Jun 2010 23:57:37
Message: <4c11b431@news.povray.org>
I changed the macro to this and it seems to work OK:


#macro gamma_color_adjust(in_color)
	#local out_gamma = 2.2;
	#local in_color = in_color + <0,0,0,0,0>;
	<
		pow(in_color.red, out_gamma),
		pow(in_color.green, out_gamma),
		pow(in_color.blue, out_gamma),
		in_color.filter,
		in_color.transmit
	>
#end


-- 
http://isometricland.com


Post a reply to this message

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