浏览代码

updated planar reflection texture to not use depth.

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

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


SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.ARGB2101010);
RenderTextureFormat hdrFormat = (useHDR10) ? RenderTextureFormat.ARGB2101010 : RenderTextureFormat.DefaultHDR;
m_ReflectionTexture = new RenderTexture(m_TextureSize.x, m_TextureSize.y, 16,
m_ReflectionTexture = new RenderTexture(m_TextureSize.x, m_TextureSize.y, 0,
currentCamera.allowHDR ? hdrFormat : RenderTextureFormat.Default);
m_ReflectionTexture.useMipMap = m_ReflectionTexture.autoGenerateMips = false;
m_ReflectionTexture.autoGenerateMips = false; // no need for mips(unless wanting cheap roughness)

正在加载...
取消
保存