Pārlūkot izejas kodu

THREE: Being nicer to people still using CanvasRenderer. Fixes #5548 and #5601.

Mr.doob 10 gadi atpakaļ
vecāks
revīzija
9f3f361d83
1 mainītis faili ar 15 papildinājumiem un 0 dzēšanām
  1. 15 0
      src/Three.js

+ 15 - 0
src/Three.js

@@ -177,3 +177,18 @@ THREE.RGB_PVRTC_4BPPV1_Format = 2100;
 THREE.RGB_PVRTC_2BPPV1_Format = 2101;
 THREE.RGBA_PVRTC_4BPPV1_Format = 2102;
 THREE.RGBA_PVRTC_2BPPV1_Format = 2103;
+
+
+// DEPRECATED
+
+THREE.CanvasRenderer = function () {
+
+	console.error( 'THREE.CanvasRenderer has been moved to /examples/js/renderers/CanvasRenderer.js' );
+
+	this.domElement = document.createElement( 'canvas' );
+	this.clear = function () {};
+	this.render = function () {};
+	this.setClearColor = function () {};
+	this.setSize = function () {};
+
+};