Skip to content

Commit 5f1d52a

Browse files
committed
fix inverted axis in gltf loader
1 parent 5d4990e commit 5f1d52a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/LightsPunctualExtensionLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ private void addLight(Node parent, Node node, int lightIndex) {
209209
Light light = lightDefinitions.get(lightIndex);
210210
parent.addLight(light);
211211
LightControl control = new LightControl(light);
212+
control.setInvertAxisDirection(true);
212213
node.addControl(control);
213214
} else {
214215
throw new AssetLoadException("KHR_lights_punctual extension accessed undefined light at index " + lightIndex);

0 commit comments

Comments
 (0)