Skip to content

Commit 7279d80

Browse files
authored
Merge pull request #2546 from riccardobl/fixgltfinv
Fix inverted axis in gltf loader
2 parents a6d04f1 + 5f1d52a commit 7279d80

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)