未验证 提交 97972660 编写于 作者: M mrdoob 提交者: GitHub

PMREMGenerator: Set RenderTargets minFilter to NearestFilter only in the blur pass. (#23511)

上级 484964ef
...@@ -250,7 +250,7 @@ class PMREMGenerator { ...@@ -250,7 +250,7 @@ class PMREMGenerator {
const params = { const params = {
magFilter: LinearFilter, magFilter: LinearFilter,
minFilter: NearestFilter, minFilter: LinearFilter,
generateMipmaps: false, generateMipmaps: false,
type: HalfFloatType, type: HalfFloatType,
format: RGBAFormat, format: RGBAFormat,
...@@ -454,6 +454,9 @@ class PMREMGenerator { ...@@ -454,6 +454,9 @@ class PMREMGenerator {
const pingPongRenderTarget = this._pingPongRenderTarget; const pingPongRenderTarget = this._pingPongRenderTarget;
cubeUVRenderTarget.texture.minFilter = NearestFilter;
pingPongRenderTarget.texture.minFilter = NearestFilter;
this._halfBlur( this._halfBlur(
cubeUVRenderTarget, cubeUVRenderTarget,
pingPongRenderTarget, pingPongRenderTarget,
...@@ -472,6 +475,9 @@ class PMREMGenerator { ...@@ -472,6 +475,9 @@ class PMREMGenerator {
'longitudinal', 'longitudinal',
poleAxis ); poleAxis );
cubeUVRenderTarget.texture.minFilter = LinearFilter;
pingPongRenderTarget.texture.minFilter = LinearFilter;
} }
_halfBlur( targetIn, targetOut, lodIn, lodOut, sigmaRadians, direction, poleAxis ) { _halfBlur( targetIn, targetOut, lodIn, lodOut, sigmaRadians, direction, poleAxis ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册