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).specularMethod= specularMethod;
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?