Browse Source

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

Mr.doob 10 năm trước cách đây
mục cha
commit
9f3f361d83
1 tập tin đã thay đổi với 15 bổ sung0 xóa
  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 () {};
+
+};