Explorar o código

added color and alpha getters to CanvasRenderer. Fixes #5064

pnitsch %!s(int64=11) %!d(string=hai) anos
pai
achega
6ba7515e3d
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  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 () {