color.getGreen(), color.getBlue(), l.getType().getId(), lightDataIndex); lightDataIndex++;
color.getGreen(), color.getBlue(), l.getType().getId(), lightDataIndex); lightDataIndex++;
color.getGreen(), color.getBlue(), l.getType().getId(), lightDataIndex); lightDataIndex++;
tmpLightColor.a = l.getType().getId(); lightColor.setValue(VarType.Vector4, tmpLightColor);
color.getGreen(), color.getBlue(), l.getType().getId(), i);
tmpLightColor.a = l.getType().getId(); lightColor.setValue(VarType.Vector4, tmpLightColor);
private void initLight() { System.out.println("LightList size = "+rootNode.getLocalLightList().size()); while(rootNode.getLocalLightList().size() > 0) { System.out.println("\t"+rootNode.getLocalLightList().get(0).getType().name()); rootNode.removeLight(rootNode.getLocalLightList().get(0)); } System.out.println("LightList size = "+rootNode.getLocalLightList().size()); DirectionalLight sun = new DirectionalLight(); sun.setDirection(new Vector3f(0f, -1f, 0f)); rootNode.addLight(sun); AmbientLight ambientLight = new AmbientLight(); ambientLight.setColor(ColorRGBA.Red.mult(0.1f)); rootNode.addLight(ambientLight); }
tmpLightColor.a = l.getType().getId(); lightColor.setValue(VarType.Vector4, tmpLightColor);
color.getGreen(), color.getBlue(), l.getType().getId(), lightDataIndex); lightDataIndex++;