Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit e604e4f

Browse files
committed
Fixed banding in bokeh blur
1 parent 1e2630f commit e604e4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PostProcessing/Runtime/Components/DepthOfFieldComponent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void Prepare(RenderTexture source, Material uberMaterial, bool antialiasC
8888
var rcpAspect = (float)source.height / source.width;
8989
material.SetFloat(Uniforms._RcpAspect, rcpAspect);
9090

91-
var rt1 = context.renderTextureFactory.Get(context.width / 2, context.height / 2, 0, RenderTextureFormat.ARGBHalf, filterMode: FilterMode.Point);
91+
var rt1 = context.renderTextureFactory.Get(context.width / 2, context.height / 2, 0, RenderTextureFormat.ARGBHalf, filterMode: FilterMode.Bilinear);
9292

9393
// Pass #1 - Downsampling, prefiltering and CoC calculation
9494
Graphics.Blit(source, rt1, material, 0);
@@ -97,7 +97,7 @@ public void Prepare(RenderTexture source, Material uberMaterial, bool antialiasC
9797
var pass = rt1;
9898
if (antialiasCoC)
9999
{
100-
pass = context.renderTextureFactory.Get(context.width / 2, context.height / 2, 0, RenderTextureFormat.ARGBHalf, filterMode: FilterMode.Point);
100+
pass = context.renderTextureFactory.Get(context.width / 2, context.height / 2, 0, RenderTextureFormat.ARGBHalf, filterMode: FilterMode.Bilinear);
101101

102102
if (m_CoCHistory == null || !m_CoCHistory.IsCreated() || m_CoCHistory.width != context.width / 2 || m_CoCHistory.height != context.height / 2)
103103
{

0 commit comments

Comments
 (0)