Skip to content

Commit

Permalink
Release 0.137.14
Browse files Browse the repository at this point in the history
  • Loading branch information
nianxy authored and github-actions[bot] committed Jun 6, 2024
1 parent eb05a69 commit 7339653
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
8 changes: 7 additions & 1 deletion build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19367,6 +19367,8 @@ function WebGLRenderer(parameters = {}) {

const _vector3 = new Vector3();

const _vector2 = new Vector2();

const _emptyScene = {
background: null,
fog: null,
Expand Down Expand Up @@ -20103,14 +20105,18 @@ function WebGLRenderer(parameters = {}) {
if (_transmissionRenderTarget === null) {
const needsAntialias = _antialias === true && capabilities.isWebGL2 === true;
const hasColorBufferHalfFloat = extensions.has('EXT_color_buffer_half_float') || capabilities.isWebGL2 && extensions.has('EXT_color_buffer_float');
_transmissionRenderTarget = new WebGLRenderTarget(1024, 1024, {
_transmissionRenderTarget = new WebGLRenderTarget(1, 1, {
generateMipmaps: true,
type: hasColorBufferHalfFloat ? HalfFloatType : UnsignedByteType,
minFilter: LinearMipmapLinearFilter,
samples: needsAntialias ? 4 : 0
});
}

_this.getDrawingBufferSize(_vector2);

_transmissionRenderTarget.setSize(_vector2.x, _vector2.y);

const currentRenderTarget = _this.getRenderTarget();

_this.setRenderTarget(_transmissionRenderTarget);
Expand Down
8 changes: 7 additions & 1 deletion build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -19369,6 +19369,8 @@

const _vector3 = new Vector3();

const _vector2 = new Vector2();

const _emptyScene = {
background: null,
fog: null,
Expand Down Expand Up @@ -20105,14 +20107,18 @@
if (_transmissionRenderTarget === null) {
const needsAntialias = _antialias === true && capabilities.isWebGL2 === true;
const hasColorBufferHalfFloat = extensions.has('EXT_color_buffer_half_float') || capabilities.isWebGL2 && extensions.has('EXT_color_buffer_float');
_transmissionRenderTarget = new WebGLRenderTarget(1024, 1024, {
_transmissionRenderTarget = new WebGLRenderTarget(1, 1, {
generateMipmaps: true,
type: hasColorBufferHalfFloat ? HalfFloatType : UnsignedByteType,
minFilter: LinearMipmapLinearFilter,
samples: needsAntialias ? 4 : 0
});
}

_this.getDrawingBufferSize(_vector2);

_transmissionRenderTarget.setSize(_vector2.x, _vector2.y);

const currentRenderTarget = _this.getRenderTarget();

_this.setRenderTarget(_transmissionRenderTarget);
Expand Down
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -26203,6 +26203,7 @@ function WebGLRenderer( parameters = {} ) {
const _projScreenMatrix = new Matrix4();

const _vector3 = new Vector3();
const _vector2 = new Vector2();

const _emptyScene = { background: null, fog: null, environment: null, overrideMaterial: null, layers: { test: () => false }, children: [], isScene: true, onBeforeRender: function () {}, onAfterRender: function () {} };

Expand Down Expand Up @@ -27287,7 +27288,7 @@ function WebGLRenderer( parameters = {} ) {
const needsAntialias = _antialias === true && capabilities.isWebGL2 === true;
const hasColorBufferHalfFloat = extensions.has( 'EXT_color_buffer_half_float' ) || ( capabilities.isWebGL2 && extensions.has( 'EXT_color_buffer_float' ) );

_transmissionRenderTarget = new WebGLRenderTarget( 1024, 1024, {
_transmissionRenderTarget = new WebGLRenderTarget( 1, 1, {
generateMipmaps: true,
type: hasColorBufferHalfFloat ? HalfFloatType : UnsignedByteType,
minFilter: LinearMipmapLinearFilter,
Expand All @@ -27296,6 +27297,9 @@ function WebGLRenderer( parameters = {} ) {

}

_this.getDrawingBufferSize( _vector2 );
_transmissionRenderTarget.setSize( _vector2.x, _vector2.y );

const currentRenderTarget = _this.getRenderTarget();
_this.setRenderTarget( _transmissionRenderTarget );
_this.clear();
Expand Down

0 comments on commit 7339653

Please sign in to comment.