I’m trying to make lighting work, what material settings do I need?
Here’s all of my lighting and material code:
light = new PointLight();
light.x = 15000;
light.z = 15000;
light.color = 0xFFCC99;
light.ambient = 0;
light.specular = 1;
var material:ColorMaterial = new ColorMaterial(0xFFFFFF);
cube = new Mesh(new CubeGeometry(200,100,300),material);
How do I apply the lighting to it, so the side away from the light is dark?
Right now it’s just a cube that’s white all over.
I’m using Away3D beta, which I downloaded from git yesterday.