浏览代码

We don't have support to highp Texture2DMS in shader back end. Disabling multisample depth resolve until we fix the issue.

/main
Felipe Lira 7 年前
当前提交
3cc463d7
共有 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;
}

正在加载...
取消
保存