Skip to content

Commit

Permalink
send atlas size in options parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Nov 13, 2023
1 parent 4676aee commit f3a15a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/Optimizer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ function Optimizer({
atlasSize : 4096,
isVrm0 : true,
createTextureAtlas : true,
mToonAtlasSize:getAtlasSize(atlasMtoon),
mToonAtlasSizeTransp:getAtlasSize(atlasMtoonTransp),
stdAtlasSize:getAtlasSize(atlasStd),
stdAtlasSizeTransp:getAtlasSize(atlasStdTransp),
exportStdAtlas:(currentOption === 0 || currentOption == 2),
exportMtoonAtlas:(currentOption === 1 || currentOption == 2)
}
downloadVRM(model, vrmData,nameVRM + "_merged", options)
}
Expand Down

0 comments on commit f3a15a4

Please sign in to comment.