Skip to content

Commit

Permalink
Switch from SetEffectTransformMatrix to SetEffectTransformBaseMatrix …
Browse files Browse the repository at this point in the history
…to not distort effect-internal (potentially nested) transforms. (#4)

Co-authored-by: carlkuesters <carl.kuesters@gmail.com>
  • Loading branch information
destroflyer and carlkuesters authored Apr 26, 2023
1 parent 8f77752 commit 069451a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jme/effekseer/Effekseer.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public static void setEffectTransform(int handler,Transform tr){
state.m4.setScale(tr.getScale());

state.m4.get(state.v16, true);
state.core.SetEffectTransformMatrix(handler, state.v16[0],state.v16[1],state.v16[2],state.v16[3],state.v16[4],state.v16[5],state.v16[6],state.v16[7],state.v16[8],state.v16[9],state.v16[10],state.v16[11] );
state.core.SetEffectTransformBaseMatrix(handler, state.v16[0],state.v16[1],state.v16[2],state.v16[3],state.v16[4],state.v16[5],state.v16[6],state.v16[7],state.v16[8],state.v16[9],state.v16[10],state.v16[11] );
}


Expand Down

0 comments on commit 069451a

Please sign in to comment.