Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2017-07-27 12:21:11 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-07-27 15:51:44 +0300
commit05d73ec06f19013b3cdd4b05870baa45b59b961f (patch)
tree1d1bba2f26fbceac6f1709a15fd7f7012c87d5da /source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl
parentc6a74edcf86ceedd63678421635e231ae4e92de8 (diff)
Eevee: Planar Reflection: only support mirror reflection if not using SSR.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl')
-rw-r--r--source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl b/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl
index 901d1fa4aea..3a8430f14e6 100644
--- a/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl
+++ b/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl
@@ -35,8 +35,6 @@ uniform sampler2D specroughBuffer;
uniform int planar_count;
-uniform mat4 ViewProjectionMatrix;
-
layout(location = 0) out vec4 hitData0;
layout(location = 1) out vec4 hitData1;
layout(location = 2) out vec4 hitData2;
@@ -149,7 +147,7 @@ void main()
for (int i = 0; i < MAX_PLANAR && i < planar_count; ++i) {
PlanarData pd = planars_data[i];
- float fade = probe_attenuation_planar(pd, worldPosition, wN);
+ float fade = probe_attenuation_planar(pd, worldPosition, wN, 0.0);
if (fade > 0.5) {
/* Find view vector / reflection plane intersection. */
@@ -191,7 +189,6 @@ uniform int planar_count;
uniform float borderFadeFactor;
uniform float fireflyFactor;
-uniform mat4 ViewProjectionMatrix;
uniform mat4 PastViewProjectionMatrix;
out vec4 fragColor;
@@ -380,7 +377,7 @@ void main()
for (int i = 0; i < MAX_PLANAR && i < planar_count; ++i) {
pd = planars_data[i];
- float fade = probe_attenuation_planar(pd, worldPosition, N);
+ float fade = probe_attenuation_planar(pd, worldPosition, N, 0.0);
if (fade > 0.5) {
planar_index = float(i);