Explorar el Código

Fixed resolution change in marching cubes example

Mr.doob hace 10 años
padre
commit
e02d806c47
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/webgl_marchingcubes.html

+ 1 - 1
examples/webgl_marchingcubes.html

@@ -592,7 +592,7 @@
 			if ( effectController.resolution !== resolution ) {
 
 				resolution = effectController.resolution;
-				effect.init( resolution );
+				effect.init( Math.floor( resolution ) );
 
 			}