Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMREMGenerator: Revert NearestFilter change. #23517

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 0 additions & 10 deletions src/extras/PMREMGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
CubeUVReflectionMapping,
LinearEncoding,
LinearFilter,
NearestFilter,
NoToneMapping,
NoBlending,
RGBAFormat,
Expand Down Expand Up @@ -216,7 +215,6 @@ class PMREMGenerator {
_cleanup( outputTarget ) {

this._renderer.setRenderTarget( _oldTarget );
outputTarget.scissorTest = false;
_setViewport( outputTarget, 0, 0, outputTarget.width, outputTarget.height );

}
Expand Down Expand Up @@ -454,9 +452,6 @@ class PMREMGenerator {

const pingPongRenderTarget = this._pingPongRenderTarget;

cubeUVRenderTarget.texture.minFilter = NearestFilter;
pingPongRenderTarget.texture.minFilter = NearestFilter;

this._halfBlur(
cubeUVRenderTarget,
pingPongRenderTarget,
Expand All @@ -475,9 +470,6 @@ class PMREMGenerator {
'longitudinal',
poleAxis );

cubeUVRenderTarget.texture.minFilter = LinearFilter;
pingPongRenderTarget.texture.minFilter = LinearFilter;

}

_halfBlur( targetIn, targetOut, lodIn, lodOut, sigmaRadians, direction, poleAxis ) {
Expand Down Expand Up @@ -652,15 +644,13 @@ function _createRenderTarget( width, height, params ) {
const cubeUVRenderTarget = new WebGLRenderTarget( width, height, params );
cubeUVRenderTarget.texture.mapping = CubeUVReflectionMapping;
cubeUVRenderTarget.texture.name = 'PMREM.cubeUv';
cubeUVRenderTarget.scissorTest = true;
return cubeUVRenderTarget;

}

function _setViewport( target, x, y, width, height ) {

target.viewport.set( x, y, width, height );
target.scissor.set( x, y, width, height );

}

Expand Down