Skip to content

Commit

Permalink
fix translate
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Mar 6, 2024
1 parent 818ca5d commit 1ce5c8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ const getStore = ({ user = null, experimentalFeatures = {} } = {}) => new Vuex.S
output[13] = nm[1]
output[14] = nm[2]

const { mat4 } = window.export_nehuba
mat4.transpose(output, output)

pluginUrl.searchParams.set(
"transform",
[0,1,2].map(r => [0,1,2,3].map(c => output[ c * 4 + r ])).reduce((acc, curr) => [...acc, ...curr], []).join(",")
Expand Down

0 comments on commit 1ce5c8a

Please sign in to comment.