diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-19 13:00:20 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-20 17:58:07 +0300 |
commit | 3f1a7aec13cc0cf5c441e463dbd8e9ffdd4b4f44 (patch) | |
tree | df210c52490daf7d1df9c4c7ee67977de3855919 /source | |
parent | 07dd208209ce24b95e992928edcb63638256bf00 (diff) |
Eevee: optimize vertex shader for probe and shadows.
Diffstat (limited to 'source')
4 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/probe_geom.glsl b/source/blender/draw/engines/eevee/shaders/probe_geom.glsl index 5f79e1c6eb8..c7250e1212e 100644 --- a/source/blender/draw/engines/eevee/shaders/probe_geom.glsl +++ b/source/blender/draw/engines/eevee/shaders/probe_geom.glsl @@ -5,7 +5,7 @@ layout(triangle_strip, max_vertices=3) out; uniform int Layer; in vec4 vPos[]; -in int face[]; +flat in int face[]; out vec3 worldPosition; out vec3 worldNormal; /* Required. otherwise generate linking error on AMD. */ diff --git a/source/blender/draw/engines/eevee/shaders/probe_vert.glsl b/source/blender/draw/engines/eevee/shaders/probe_vert.glsl index 16b66a584a3..f5077d52845 100644 --- a/source/blender/draw/engines/eevee/shaders/probe_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/probe_vert.glsl @@ -2,7 +2,7 @@ in vec3 pos; out vec4 vPos; -out int face; +flat out int face; void main() { vPos = vec4(pos, 1.0); diff --git a/source/blender/draw/engines/eevee/shaders/shadow_geom.glsl b/source/blender/draw/engines/eevee/shaders/shadow_geom.glsl index 3e63032abe3..bac6a10eee1 100644 --- a/source/blender/draw/engines/eevee/shaders/shadow_geom.glsl +++ b/source/blender/draw/engines/eevee/shaders/shadow_geom.glsl @@ -8,7 +8,7 @@ layout(std140) uniform shadow_render_block { }; in vec4 vPos[]; -in int face[]; +flat in int face[]; void main() { int f = face[0]; diff --git a/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl b/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl index 28470b31a0f..ffb99f1b35c 100644 --- a/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl @@ -4,7 +4,7 @@ uniform mat4 ShadowModelMatrix; in vec3 pos; out vec4 vPos; -out int face; +flat out int face; void main() { vPos = ShadowModelMatrix * vec4(pos, 1.0); |