Przeglądaj źródła

min/max orbit distance

Emmett Lalish 5 lat temu
rodzic
commit
753012ec52
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      examples/webgl_pmrem_test.html

+ 3 - 1
examples/webgl_pmrem_test.html

@@ -14,7 +14,7 @@
 				PMREM directional light test <a href="https://github.com/elalish" target="_blank" rel="noopener">Emmett Lalish</a>
 				<br>Top row is white metal
 				<br>Middle row is white dielectric
-				<br>Last row is black dielectric.
+				<br>Bottom row is black dielectric.
 				<br>Mouse-out is a standard Directional Light.
 				<br>Mouse-over is a PMREM of the skybox: a single bright pixel representing the same directional light source.
 				<br>The difference between these renders indicates the error in the PMREM approximations.
@@ -66,6 +66,8 @@
 				// controls
 
 				controls = new OrbitControls( camera, renderer.domElement );
+				controls.minDistance = 4;
+				controls.maxDistance = 20;
 				controls.update();
 
 				// light