浏览代码

Fixed shadows in VR

/lw-bugfixes
Felipe Lira 7 年前
当前提交
c192bf42
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs

5
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs


else
baseDesc = new RenderTextureDescriptor(m_CurrCamera.pixelWidth, m_CurrCamera.pixelHeight);
baseDesc.width = (int)GetScaledCameraWidth(m_CurrCamera);
baseDesc.height = (int)GetScaledCameraHeight(m_CurrCamera);
float renderScale = GetRenderScale();
baseDesc.width = (int)((float)baseDesc.width * renderScale);
baseDesc.height = (int)((float)baseDesc.height * renderScale);
if (m_RequireDepthTexture)
{

正在加载...
取消
保存