浏览代码

Fixed a compiler shader error introduced in last commit.

/Add-support-for-light-specular-color-tint
Felipe Lira 7 年前
当前提交
161e43f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightLighting.cginc

2
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightLighting.cginc


INITIALIZE_LIGHT(light, lightIter);
half3 lightDirection;
half atten = GetLightDirectionAndAttenuation(light, normalWS, positionWS, lightDirection);
half atten = GetLightDirectionAndRealtimeAttenuation(light, normalWS, positionWS, lightDirection);
half3 lightColor = light.color * atten;
vertexLightColor += LightingLambert(lightColor, lightDirection, normalWS);
}

正在加载...
取消
保存