浏览代码

Merge pull request #1384 from Unity-Technologies/lw/temporary-depth-precision-fix

Disable depth multisample resolve
/main
GitHub 6 年前
当前提交
efe360da
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightForwardRenderer.cs

6
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightForwardRenderer.cs


bool supportsTextureCopy = SystemInfo.copyTextureSupport != CopyTextureSupport.None;
bool supportsDepthTarget = SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.Depth);
bool supportsDepthCopy = !msaaEnabledForCamera && (supportsDepthTarget || supportsTextureCopy);
bool msaaDepthResolve = msaaEnabledForCamera && SystemInfo.supportsMultisampledTextures != 0;
// TODO: We don't have support to highp Texture2DMS currently and this breaks depth precision.
// currently disabling it until shader changes kick in.
//bool msaaDepthResolve = msaaEnabledForCamera && SystemInfo.supportsMultisampledTextures != 0;
bool msaaDepthResolve = false;
return supportsDepthCopy || msaaDepthResolve;
}

正在加载...
取消
保存