|
@@ -135,6 +135,8 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
_framebuffer = null,
|
|
|
|
|
|
+ _currentActiveCubeFace = 0,
|
|
|
+ _currentActiveMipmapLevel = 0,
|
|
|
_currentRenderTarget = null,
|
|
|
_currentFramebuffer = null,
|
|
|
_currentMaterialId = - 1,
|
|
@@ -2420,6 +2422,18 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
+ this.getActiveCubeFace = function () {
|
|
|
+
|
|
|
+ return _currentActiveCubeFace;
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
+ this.getActiveMipMapLevel = function () {
|
|
|
+
|
|
|
+ return _currentActiveMipmapLevel;
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
this.getRenderTarget = function () {
|
|
|
|
|
|
return _currentRenderTarget;
|
|
@@ -2429,6 +2443,8 @@ function WebGLRenderer( parameters ) {
|
|
|
this.setRenderTarget = function ( renderTarget, activeCubeFace, activeMipMapLevel ) {
|
|
|
|
|
|
_currentRenderTarget = renderTarget;
|
|
|
+ _currentActiveCubeFace = activeCubeFace;
|
|
|
+ _currentActiveMipmapLevel = activeMipMapLevel;
|
|
|
|
|
|
if ( renderTarget && properties.get( renderTarget ).__webglFramebuffer === undefined ) {
|
|
|
|