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:
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/infos/overlay_facing_info.hh')
-rw-r--r--source/blender/draw/engines/overlay/shaders/infos/overlay_facing_info.hh15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/infos/overlay_facing_info.hh b/source/blender/draw/engines/overlay/shaders/infos/overlay_facing_info.hh
new file mode 100644
index 00000000000..6d6806eaa80
--- /dev/null
+++ b/source/blender/draw/engines/overlay/shaders/infos/overlay_facing_info.hh
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include "gpu_shader_create_info.hh"
+
+GPU_SHADER_CREATE_INFO(overlay_facing)
+ .do_static_compilation(true)
+ .vertex_in(0, Type::VEC3, "pos")
+ .vertex_source("facing_vert.glsl")
+ .fragment_source("facing_frag.glsl")
+ .fragment_out(0, Type::VEC4, "fragColor")
+ .additional_info("draw_mesh", "draw_globals");
+
+GPU_SHADER_CREATE_INFO(overlay_facing_clipped)
+ .do_static_compilation(true)
+ .additional_info("overlay_facing", "drw_clipped");