浏览代码

fixed bug in blurred shadow related to checking if MAIN_LIGHT_CALCULATE_SHADOWS is defined producing a full black plane

/main
Dan 4 年前
当前提交
d6b8c022
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      Assets/Shaders/Shadows/ShaderGraphs/BlurredShadowPlaneLighting.hlsl

6
Assets/Shaders/Shadows/ShaderGraphs/BlurredShadowPlaneLighting.hlsl


#else
half cascadeIndex = 0;
#endif
#if !defined(MAIN_LIGHT_CALCULATE_SHADOWS)
float shadowMapSample = 1.0;
#else
#endif
float isInShadow = step(shadowMapSample, shadowCoord.z);
float isInShadow = 1 - shadowMapSample;
shadowAtten -= isInShadow * oneDivNumSteps;
// If the position is out of shadow distance, just return 1

正在加载...
取消
保存