浏览代码

Fixed specular not displaying when glossiness from BaseAlpha selected.

/Branch_batcher
Felipe Lira 8 年前
当前提交
7408bafb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/LowEndMobilePipeline/Shaders/LowEndMobilePipelineCore.cginc

2
Assets/LowEndMobilePipeline/Shaders/LowEndMobilePipelineCore.cginc


half3 lightColor = lightInput.color.rgb * lightAtten;
half3 diffuse = diffuseColor * lightColor * NdotL;
#if defined(_SHARED_SPECULAR_DIFFUSE) || defined(_SPECGLOSSMAP) || defined(_SPECULAR_COLOR)
#if defined(_SPECGLOSSMAP_BASE_ALPHA) || defined(_SPECGLOSSMAP) || defined(_SPECULAR_COLOR)
half3 specular = specularGloss.rgb * lightColor * pow(NdotH, _Shininess * 128.0) * specularGloss.a;
return diffuse + specular;
#else

正在加载...
取消
保存