瀏覽代碼

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 ) {