Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build/three.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/three.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -49577,7 +49577,7 @@ class AudioContext {
/**
* Returns the global native audio context.
*
* @return {AudioContext} The native audio context.
* @return {Window.AudioContext} The native audio context.
*/
static getContext() {

Expand All @@ -49594,7 +49594,7 @@ class AudioContext {
/**
* Allows to set the global native audio context from outside.
*
* @param {AudioContext} value - The native context to set.
* @param {Window.AudioContext} value - The native context to set.
*/
static setContext( value ) {

Expand Down
2 changes: 1 addition & 1 deletion build/three.module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/three.module.min.js

Large diffs are not rendered by default.

29 changes: 21 additions & 8 deletions build/three.webgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -23780,9 +23780,8 @@ const V_GGX_SmithCorrelated_Anisotropic = /*@__PURE__*/ Fn( ( { alphaT, alphaB,

const gv = dotNL.mul( vec3( alphaT.mul( dotTV ), alphaB.mul( dotBV ), dotNV ).length() );
const gl = dotNV.mul( vec3( alphaT.mul( dotTL ), alphaB.mul( dotBL ), dotNL ).length() );
const v = div( 0.5, gv.add( gl ) );

return v;
return div( 0.5, gv.add( gl ).max( EPSILON ) );

} ).setLayout( {
name: 'V_GGX_SmithCorrelated_Anisotropic',
Expand Down Expand Up @@ -40049,8 +40048,26 @@ class PassNode extends TempNode {

this.renderTarget.setSize( effectiveWidth, effectiveHeight );

if ( this._scissor !== null ) this.renderTarget.scissor.copy( this._scissor );
if ( this._viewport !== null ) this.renderTarget.viewport.copy( this._viewport );
// scissor

if ( this._scissor !== null ) {

this.renderTarget.scissor.copy( this._scissor ).multiplyScalar( this._pixelRatio * this._resolutionScale ).floor();
this.renderTarget.scissorTest = true;

} else {

this.renderTarget.scissorTest = false;

}

// viewport

if ( this._viewport !== null ) {

this.renderTarget.viewport.copy( this._viewport ).multiplyScalar( this._pixelRatio * this._resolutionScale ).floor();

}

}

Expand Down Expand Up @@ -40085,8 +40102,6 @@ class PassNode extends TempNode {

}

this._scissor.multiplyScalar( this._pixelRatio * this._resolutionScale ).floor();

}

}
Expand Down Expand Up @@ -40121,8 +40136,6 @@ class PassNode extends TempNode {

}

this._viewport.multiplyScalar( this._pixelRatio * this._resolutionScale ).floor();

}

}
Expand Down
2 changes: 1 addition & 1 deletion build/three.webgpu.min.js

Large diffs are not rendered by default.

29 changes: 21 additions & 8 deletions build/three.webgpu.nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -23780,9 +23780,8 @@ const V_GGX_SmithCorrelated_Anisotropic = /*@__PURE__*/ Fn( ( { alphaT, alphaB,

const gv = dotNL.mul( vec3( alphaT.mul( dotTV ), alphaB.mul( dotBV ), dotNV ).length() );
const gl = dotNV.mul( vec3( alphaT.mul( dotTL ), alphaB.mul( dotBL ), dotNL ).length() );
const v = div( 0.5, gv.add( gl ) );

return v;
return div( 0.5, gv.add( gl ).max( EPSILON ) );

} ).setLayout( {
name: 'V_GGX_SmithCorrelated_Anisotropic',
Expand Down Expand Up @@ -40049,8 +40048,26 @@ class PassNode extends TempNode {

this.renderTarget.setSize( effectiveWidth, effectiveHeight );

if ( this._scissor !== null ) this.renderTarget.scissor.copy( this._scissor );
if ( this._viewport !== null ) this.renderTarget.viewport.copy( this._viewport );
// scissor

if ( this._scissor !== null ) {

this.renderTarget.scissor.copy( this._scissor ).multiplyScalar( this._pixelRatio * this._resolutionScale ).floor();
this.renderTarget.scissorTest = true;

} else {

this.renderTarget.scissorTest = false;

}

// viewport

if ( this._viewport !== null ) {

this.renderTarget.viewport.copy( this._viewport ).multiplyScalar( this._pixelRatio * this._resolutionScale ).floor();

}

}

Expand Down Expand Up @@ -40085,8 +40102,6 @@ class PassNode extends TempNode {

}

this._scissor.multiplyScalar( this._pixelRatio * this._resolutionScale ).floor();

}

}
Expand Down Expand Up @@ -40121,8 +40136,6 @@ class PassNode extends TempNode {

}

this._viewport.multiplyScalar( this._pixelRatio * this._resolutionScale ).floor();

}

}
Expand Down
2 changes: 1 addition & 1 deletion build/three.webgpu.nodes.min.js

Large diffs are not rendered by default.

Loading