FresnelSpecularMethod issue

Software: Away3D 4.x

aeki, Member
Posted: 30 March 2013 06:19 PM   Total Posts: 73

Hi all,

I can’t get a FresnelSpecularMethod to render with a ColorMaterial. I wrote the following

myMesh = new Mesh(new SphereGeometry(3), new ColorMaterial(0x123456));

specularMethod = new FresnelSpecularMethod(true);
specularMethod.normalReflectance 0.2;
specularMethod.fresnelPower 1;
specularMethod.shadingModel SpecularShadingModel.PHONG;

ColorMaterial(myMesh.material).specularMethodspecularMethod

When rendering the initConstants method throw a null error because for some reason vo.fragmentData is null.

Anyone would have a clue of that’s going wrong?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X