Differential D15898 Diff 56015 source/blender/draw/engines/overlay/shaders/infos/overlay_paint_info.hh
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/shaders/infos/overlay_paint_info.hh
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| #include "gpu_shader_create_info.hh" | #include "gpu_shader_create_info.hh" | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name OVERLAY_shader_paint_face. | /** \name OVERLAY_shader_paint_face. | ||||
| * | * | ||||
| * Used for face selection mode in Weight, Vertex and Texture Paint. | * Used for face selection mode in Weight, Vertex and Texture Paint. | ||||
| * \{ */ | * \{ */ | ||||
| GPU_SHADER_CREATE_INFO(overlay_paint_face) | GPU_SHADER_CREATE_INFO(overlay_paint_face) | ||||
| .do_static_compilation(true) | .do_static_compilation(true) | ||||
| .vertex_in(0, Type::VEC3, "pos") | .vertex_in(0, Type::VEC3, "pos") | ||||
| .vertex_in(1, Type::VEC4, "nor") /* Select flag on the 4th component. */ | .vertex_in(1, Type::VEC4, "nor") /* Select flag on the 4th component. */ | ||||
| .push_constant(Type::VEC4, "color") | .push_constant(Type::VEC4, "ucolor") | ||||
| .fragment_out(0, Type::VEC4, "fragColor") | .fragment_out(0, Type::VEC4, "fragColor") | ||||
| .vertex_source("overlay_paint_face_vert.glsl") | .vertex_source("overlay_paint_face_vert.glsl") | ||||
| .fragment_source("overlay_uniform_color_frag.glsl") | .fragment_source("overlay_uniform_color_frag.glsl") | ||||
| .additional_info("draw_modelmat"); | .additional_info("draw_modelmat"); | ||||
| GPU_SHADER_CREATE_INFO(overlay_paint_face_clipped) | GPU_SHADER_CREATE_INFO(overlay_paint_face_clipped) | ||||
| .additional_info("overlay_paint_face") | .additional_info("overlay_paint_face") | ||||
| .additional_info("drw_clipped") | .additional_info("drw_clipped") | ||||
| ▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines | |||||