浏览代码

fix lights

/system-shock-transitional-shader
Paul Melamed 7 年前
当前提交
573dbe39
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/Editor/HDRenderPipelineMenuItems.cs
  2. 10
      ScriptableRenderPipeline/HDRenderPipeline/Editor/UpgradeStandardShaderMaterials.cs

4
ScriptableRenderPipeline/HDRenderPipeline/Editor/HDRenderPipelineMenuItems.cs


if (light.GetComponent<HDAdditionalLightData>() == null)
light.gameObject.AddComponent<HDAdditionalLightData>();
// if (light.GetComponent<AdditionalShadowData>() == null)
// light.gameObject.AddComponent<AdditionalShadowData>();
if (light.GetComponent<AdditionalShadowData>() == null)
light.gameObject.AddComponent<AdditionalShadowData>();
}
}

10
ScriptableRenderPipeline/HDRenderPipeline/Editor/UpgradeStandardShaderMaterials.cs


{
l.intensity *= Mathf.PI;
}
lights = Light.GetLights(LightType.Point, 0);
foreach (var l in lights)
{
l.intensity *= Mathf.PI;
}
lights = Light.GetLights(LightType.Spot, 0);
foreach (var l in lights)
{
l.intensity *= Mathf.PI;
}
}
}
}
正在加载...
取消
保存