Pārlūkot izejas kodu

Fixed resolution change in marching cubes example

Mr.doob 10 gadi atpakaļ
vecāks
revīzija
e02d806c47
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 ) );
 
 			}