POV-Ray : Newsgroups : povray.binaries.images : looks_like : Re: looks_like Server Time
7 Nov 2024 04:53:56 EST (-0500)
  Re: looks_like  
From: Mike Horvath
Date: 8 Sep 2016 04:00:51
Message: <57d11ab3$1@news.povray.org>
On 9/8/2016 3:57 AM, clipka wrote:
> Am 08.09.2016 um 06:54 schrieb Mike Horvath:
>> Is this the correct way to set up a light_source and attached object?
>
> Nope.
> A looks_like object needs to be constructed at <0,0,0>, as POV-Ray
> automatically adds a translation to the light source's location.
>
> I do agree that this is poorly documented in the official documentation.
>

So this is better?


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


Post a reply to this message

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