浏览代码

Fix bake area creation

/main
sebastienlagarde 7 年前
当前提交
f6393946
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Light/HDAdditionalLightData.cs

9
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Light/HDAdditionalLightData.cs


{
// At first init we need to initialize correctly the default value
lightData.ConvertPhysicalLightIntensityToLightIntensity();
// Special treatment for Unity builtin area light. Change it to our rectangle light
var light = lightData.gameObject.GetComponent<Light>();
if (light.type == LightType.Area)
{
lightData.lightTypeExtent = LightTypeExtent.Rectangle;
}
}
}
正在加载...
取消
保存