浏览代码

Enable check for RenderTextureFormat.RGB111110Float support

/bugfix-R11G11B10-check
Florian Penzkofer 5 年前
当前提交
a703ffc3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Packages/com.verasl.water-system/Scripts/Rendering/PlanarReflections.cs

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


var res = ReflectionResolution(camera, UniversalRenderPipeline.asset.renderScale);
if (m_ReflectionTexture == null)
{
bool useHDR10 = true;// SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.RGB111110Float);
bool useHDR10 = SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.RGB111110Float);
RenderTextureFormat hdrFormat =
useHDR10 ? RenderTextureFormat.RGB111110Float : RenderTextureFormat.DefaultHDR;
m_ReflectionTexture = RenderTexture.GetTemporary(res.x, res.y, 16,

正在加载...
取消
保存