ソースを参照

WebGLRenderer3: Clear currentBuffer and currentProgram.

Mr.doob 12 年 前
コミット
8e4718ce9a
1 ファイル変更3 行追加0 行削除
  1. 3 0
      examples/js/renderers/WebGLRenderer3.js

+ 3 - 0
examples/js/renderers/WebGLRenderer3.js

@@ -345,6 +345,9 @@ THREE.WebGLRenderer3 = function ( parameters ) {
 		modelViewProjectionMatrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse );
 		frustum.setFromMatrix( modelViewProjectionMatrix );
 
+		currentBuffer = undefined;
+		currentProgram = undefined;
+
 		renderObject( scene, camera );
 
 	};