浏览代码

fixed the issue that was causing the UI to not render in scene view.

/RenderPassXR_Sandbox
Felipe Lira 7 年前
当前提交
7fa30ff5
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
      ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs

5
ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs


cullingParameters.shadowDistance = Mathf.Min(m_ShadowSettings.maxShadowDistance,
m_CurrCamera.farClipPlane);
// emit scene view UI
if (camera.cameraType == CameraType.SceneView)
ScriptableRenderContext.EmitWorldGeometryForSceneView(camera);
CullResults.Cull(ref cullingParameters, context, ref m_CullResults);
VisibleLight[] visibleLights = m_CullResults.visibleLights.ToArray();

正在加载...
取消
保存