diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-05-01 17:18:26 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-05-01 17:30:51 +0300 |
commit | d33801e2bff1e39cefc74f53ae2b5e532cc7d964 (patch) | |
tree | cc5a07c416371612736ecaca2ac20f59f56fc7d5 /source/blender/draw/intern/shaders | |
parent | 1c992cc647d9954e43d06e10741692ad9d8af36d (diff) |
Overlay: Port image empty shader to use shaderCreateInfo
This should have no functional changes.
Diffstat (limited to 'source/blender/draw/intern/shaders')
-rw-r--r-- | source/blender/draw/intern/shaders/common_view_clipping_lib.glsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/draw/intern/shaders/common_view_clipping_lib.glsl b/source/blender/draw/intern/shaders/common_view_clipping_lib.glsl index bae818cf9f3..d6dfa326511 100644 --- a/source/blender/draw/intern/shaders/common_view_clipping_lib.glsl +++ b/source/blender/draw/intern/shaders/common_view_clipping_lib.glsl @@ -16,6 +16,18 @@ void view_clipping_distances(vec3 wpos) # endif } +void view_clipping_distances_bypass() +{ +# ifdef USE_WORLD_CLIP_PLANES + gl_ClipDistance[0] = 1.0; + gl_ClipDistance[1] = 1.0; + gl_ClipDistance[2] = 1.0; + gl_ClipDistance[3] = 1.0; + gl_ClipDistance[4] = 1.0; + gl_ClipDistance[5] = 1.0; +# endif +} + /* Kept as define for compiler compatibility. */ # ifdef USE_WORLD_CLIP_PLANES # define view_clipping_distances_set(c) \ |