diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-06-02 22:08:05 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-06-02 22:08:05 +0300 |
commit | c15e913df87af34b381922b2a6951e9bc2baef6c (patch) | |
tree | eb170876f4d90322eae3cdf5c41541a3121ea939 /source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh | |
parent | 7f47f187c18626456a31e2f8d6fd1ee8b9bfd011 (diff) |
Cleanup: DRW: Added overlay_ prefix to all *.glsl files in overlay/shaders
This is needed to avoid potential naming collision with other engines
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh')
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh b/source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh index e6f15046838..3624f26a4c3 100644 --- a/source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh +++ b/source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh @@ -19,7 +19,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_common) .push_constant(Type::BOOL, "selectEdges") .push_constant(Type::FLOAT, "alpha") .push_constant(Type::IVEC4, "dataMask") - .vertex_source("edit_mesh_vert.glsl") + .vertex_source("overlay_edit_mesh_vert.glsl") .additional_info("draw_modelmat", "draw_globals"); GPU_SHADER_INTERFACE_INFO(overlay_edit_mesh_vert_iface, "") @@ -58,8 +58,8 @@ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge) .vertex_out(overlay_edit_mesh_edge_iface) .geometry_out(overlay_edit_mesh_edge_geom_iface) .geometry_layout(PrimitiveIn::LINES, PrimitiveOut::TRIANGLE_STRIP, 4) - .geometry_source("edit_mesh_geom.glsl") - .fragment_source("edit_mesh_frag.glsl") + .geometry_source("overlay_edit_mesh_geom.glsl") + .fragment_source("overlay_edit_mesh_frag.glsl") .additional_info("overlay_edit_mesh_common"); GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge_flat) @@ -103,7 +103,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_normal) .push_constant(Type::BOOL, "isConstantScreenSizeNormals") .vertex_out(overlay_edit_flat_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_mesh_normal_vert.glsl") + .vertex_source("overlay_edit_mesh_normal_vert.glsl") .fragment_source("gpu_shader_flat_color_frag.glsl") .additional_info("draw_modelmat_instanced_attr", "draw_globals"); @@ -116,8 +116,8 @@ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_analysis) .sampler(0, ImageType::FLOAT_1D, "weightTex") .fragment_out(0, Type::VEC4, "fragColor") .vertex_out(overlay_edit_mesh_analysis_iface) - .vertex_source("edit_mesh_analysis_vert.glsl") - .fragment_source("edit_mesh_analysis_frag.glsl") + .vertex_source("overlay_edit_mesh_analysis_vert.glsl") + .fragment_source("overlay_edit_mesh_analysis_frag.glsl") .additional_info("draw_modelmat"); GPU_SHADER_CREATE_INFO(overlay_edit_mesh_skin_root) @@ -128,7 +128,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_skin_root) .vertex_in(2, Type::VEC3, "local_pos") .vertex_out(overlay_edit_flat_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_mesh_skin_root_vert.glsl") + .vertex_source("overlay_edit_mesh_skin_root_vert.glsl") .fragment_source("gpu_shader_flat_color_frag.glsl") .additional_info("draw_modelmat_instanced_attr", "draw_globals"); @@ -193,9 +193,9 @@ GPU_SHADER_CREATE_INFO(overlay_edit_uv_edges) .push_constant(Type::FLOAT, "alpha") .push_constant(Type::FLOAT, "dashLength") .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_uv_edges_vert.glsl") - .geometry_source("edit_uv_edges_geom.glsl") - .fragment_source("edit_uv_edges_frag.glsl") + .vertex_source("overlay_edit_uv_edges_vert.glsl") + .geometry_source("overlay_edit_uv_edges_geom.glsl") + .fragment_source("overlay_edit_uv_edges_frag.glsl") .additional_info("draw_mesh", "draw_globals"); GPU_SHADER_CREATE_INFO(overlay_edit_uv_edges_select) @@ -212,7 +212,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_uv_faces) .push_constant(Type::FLOAT, "uvOpacity") .vertex_out(overlay_edit_flat_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_uv_faces_vert.glsl") + .vertex_source("overlay_edit_uv_faces_vert.glsl") .fragment_source("gpu_shader_flat_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -225,7 +225,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_uv_face_dots) .push_constant(Type::FLOAT, "pointSize") .vertex_out(overlay_edit_flat_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_uv_face_dots_vert.glsl") + .vertex_source("overlay_edit_uv_face_dots_vert.glsl") .fragment_source("gpu_shader_flat_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -245,8 +245,8 @@ GPU_SHADER_CREATE_INFO(overlay_edit_uv_verts) .push_constant(Type::VEC4, "color") .vertex_out(overlay_edit_uv_vert_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_uv_verts_vert.glsl") - .fragment_source("edit_uv_verts_frag.glsl") + .vertex_source("overlay_edit_uv_verts_vert.glsl") + .fragment_source("overlay_edit_uv_verts_frag.glsl") .additional_info("draw_mesh", "draw_globals"); GPU_SHADER_CREATE_INFO(overlay_edit_uv_tiled_image_borders) @@ -256,7 +256,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_uv_tiled_image_borders) .vertex_in(0, Type::VEC3, "pos") .push_constant(Type::VEC4, "color") .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_uv_tiled_image_borders_vert.glsl") + .vertex_source("overlay_edit_uv_tiled_image_borders_vert.glsl") .fragment_source("gpu_shader_uniform_color_frag.glsl") .additional_info("draw_mesh"); @@ -266,13 +266,13 @@ GPU_SHADER_CREATE_INFO(overlay_edit_uv_stencil_image) .do_static_compilation(true) .vertex_in(0, Type::VEC3, "pos") .vertex_out(edit_uv_image_iface) - .vertex_source("edit_uv_image_vert.glsl") + .vertex_source("overlay_edit_uv_image_vert.glsl") .sampler(0, ImageType::FLOAT_2D, "imgTexture") .push_constant(Type::BOOL, "imgPremultiplied") .push_constant(Type::BOOL, "imgAlphaBlend") .push_constant(Type::VEC4, "color") .fragment_out(0, Type::VEC4, "fragColor") - .fragment_source("image_frag.glsl") + .fragment_source("overlay_image_frag.glsl") .additional_info("draw_mesh"); GPU_SHADER_CREATE_INFO(overlay_edit_uv_mask_image) @@ -282,8 +282,8 @@ GPU_SHADER_CREATE_INFO(overlay_edit_uv_mask_image) .sampler(0, ImageType::FLOAT_2D, "imgTexture") .push_constant(Type::VEC4, "color") .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_uv_image_vert.glsl") - .fragment_source("edit_uv_image_mask_frag.glsl") + .vertex_source("overlay_edit_uv_image_vert.glsl") + .fragment_source("overlay_edit_uv_image_mask_frag.glsl") .additional_info("draw_mesh"); /** \} */ @@ -299,7 +299,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_uv_stretching) .push_constant(Type::VEC2, "aspect") .vertex_out(overlay_edit_nopersp_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_uv_stretching_vert.glsl") + .vertex_source("overlay_edit_uv_stretching_vert.glsl") .fragment_source("gpu_shader_2D_smooth_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -338,8 +338,8 @@ GPU_SHADER_CREATE_INFO(overlay_edit_curve_handle) .push_constant(Type::BOOL, "showCurveHandles") .push_constant(Type::INT, "curveHandleDisplay") .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_curve_handle_vert.glsl") - .geometry_source("edit_curve_handle_geom.glsl") + .vertex_source("overlay_edit_curve_handle_vert.glsl") + .geometry_source("overlay_edit_curve_handle_geom.glsl") .fragment_source("gpu_shader_3D_smooth_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -358,7 +358,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_curve_point) .push_constant(Type::BOOL, "showCurveHandles") .push_constant(Type::INT, "curveHandleDisplay") .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_curve_point_vert.glsl") + .vertex_source("overlay_edit_curve_point_vert.glsl") .fragment_source("gpu_shader_point_varying_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -377,7 +377,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_curve_wire) .push_constant(Type::FLOAT, "normalSize") .vertex_out(overlay_edit_flat_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_curve_wire_vert.glsl") + .vertex_source("overlay_edit_curve_wire_vert.glsl") .fragment_source("gpu_shader_flat_color_frag.glsl") .additional_info("draw_modelmat", "draw_resource_id_uniform", "draw_globals"); @@ -399,7 +399,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_lattice_point) .vertex_in(1, Type::INT, "data") .vertex_out(overlay_edit_flat_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_lattice_point_vert.glsl") + .vertex_source("overlay_edit_lattice_point_vert.glsl") .fragment_source("gpu_shader_point_varying_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -416,7 +416,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_lattice_wire) .sampler(0, ImageType::FLOAT_1D, "weightTex") .vertex_out(overlay_edit_smooth_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_lattice_wire_vert.glsl") + .vertex_source("overlay_edit_lattice_wire_vert.glsl") .fragment_source("gpu_shader_3D_smooth_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -440,7 +440,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_particle_strand) .push_constant(Type::BOOL, "useWeight") .vertex_out(overlay_edit_smooth_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_particle_strand_vert.glsl") + .vertex_source("overlay_edit_particle_strand_vert.glsl") .fragment_source("gpu_shader_3D_smooth_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -456,7 +456,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_particle_point) .vertex_in(1, Type::FLOAT, "color") .vertex_out(overlay_edit_flat_color_iface) .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_particle_point_vert.glsl") + .vertex_source("overlay_edit_particle_point_vert.glsl") .fragment_source("gpu_shader_point_varying_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -487,7 +487,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_gpencil) .push_constant(Type::VEC4, "gpEditColor") .sampler(0, ImageType::FLOAT_1D, "weightTex") .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_gpencil_vert.glsl") + .vertex_source("overlay_edit_gpencil_vert.glsl") .additional_info("draw_mesh", "draw_globals"); GPU_SHADER_CREATE_INFO(overlay_edit_gpencil_wire) @@ -523,7 +523,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_gpencil_guide_point) .push_constant(Type::FLOAT, "pSize") .push_constant(Type::VEC4, "pColor") .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("edit_gpencil_guide_vert.glsl") + .vertex_source("overlay_edit_gpencil_guide_vert.glsl") .fragment_source("gpu_shader_point_varying_color_frag.glsl") .additional_info("draw_mesh", "draw_globals"); @@ -542,7 +542,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_gpencil_guide_point_clipped) GPU_SHADER_CREATE_INFO(overlay_depth_only) .do_static_compilation(true) .vertex_in(0, Type::VEC3, "pos") - .vertex_source("depth_only_vert.glsl") + .vertex_source("overlay_depth_only_vert.glsl") .fragment_source("gpu_shader_depth_only_frag.glsl") .additional_info("draw_mesh"); @@ -563,7 +563,7 @@ GPU_SHADER_CREATE_INFO(overlay_uniform_color) .vertex_in(0, Type::VEC3, "pos") .push_constant(Type::VEC4, "color") .fragment_out(0, Type::VEC4, "fragColor") - .vertex_source("depth_only_vert.glsl") + .vertex_source("overlay_depth_only_vert.glsl") .fragment_source("gpu_shader_uniform_color_frag.glsl") .additional_info("draw_mesh"); |