浏览代码

Fixed `InitializeBRDFData` call to be compatible with URP10.

/boatattack-xr-add-xr-support
thomas-zeng 4 年前
当前提交
d8114c80
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 6
      Packages/com.verasl.water-system/Shaders/WaterCommon.hlsl

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


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

正在加载...
取消
保存