浏览代码

fixed wrong light shadow indexing in PBS shader

/main
Felipe Lira 7 年前
当前提交
3550c0cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/Lighting.hlsl

2
ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/Lighting.hlsl


{
half index = half(i);
Light light = GetLight(index, inputData.positionWS);
light.attenuation *= LocalLightRealtimeShadowAttenuation(index, inputData.positionWS);
light.attenuation *= LocalLightRealtimeShadowAttenuation(light.index, inputData.positionWS);
color += LightingPhysicallyBased(brdfData, light, inputData.normalWS, inputData.viewDirectionWS);
}
#endif

正在加载...
取消
保存