浏览代码

Merge pull request #1045 from Unity-Technologies/Fix-bake-area-creation

Fix bake area creation
/2018.1
GitHub 7 年前
当前提交
baa96d1a
共有 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;
}
}
}
正在加载...
取消
保存