Skip to content

Commit

Permalink
Merge pull request #22636 from tagcup/comment
Browse files Browse the repository at this point in the history
Bring accidentally commented out lines.
  • Loading branch information
akien-mga authored Oct 2, 2018
2 parents 75c2987 + 658c2b6 commit 051b883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gles2/shaders/scene.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 051b883

Please sign in to comment.