diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-10 02:02:01 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-10 04:18:25 +0300 |
commit | 4f55ee5a3cb0895926205b0a63f168726de34adc (patch) | |
tree | 79a6915e12575c61563881aac47a3153f62d8dc4 /source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl | |
parent | 82957cfec8818b97b1c91b2c36b6efd585f0ab3b (diff) |
Eevee: Add new clipping UBO.
This fixes problems with the planar reflections.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl b/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl index 998ccfa453a..d25c49098a6 100644 --- a/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl @@ -14,7 +14,10 @@ out vec3 worldPosition; out vec3 viewPosition; /* Used for planar reflections */ -uniform vec4 ClipPlanes[1]; +/* keep in sync with EEVEE_ClipPlanesUniformBuffer */ +layout(std140) uniform clip_block { + vec4 ClipPlanes[1]; +}; #ifdef USE_FLAT_NORMAL flat out vec3 worldNormal; |