소스 검색

Fixed resolution change in marching cubes example

Mr.doob 10 년 전
부모
커밋
e02d806c47
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 ) );
 
 			}