فهرست منبع

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