|
|
|
|
|
|
//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(); |
|
|
|