jmp code palette - changed a normalize() to normalizeLocal()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9416 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
9e9053edb4
commit
2b588f5298
@ -47,7 +47,7 @@ public class JmePaletteSunLight implements ActiveEditorDrop {
|
|||||||
|
|
||||||
private String createBody() {
|
private String createBody() {
|
||||||
|
|
||||||
String body = " /** A white, directional light source */ \n DirectionalLight sun = new DirectionalLight();\n sun.setDirection((new Vector3f(-0.5f, -0.5f, -0.5f)).normalize());\n sun.setColor(ColorRGBA.White);\n rootNode.addLight(sun); ";
|
String body = " /** A white, directional light source */ \n DirectionalLight sun = new DirectionalLight();\n sun.setDirection((new Vector3f(-0.5f, -0.5f, -0.5f)).normalizeLocal());\n sun.setColor(ColorRGBA.White);\n rootNode.addLight(sun); ";
|
||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user