浏览代码

code style feedback

/1.5-preview
Jimmy Alamparambil 6 年前
当前提交
0fdae9e9
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 12
      Assets/LWRPSupport/LWRPBackroundRendererAsset.cs

12
Assets/LWRPSupport/LWRPBackroundRendererAsset.cs


using System;
using UnityEngine.Experimental.Rendering.LightweightPipeline;
using UnityEngine.Rendering;
using UnityEngine.Serialization;
namespace UnityEngine.XR.ARFoundation.LWRPSupport
{

/// <summary>
/// we're going to reference all materials that we want to use so that they get built into the project
/// </summary>
public Material[] MaterialsUsed;
[SerializeField]
Material[] m_MaterialsUsed;
var bUseRenderPipeline = GraphicsSettings.renderPipelineAsset != null;
return bUseRenderPipeline ? new LWRPBackgroundRenderer() : new ARFoundationBackgroundRenderer();
var useRenderPipeline = GraphicsSettings.renderPipelineAsset != null;
return useRenderPipeline ? new LWRPBackgroundRenderer() : new ARFoundationBackgroundRenderer();
var bUseRenderPipeline = GraphicsSettings.renderPipelineAsset != null;
var useRenderPipeline = GraphicsSettings.renderPipelineAsset != null;
if (bUseRenderPipeline)
if (useRenderPipeline)
{
var lwrpBeforeCameraRender = cameraGameObject.GetComponent<LWRPBeforeCameraRender>();
if (lwrpBeforeCameraRender == null)

正在加载...
取消
保存