diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-02 19:00:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 19:00:09 +0200 |
commit | 051b8837b0298665de7d5e77e49802f0651a9b3f (patch) | |
tree | d837b8d97e08d8bfe44dbee94b0eab3123a2a069 | |
parent | 75c29879b0c0b100415b2abd1992994656d06aec (diff) | |
parent | 658c2b6eeeb9be31af5db991d01f347d750d9a11 (diff) |
Merge pull request #22636 from tagcup/comment
Bring accidentally commented out lines.
-rw-r--r-- | drivers/gles2/shaders/scene.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gles2/shaders/scene.glsl b/drivers/gles2/shaders/scene.glsl index 42b50790b2..ed64f7adf6 100644 --- a/drivers/gles2/shaders/scene.glsl +++ b/drivers/gles2/shaders/scene.glsl @@ -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)) |