浏览代码

HDRenderPipeline: Update order of light (for future usage)

/Yibing-Project-2
Sebastien Lagarde 7 年前
当前提交
6e2479fd
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 5
      ScriptableRenderPipeline/HDRenderPipeline/Lighting/LightDefinition.cs
  2. 6
      ScriptableRenderPipeline/HDRenderPipeline/Lighting/LightDefinition.cs.hlsl

5
ScriptableRenderPipeline/HDRenderPipeline/Lighting/LightDefinition.cs


// structure definition
//-----------------------------------------------------------------------------
// Caution: Order is important and is use for optimization in light loop
ProjectorBox,
Point,
Point,
ProjectorBox,
// AreaLight
Line, // Keep Line lights before Rectangle. This is needed because of a compiler bug (see LightLoop.hlsl)

6
ScriptableRenderPipeline/HDRenderPipeline/Lighting/LightDefinition.cs.hlsl


// UnityEngine.Experimental.Rendering.HDPipeline.GPULightType: static fields
//
#define GPULIGHTTYPE_DIRECTIONAL (0)
#define GPULIGHTTYPE_PROJECTOR_BOX (1)
#define GPULIGHTTYPE_POINT (1)
#define GPULIGHTTYPE_POINT (3)
#define GPULIGHTTYPE_PROJECTOR_PYRAMID (4)
#define GPULIGHTTYPE_PROJECTOR_PYRAMID (3)
#define GPULIGHTTYPE_PROJECTOR_BOX (4)
#define GPULIGHTTYPE_LINE (5)
#define GPULIGHTTYPE_RECTANGLE (6)

正在加载...
取消
保存