|
@@ -44099,6 +44099,12 @@ class Loader {
|
|
|
*/
|
|
*/
|
|
|
this.requestHeader = {};
|
|
this.requestHeader = {};
|
|
|
|
|
|
|
|
|
|
+ if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) {
|
|
|
|
|
+
|
|
|
|
|
+ __THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) );
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -50177,7 +50183,7 @@ class Audio extends Object3D {
|
|
|
/**
|
|
/**
|
|
|
* Defines the source type.
|
|
* Defines the source type.
|
|
|
*
|
|
*
|
|
|
- * The property is automatically by one of the `set*()` methods.
|
|
|
|
|
|
|
+ * The property is automatically set by one of the `set*()` methods.
|
|
|
*
|
|
*
|
|
|
* @type {('empty'|'audioNode'|'mediaNode'|'mediaStreamNode'|'buffer')}
|
|
* @type {('empty'|'audioNode'|'mediaNode'|'mediaStreamNode'|'buffer')}
|
|
|
* @readonly
|
|
* @readonly
|
|
@@ -53653,6 +53659,12 @@ class AnimationMixer extends EventDispatcher {
|
|
|
*/
|
|
*/
|
|
|
this.timeScale = 1.0;
|
|
this.timeScale = 1.0;
|
|
|
|
|
|
|
|
|
|
+ if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) {
|
|
|
|
|
+
|
|
|
|
|
+ __THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) );
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
_bindAction( action, prototypeAction ) {
|
|
_bindAction( action, prototypeAction ) {
|
|
@@ -77665,6 +77677,10 @@ class WebGLRenderer {
|
|
|
const textureFormat = texture.format;
|
|
const textureFormat = texture.format;
|
|
|
const textureType = texture.type;
|
|
const textureType = texture.type;
|
|
|
|
|
|
|
|
|
|
+ // when using MRT, select the correct color buffer for the subsequent read command
|
|
|
|
|
+
|
|
|
|
|
+ if ( renderTarget.textures.length > 1 ) _gl.readBuffer( _gl.COLOR_ATTACHMENT0 + textureIndex );
|
|
|
|
|
+
|
|
|
if ( ! capabilities.textureFormatReadable( textureFormat ) ) {
|
|
if ( ! capabilities.textureFormatReadable( textureFormat ) ) {
|
|
|
|
|
|
|
|
error( 'WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.' );
|
|
error( 'WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.' );
|
|
@@ -77683,10 +77699,6 @@ class WebGLRenderer {
|
|
|
|
|
|
|
|
if ( ( x >= 0 && x <= ( renderTarget.width - width ) ) && ( y >= 0 && y <= ( renderTarget.height - height ) ) ) {
|
|
if ( ( x >= 0 && x <= ( renderTarget.width - width ) ) && ( y >= 0 && y <= ( renderTarget.height - height ) ) ) {
|
|
|
|
|
|
|
|
- // when using MRT, select the correct color buffer for the subsequent read command
|
|
|
|
|
-
|
|
|
|
|
- if ( renderTarget.textures.length > 1 ) _gl.readBuffer( _gl.COLOR_ATTACHMENT0 + textureIndex );
|
|
|
|
|
-
|
|
|
|
|
_gl.readPixels( x, y, width, height, utils.convert( textureFormat ), utils.convert( textureType ), buffer );
|
|
_gl.readPixels( x, y, width, height, utils.convert( textureFormat ), utils.convert( textureType ), buffer );
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -77747,6 +77759,11 @@ class WebGLRenderer {
|
|
|
const textureFormat = texture.format;
|
|
const textureFormat = texture.format;
|
|
|
const textureType = texture.type;
|
|
const textureType = texture.type;
|
|
|
|
|
|
|
|
|
|
+ // when using MRT, select the correct color buffer for the subsequent read command
|
|
|
|
|
+
|
|
|
|
|
+ if ( renderTarget.textures.length > 1 ) _gl.readBuffer( _gl.COLOR_ATTACHMENT0 + textureIndex );
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
if ( ! capabilities.textureFormatReadable( textureFormat ) ) {
|
|
if ( ! capabilities.textureFormatReadable( textureFormat ) ) {
|
|
|
|
|
|
|
|
throw new Error( 'THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.' );
|
|
throw new Error( 'THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.' );
|
|
@@ -77763,10 +77780,6 @@ class WebGLRenderer {
|
|
|
_gl.bindBuffer( _gl.PIXEL_PACK_BUFFER, glBuffer );
|
|
_gl.bindBuffer( _gl.PIXEL_PACK_BUFFER, glBuffer );
|
|
|
_gl.bufferData( _gl.PIXEL_PACK_BUFFER, buffer.byteLength, _gl.STREAM_READ );
|
|
_gl.bufferData( _gl.PIXEL_PACK_BUFFER, buffer.byteLength, _gl.STREAM_READ );
|
|
|
|
|
|
|
|
- // when using MRT, select the correct color buffer for the subsequent read command
|
|
|
|
|
-
|
|
|
|
|
- if ( renderTarget.textures.length > 1 ) _gl.readBuffer( _gl.COLOR_ATTACHMENT0 + textureIndex );
|
|
|
|
|
-
|
|
|
|
|
_gl.readPixels( x, y, width, height, utils.convert( textureFormat ), utils.convert( textureType ), 0 );
|
|
_gl.readPixels( x, y, width, height, utils.convert( textureFormat ), utils.convert( textureType ), 0 );
|
|
|
|
|
|
|
|
// reset the frame buffer to the currently set buffer before waiting
|
|
// reset the frame buffer to the currently set buffer before waiting
|