POV-Ray : Newsgroups : povray.binaries.images : looks_like : looks_like Server Time
28 Apr 2024 11:10:25 EDT (-0400)
  looks_like  
From: Mike Horvath
Date: 8 Sep 2016 00:54:14
Message: <57d0eef6@news.povray.org>
Is this the correct way to set up a light_source and attached object?

// Sun
light_source
{
	Source_Location
	rgb light_color
	looks_like
	{
		sphere
		{
			Source_Location, Source_Radius
			texture
			{
				pigment {color rgb light_color}
				finish
				{
					emission	1
					ambient		0
					diffuse		0
				}
			}
		}
	}
	parallel
}

Note that the light source and object are both located at 
Source_Location. I'm not sure how to test whether I'm doing it right or 
wrong.

Mike


Post a reply to this message

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