POV-Ray : Newsgroups : povray.general : Transforming an onion pattern : Re: Transforming an onion pattern Server Time
18 Apr 2024 18:32:09 EDT (-0400)
  Re: Transforming an onion pattern  
From: Mike Horvath
Date: 22 Feb 2018 18:39:57
Message: <5a8f54cd$1@news.povray.org>
Disregard. I ended up using this:


	#local inner_radius = earth_radius + cloud_min_radius;
	#local outer_radius = earth_radius + cloud_max_radius;
	#local inn_out_ratio = inner_radius/outer_radius;
		density
		{
			spherical		// spherical = 1 in the middle, 0 at the edge
			color_map
			{
				[0.00 color rgb 0.00]
				[1-(inn_out_ratio + (1-inn_out_ratio)*0.90) color rgb 1.00]
				[1-(inn_out_ratio + (1-inn_out_ratio)*0.40) color rgb 1.00]
				[1-(inn_out_ratio + (1-inn_out_ratio)*0.00) color rgb 0.00]
				[1.00 color rgb 0.00]
			}
			scale outer_radius
		}


Post a reply to this message

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