Selaa lähdekoodia

Added clearColor, clearDepth and clearStencil placeholder methods to CanvasRenderer.

Mr.doob 12 vuotta sitten
vanhempi
sitoutus
dd5965430e
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  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 ) {

粤ICP备19079148号