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

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

上级 484964ef
......@@ -250,7 +250,7 @@ class PMREMGenerator {
const params = {
magFilter: LinearFilter,
minFilter: NearestFilter,
minFilter: LinearFilter,
generateMipmaps: false,
type: HalfFloatType,
format: RGBAFormat,
......@@ -454,6 +454,9 @@ class PMREMGenerator {
const pingPongRenderTarget = this._pingPongRenderTarget;
cubeUVRenderTarget.texture.minFilter = NearestFilter;
pingPongRenderTarget.texture.minFilter = NearestFilter;
this._halfBlur(
cubeUVRenderTarget,
pingPongRenderTarget,
......@@ -472,6 +475,9 @@ class PMREMGenerator {
'longitudinal',
poleAxis );
cubeUVRenderTarget.texture.minFilter = LinearFilter;
pingPongRenderTarget.texture.minFilter = LinearFilter;
}
_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.
先完成此消息的编辑!
想要评论请 注册