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 1ce5c8a commit ccdc3b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,11 @@ 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)
const transform = [0,1,2].map(r => [0,1,2,3].map(c => output[ c * 4 + r ])).reduce((acc, curr) => [...acc, ...curr], []).join(",")

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(",")
transform
)

const pluginUrlString = pluginUrl.toString()
Expand Down

0 comments on commit ccdc3b8

Please sign in to comment.