浏览代码

fix shader library compile regression

/seans-add-link-xml
Andre McGrail 4 年前
当前提交
53b26ad2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      Packages/com.verasl.water-system/Shaders/WaterCommon.hlsl

3
Packages/com.verasl.water-system/Shaders/WaterCommon.hlsl


//return fresnelTerm.xxxx;
BRDFData brdfData;
InitializeBRDFData(half3(0, 0, 0), 0, half3(1, 1, 1), 0.95, 1, brdfData);
half alpha = 1;
InitializeBRDFData(half3(0, 0, 0), 0, half3(1, 1, 1), 0.95, alpha, brdfData);
half3 spec = DirectBDRF(brdfData, IN.normal, mainLight.direction, IN.viewDir) * shadow * mainLight.color;
#ifdef _ADDITIONAL_LIGHTS
uint pixelLightCount = GetAdditionalLightsCount();

正在加载...
取消
保存