浏览代码

Fixed bug in vertex lighting caused by casting due to typo.

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

4
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightLighting.cginc


return attenuation;
}
half3 VertexLighting(float positionWS, half3 normalWS)
half3 VertexLighting(float3 positionWS, half3 normalWS)
{
half3 vertexLightColor = half3(0.0, 0.0, 0.0);

half3 lightDirection;
half atten = ComputeLightAttenuation(light, normalWS, positionWS, lightDirection);
half lightColor = light.color * atten;
half3 lightColor = light.color * atten;
vertexLightColor += LightingLambert(lightColor, lightDirection, normalWS);
}
#endif

正在加载...
取消
保存