浏览代码

Stacklit. Make sure LTC area lights are setup correctly if no other material has set them up.

/StackLit2
Stephane Laroche 7 年前
当前提交
ef1f7d32
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      com.unity.render-pipelines.high-definition/HDRP/Material/StackLit/StackLit.cs

6
com.unity.render-pipelines.high-definition/HDRP/Material/StackLit/StackLit.cs


public override void Build(HDRenderPipelineAsset hdAsset)
{
PreIntegratedFGD.instance.Build(PreIntegratedFGD.FGDIndex.FGD_GGXAndDisneyDiffuse);
//LTCAreaLight.instance.Build();
LTCAreaLight.instance.Build();
m_isInit = false;
}

PreIntegratedFGD.instance.Cleanup(PreIntegratedFGD.FGDIndex.FGD_GGXAndDisneyDiffuse);
//LTCAreaLight.instance.Cleanup();
LTCAreaLight.instance.Cleanup();
m_isInit = false;
}

public override void Bind()
{
PreIntegratedFGD.instance.Bind(PreIntegratedFGD.FGDIndex.FGD_GGXAndDisneyDiffuse);
//LTCAreaLight.instance.Bind();
LTCAreaLight.instance.Bind();
}
}
}
正在加载...
取消
保存