Merge pull request #24653 from avril-gh/fixes-syntax-error-in-scene-glsl

fixes glsl syntax error
This commit is contained in:
Rémi Verschelde 2018-12-30 13:07:12 +01:00 committed by GitHub
commit 6c67ca3f5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1254,7 +1254,7 @@ LIGHT_SHADER_CODE
float YdotH = dot(B, H);
float D = D_GGX_anisotropic(cNdotH, ax, ay, XdotH, YdotH, cNdotH);
//float G = G_GGX_anisotropic_2cos(cNdotL, ax, ay, XdotH, YdotH) * G_GGX_anisotropic_2cos(cNdotV, ax, ay, XdotH, YdotH);
float G = V_GGX_anisotropic(ax, ay, dot(T, V), dot(T, L), dot(B, V), dot(B, L), cNdotV, cNdotL))
float G = V_GGX_anisotropic(ax, ay, dot(T, V), dot(T, L), dot(B, V), dot(B, L), cNdotV, cNdotL);
#else
float alpha = roughness * roughness;