material.addMethod (new EnvMapAmbientMethod (cube_map));
previously worked, now there is no
material.ambientMethod = new EnvMapAmbientMethod (cube_map);
Now does not give the desired results
EnvMapAmbientMethod not workingSoftware: Away3D 4.x |
||
rom, Newbie
Posted: 05 August 2012 02:01 PM Total Posts: 12
material.addMethod (new EnvMapAmbientMethod (cube_map));
previously worked, now there is no
material.ambientMethod = new EnvMapAmbientMethod (cube_map);
Now does not give the desired results |
||
Richard Olsson, Administrator
Posted: 06 August 2012 07:19 AM Total Posts: 1192 [ # 1 ] I’m not entirely sure what your question is, but you should not be using EnvMapAmbientMethod with addMethod(). It’s an “ambient” method, and should thus be assigned to the ambientMethod property that you’re suggesting in your second option. However, if you do want to use environment mapping after all lighting, you can do so by using the EnvMapMethod (not ambient) which should be added using the addMethod() property. |
||
rom, Newbie
Posted: 06 August 2012 07:54 AM Total Posts: 12 [ # 2 ] I meant that before the upgrade, the method can be added through the addMethod (). Now understood, thanks. |