浏览代码

Fixed the issues that was causing the direcitonal lightmaps to be overbright.

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

2
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightCore.cginc


#if DIRLIGHTMAP_COMBINED
half4 bakedDirection = UNITY_SAMPLE_TEX2D_SAMPLER(unity_LightmapInd, unity_Lightmap, lightmapUV);
bakedColor += DecodeDirectionalLightmap(bakedColor, bakedDirection, normalWS);
bakedColor = DecodeDirectionalLightmap(bakedColor, bakedDirection, normalWS);
#endif
return bakedColor;

正在加载...
取消
保存