Hey Sylvain, The ambient and specular are indeed not used at all by the material (as it is a diffuse-only shader - if you want specular and diffuse you should use the PhongMultiPassMaterial). However, the ambient property is ignored because it has been replaced by AmbientLight3D . It seems to be the case that the diffuse property for DirectionalLight3D is ignored (which is a bug), however they should work for the PointLight3D. Can you log an issue at http://code.google.com/p/away3d/issues/list ? I'll get around to it asap.
Cheers, David On Sun, Feb 21, 2010 at 8:32 PM, Sylvain Godbert <[email protected]>wrote: > Hi, > > I have made a little demo in which I have a PointLight3D and a > DirectionalLight3D orbiting around a mesh whose material is > DiffuseMultiPassMaterial. > > I have noticed that the material does take into account the > componenents of the DirectionalLight3D (i.e. ambient, diffuse, > specular and brightness). No matter which values I put for these > components I still get the same result. Am I right ? Did I miss > something ? > > Cheers > > Sylvain > -- http://www.derschmale.com
