diff --git a/filament/src/PostProcessManager.cpp b/filament/src/PostProcessManager.cpp index 91e252eee3..3aa6250943 100644 --- a/filament/src/PostProcessManager.cpp +++ b/filament/src/PostProcessManager.cpp @@ -1465,7 +1465,7 @@ FrameGraphId PostProcessManager::dof(FrameGraph& fg, }; /* - * dofResolution is used (at compile time for now) to chose between full- or quarter-resolution + * dofResolution is used to chose between full- or quarter-resolution * for the DoF calculations. Set to [1] for full resolution or [2] for quarter-resolution. */ const uint32_t dofResolution = dofOptions.nativeResolution ? 1u : 2u; @@ -2119,7 +2119,6 @@ PostProcessManager::BloomPassOutput PostProcessManager::bloomPass(FrameGraph& fg auto hwIn = resources.getTexture(data.in); auto hwOut = resources.getTexture(data.out); auto hwStage = resources.getTexture(data.stage); - auto const& outDesc = resources.getDescriptor(data.out); mi->use(driver); mi->setParameter("source", hwIn, { @@ -2137,9 +2136,6 @@ PostProcessManager::BloomPassOutput PostProcessManager::bloomPass(FrameGraph& fg auto hwDstRT = resources.getRenderPassInfo( parity ? data.outRT[i] : data.stageRT[i]); - auto w = FTexture::valueForLevel(i, outDesc.width); - auto h = FTexture::valueForLevel(i, outDesc.height); - mi->setParameter("resolution", float4{ w, h, 1.0f / w, 1.0f / h }); mi->commit(driver); hwDstRT.params.flags.discardStart = TargetBufferFlags::COLOR; diff --git a/filament/src/materials/dof/dofDownsample.mat b/filament/src/materials/dof/dofDownsample.mat index e3a22b0012..f73479e577 100644 --- a/filament/src/materials/dof/dofDownsample.mat +++ b/filament/src/materials/dof/dofDownsample.mat @@ -63,7 +63,7 @@ void dummy(){} void postProcess(inout PostProcessInputs postProcess) { highp vec2 uv = variable_vertex.xy; - // the source is guaranteed to be a multiple of two, so we now the bilinear weights are 0.25 + // the source is guaranteed to be a multiple of two, so we know the bilinear weights are 0.25 vec4 s01 = textureLodOffset(materialParams_color, uv, 0.0, ivec2(0, 1)); vec4 s11 = textureLodOffset(materialParams_color, uv, 0.0, ivec2(1, 1)); diff --git a/filament/src/materials/dof/dofMipmap.mat b/filament/src/materials/dof/dofMipmap.mat index d778c1c6a0..826474b4d3 100644 --- a/filament/src/materials/dof/dofMipmap.mat +++ b/filament/src/materials/dof/dofMipmap.mat @@ -59,7 +59,7 @@ void dummy(){} void postProcess(inout PostProcessInputs postProcess) { highp vec2 uv = variable_vertex.xy; - // the source is guaranteed to be a multiple of two, so we now the bilinear weights are 0.25 + // the source is guaranteed to be a multiple of two, so we know the bilinear weights are 0.25 // the bilateral weights need to be scaled by to match the lower resolution float weightScale = materialParams.weightScale;