Merge pull request #22636 from tagcup/comment

Bring accidentally commented out lines.
This commit is contained in:
Rémi Verschelde 2018-10-02 19:00:09 +02:00 committed by GitHub
commit 051b8837b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1191,8 +1191,8 @@ LIGHT_SHADER_CODE
float aspect = sqrt(1.0 - anisotropy * 0.9);
float ax = alpha / aspect;
float ay = alpha * aspect;
//float XdotH = dot(T, H);
//float YdotH = dot(B, H);
float XdotH = dot(T, H);
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))