浏览代码

PlanarReflection format fix for platforms that don't support RGB111110Float

/release-2019.1
André McGrail 5 年前
当前提交
1f30f7fa
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 5
      Packages/com.verasl.water-system/Scripts/Rendering/PlanarReflections.cs

5
Packages/com.verasl.water-system/Scripts/Rendering/PlanarReflections.cs


var res = ReflectionResolution(camera, LightweightRenderPipeline.asset.renderScale);
if (m_ReflectionTexture == null)
{
bool useHDR10 = SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.RGB111110Float);
RenderTextureFormat hdrFormat =
useHDR10 ? RenderTextureFormat.RGB111110Float : RenderTextureFormat.DefaultHDR;
GraphicsFormatUtility.GetGraphicsFormat(RenderTextureFormat.RGB111110Float, true));
GraphicsFormatUtility.GetGraphicsFormat(hdrFormat, true));
}
m_ReflectionCamera.targetTexture = m_ReflectionTexture;

正在加载...
取消
保存