Ver Fonte

GLTFExporter: Add forcePOT option on the example

Fernando Serrano há 7 anos atrás
pai
commit
d10b65fb7c
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      examples/misc_exporter_gltf.html

+ 3 - 1
examples/misc_exporter_gltf.html

@@ -35,6 +35,7 @@
 			<label><input id="option_drawrange" name="visible" type="checkbox" checked="checked"/>Truncate drawRange</label>
 			<label><input id="option_binary" name="visible" type="checkbox">Binary (<code>.glb</code>)</label>
 			<label><input id="option_forceindices" name="visible" type="checkbox">Force indices</label>
+			<label><input id="option_forcepot" name="visible" type="checkbox">Force POT textures</label>
 		</div>
 
 		<script src="../build/three.js"></script>
@@ -54,7 +55,8 @@
 					onlyVisible: document.getElementById('option_visible').checked,
 					truncateDrawRange: document.getElementById('option_drawrange').checked,
 					binary: document.getElementById('option_binary').checked,
-					forceIndices: document.getElementById('option_forceindices').checked
+					forceIndices: document.getElementById('option_forceindices').checked,
+					forcePowerOfTwoTexture: document.getElementById('option_forcepot').checked
 				};
 				gltfExporter.parse( input, function( result ) {