浏览代码

Fixed issues that was causing the renderbuffers imcomplete error on opengl.

/Add-support-for-light-specular-color-tint
Felipe Lira 7 年前
当前提交
0692cac2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs

2
ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs


CommandBuffer cmd = CommandBufferPool.Get("SetCameraRenderTarget");
if (LightweightUtils.HasFlag(renderingConfig, FrameRenderingConfiguration.IntermediateTexture))
{
if (m_CurrCamera.targetTexture == null)
if (m_CurrCamera.targetTexture == null || m_CurrCamera.cameraType == CameraType.SceneView)
colorRT = m_CameraColorRT;
if (LightweightUtils.HasFlag(renderingConfig, FrameRenderingConfiguration.RequireDepth))

正在加载...
取消
保存