浏览代码

Using HDR10 as HDR format.

/main
Felipe Lira 6 年前
当前提交
7bcb0894
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 7
      Packages/com.verasl.water-system/Scripts/Rendering/PlanerReflections.cs

7
Packages/com.verasl.water-system/Scripts/Rendering/PlanerReflections.cs


{
if (m_ReflectionTexture)
DestroyImmediate(m_ReflectionTexture);
bool useHDR10 = Application.isMobilePlatform &&
SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.ARGB2101010);
RenderTextureFormat hdrFormat = (useHDR10) ? RenderTextureFormat.ARGB2101010 : RenderTextureFormat.DefaultHDR;
currentCamera.allowHDR ? RenderTextureFormat.DefaultHDR : RenderTextureFormat.Default);
currentCamera.allowHDR ? hdrFormat : RenderTextureFormat.Default);
m_ReflectionTexture.useMipMap = m_ReflectionTexture.autoGenerateMips = false;
m_ReflectionTexture.autoGenerateMips = false; // no need for mips(unless wanting cheap roughness)
m_ReflectionTexture.name = "_PlanarReflection" + GetInstanceID();

正在加载...
取消
保存