The direction property is the way to go. As of 3.5, directional lights
don't have positions, which never made sense anyway since dir lights
are orthographic in a way, and not to be considered as point in space
-- they are infinitely far away.

If you cannot get direction to work like below, make sure you are
using materials that support dir lights!

var light : DirectionalLight3D = new DirectionalLight3D;
light.direction = new Number3D(0, -1, 0); // Downward

Cheers
/R

On Jun 5, 10:15 pm, fab4ce <[email protected]> wrote:
> Hi Fabrice,
>
> PointLight3D has a position property, but DirectionalLight3D doesn´t
> have it.
>
> On 5 Jun., 19:53, Fabrice3D <[email protected]> wrote:
>
>
>
> > there is a position property
>
> > Fabrice
> > On Jun 5, 2010, at 2:08 AM, fab4ce wrote:
>
> > > Hi all,
> > > after updating to the new version 3.5 i had to change my directional
> > > light from view.scene.addChild(light) to view.scene.addLight(light);
> > > How can change my code for positioning the light in the scene? I was
> > > using the .x and .y and .z properties of the light object.

Reply via email to