ソースを参照

Added clearColor, clearDepth and clearStencil placeholder methods to CanvasRenderer.

Mr.doob 11 年 前
コミット
dd5965430e
1 ファイル変更6 行追加1 行削除
  1. 6 1
      src/renderers/CanvasRenderer.js

+ 6 - 1
src/renderers/CanvasRenderer.js

@@ -248,9 +248,14 @@ THREE.CanvasRenderer = function ( parameters ) {
 
 		}
 
-
 	};
 
+	// compatibility
+
+	this.clearColor = function () {};
+	this.clearDepth = function () {};
+	this.clearStencil = function () {};
+
 	this.render = function ( scene, camera ) {
 
 		if ( camera instanceof THREE.Camera === false ) {