浏览代码

ps4 compile fix for LightweightPipeline

/main
runes 7 年前
当前提交
29320591
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightShadows.cginc

2
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightShadows.cginc


half3 subtractedLightmap = lightmap - estimatedLightContributionMaskedByInverseOfShadow;
// 2) Allows user to define overall ambient of the scene and control situation when realtime shadow becomes too dark.
half3 realtimeShadow = max(subtractedLightmap, _SubtractiveShadowColor);
half3 realtimeShadow = max(subtractedLightmap, _SubtractiveShadowColor.xyz);
realtimeShadow = lerp(realtimeShadow, lightmap, shadowStrength);
// 3) Pick darkest color

正在加载...
取消
保存