瀏覽代碼

Merge pull request #5065 from pnitsch/dev

added color and alpha getters to CanvasRenderer. Fixes #5064
Mr.doob 11 年之前
父節點
當前提交
b8c64c4bc1
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/renderers/CanvasRenderer.js

+ 12 - 0
src/renderers/CanvasRenderer.js

@@ -183,6 +183,18 @@ THREE.CanvasRenderer = function ( parameters ) {
 		this.setClearColor( hex, alpha );
 
 	};
+	
+	this.getClearColor = function () {
+
+		return _clearColor;
+
+	};
+
+	this.getClearAlpha = function () {
+
+		return _clearAlpha;
+
+	};
 
 	this.getMaxAnisotropy = function () {