diff --git a/UnifiedUniversalBlur/Scripts/UniversalBlurPass.cs b/UnifiedUniversalBlur/Scripts/UniversalBlurPass.cs index 2abd901..525bb80 100644 --- a/UnifiedUniversalBlur/Scripts/UniversalBlurPass.cs +++ b/UnifiedUniversalBlur/Scripts/UniversalBlurPass.cs @@ -30,11 +30,11 @@ public void Setup(Action passDataOptions, float downsample, in Renderi rtDesc.height = Mathf.RoundToInt(rtDesc.height / downsample); #if UNITY_2022_1_OR_NEWER - RenderingUtils.ReAllocateIfNeeded(ref m_tmpRT1, rtDesc, name: "_PassRT1"); - RenderingUtils.ReAllocateIfNeeded(ref m_tmpRT2, rtDesc, name: "_PassRT2"); + RenderingUtils.ReAllocateIfNeeded(ref m_tmpRT1, rtDesc, name: "_PassRT1", wrapMode: TextureWrapMode.Clamp); + RenderingUtils.ReAllocateIfNeeded(ref m_tmpRT2, rtDesc, name: "_PassRT2", wrapMode: TextureWrapMode.Clamp); #else - RenderEmulation.ReAllocateIfNeeded(ref m_tmpRT1, rtDesc, name: "_PassRT1"); - RenderEmulation.ReAllocateIfNeeded(ref m_tmpRT2, rtDesc, name: "_PassRT2"); + RenderEmulation.ReAllocateIfNeeded(ref m_tmpRT1, rtDesc, name: "_PassRT1", wrapMode: TextureWrapMode.Clamp); + RenderEmulation.ReAllocateIfNeeded(ref m_tmpRT2, rtDesc, name: "_PassRT2", wrapMode: TextureWrapMode.Clamp); #endif m_PassData.tmpRT1 = m_tmpRT1; @@ -144,4 +144,4 @@ internal class PassData public RTHandle tmpRT2; } } -} \ No newline at end of file +}