Directional light properties

Software: Away3D 4.x

3dNewb, Sr. Member
Posted: 28 December 2011 05:03 PM   Total Posts: 105

I’d like some general daylight kind-of lightning for my scene.

However, I cannot get the directionalLight to enlighten more then just a small part.

sun = new DirectionalLight(0,-1,1);   
var 
mat:ColorMaterial = new ColorMaterial(0xFFFFFF);
mat.lightPicker = new StaticLightPicker([sun]);
mat.specular 1;
plane = new Plane(mat1024,1024100,100,true);
view.scene.addChild(plane); 

Result:

http://i.imgur.com/U36zo.jpg

What am I missing here?

   

3dNewb, Sr. Member
Posted: 28 December 2011 07:53 PM   Total Posts: 105   [ # 1 ]

Solution:

view.scene.addchild(sun)

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X