diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-03-26 13:53:24 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-03-26 15:16:01 +0300 |
commit | 23bbc0d7481cefd746cd32bfa8526ecaea9bf71d (patch) | |
tree | 1469b0c8e2153b83c4bc90cf56fc29736e1aa364 /source/blender/draw/intern/shaders | |
parent | 6073b6b874e4b5fa990153dfbaa04dac5d884094 (diff) |
DRW: Port draw_common.c to use shared definition with GLSL
Diffstat (limited to 'source/blender/draw/intern/shaders')
-rw-r--r-- | source/blender/draw/intern/shaders/draw_view_info.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/draw/intern/shaders/draw_view_info.hh b/source/blender/draw/intern/shaders/draw_view_info.hh index a699b9013ef..ba43938cbc0 100644 --- a/source/blender/draw/intern/shaders/draw_view_info.hh +++ b/source/blender/draw/intern/shaders/draw_view_info.hh @@ -75,6 +75,16 @@ GPU_SHADER_CREATE_INFO(drw_clipped).define("USE_WORLD_CLIP_PLANES"); /** \} */ /* -------------------------------------------------------------------- */ +/** \name Draw Globals + * \{ */ + +GPU_SHADER_CREATE_INFO(draw_globals) + .typedef_source("draw_common_shader_shared.h") + .uniform_buf(1, "ObjectMatrices", "drw_globals", Frequency::PASS); + +/** \} */ + +/* -------------------------------------------------------------------- */ /** \name Geometry Type * \{ */ |