File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 506506 "startFullscreen" : {
507507 "string" : " Start in fullscreen"
508508 },
509+ "maxTextureDimension" : {
510+ "string" : " Increase max vector costume resolution to make large costumes look better. May increase memory use and cause crashes."
511+ },
509512 "package" : {
510513 "string" : " Package" ,
511514 "context" : " Button to package the project"
Original file line number Diff line number Diff line change 102102 $options .custom .css !== ' ' ||
103103 $options .custom .js !== ' ' ||
104104 $options .projectId !== defaultOptions .projectId ||
105- $options .packagedRuntime !== defaultOptions .packagedRuntime
105+ $options .packagedRuntime !== defaultOptions .packagedRuntime ||
106+ $options .maxTextureDimension !== defaultOptions .maxTextureDimension
106107 );
107108
108109 const automaticallyCenterCursor = () => {
710711 ' extensions' ,
711712 ' bakeExtensions' ,
712713 ' custom' ,
713- ' projectId'
714+ ' projectId' ,
715+ ' maxTextureDimension'
714716 ]);
715717 }}
716718>
768770 <input type ="checkbox" bind:checked ={$options .packagedRuntime } />
769771 {$_ (' options.packagedRuntime' )}
770772 </label >
773+
774+ <label class =" option" >
775+ <input type ="checkbox" checked ={$options .maxTextureDimension !== defaultOptions .maxTextureDimension } on:change ={(e ) => {
776+ $options .maxTextureDimension = defaultOptions .maxTextureDimension * (e .target .checked ? 2 : 1 );
777+ }} />
778+ {$_ (' options.maxTextureDimension' )}
779+ </label >
771780 </details >
772781 </div >
773782</Section >
Original file line number Diff line number Diff line change @@ -1394,6 +1394,7 @@ cd "$(dirname "$0")"
13941394 enabled: ${ this . options . compiler . enabled } ,
13951395 warpTimer: ${ this . options . compiler . warpTimer }
13961396 });
1397+ if (vm.renderer.setMaxTextureDimension) vm.renderer.setMaxTextureDimension(${ this . options . maxTextureDimension } );
13971398
13981399 if (typeof ScaffoldingAddons !== 'undefined') {
13991400 ScaffoldingAddons.run(scaffolding, ${ JSON . stringify ( this . getAddonOptions ( ) ) } );
@@ -1625,7 +1626,8 @@ Packager.DEFAULT_OPTIONS = () => ({
16251626 }
16261627 } ,
16271628 extensions : [ ] ,
1628- bakeExtensions : true
1629+ bakeExtensions : true ,
1630+ maxTextureDimension : 2048
16291631} ) ;
16301632
16311633export default Packager ;
You can’t perform that action at this time.
0 commit comments