Explorar o código

Fixed resolution change in marching cubes example

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
e02d806c47
Modificáronse 1 ficheiros con 1 adicións e 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 ) );
 
 			}