Przeglądaj źródła

JSM: Added dat.gui module version.

Mugen87 6 lat temu
rodzic
commit
1a3a141371

Plik diff jest za duży
+ 2311 - 0
examples/jsm/libs/dat.gui.module.js


+ 3 - 3
examples/webgl_postprocessing_sobel.html

@@ -8,8 +8,6 @@
 	</head>
 	<body>
 
-		<script src="js/libs/dat.gui.min.js"></script>
-
 		<div id="info">
 			<a href="https://threejs.org" target="_blank" rel="noopener noreferrer">three.js</a> - webgl - postprocessing<br/>
 			sobel (edge detection)
@@ -27,6 +25,8 @@
 				PointLight
 			} from "../build/three.module.js";
 
+			import { GUI } from './jsm/libs/dat.gui.module.js';
+
 			import { OrbitControls } from './jsm/controls/OrbitControls.js';
 
 			import { EffectComposer } from './jsm/postprocessing/EffectComposer.js';
@@ -108,7 +108,7 @@
 
 				//
 
-				var gui = new dat.GUI();
+				var gui = new GUI();
 
 				gui.add( params, 'enable' );
 				gui.open();

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików