浏览代码

[metal] skip screen-space AABBs compute job if no lights, fixes api validation error in the editor on some situations

/Branch_Batching2
Antti Tapaninen 8 年前
当前提交
9cac0d7e
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1
      Assets/ScriptableRenderLoop/HDRenderPipeline/Lighting/TilePass/TilePass.cs
  2. 1
      Assets/ScriptableRenderLoop/fptl/FptlLighting.cs

1
Assets/ScriptableRenderLoop/HDRenderPipeline/Lighting/TilePass/TilePass.cs


var cmd = new CommandBuffer() { name = "" };
// generate screen-space AABBs (used for both fptl and clustered).
if (m_lightCount != 0)
{
temp.SetRow(0, new Vector4(1.0f, 0.0f, 0.0f, 0.0f));
temp.SetRow(1, new Vector4(0.0f, 1.0f, 0.0f, 0.0f));

1
Assets/ScriptableRenderLoop/fptl/FptlLighting.cs


var cmd = new CommandBuffer() { name = "Build light list" };
// generate screen-space AABBs (used for both fptl and clustered).
if (numLights != 0)
{
var proj = CameraProjection(camera);
var temp = new Matrix4x4();

正在加载...
取消
保存