Overlay-Next: Fix broken shaders

This commit is contained in:
Clément Foucault
2024-09-11 18:47:41 +02:00
parent 71578879b9
commit f0742d2a42

View File

@@ -142,10 +142,13 @@ ShaderModule::ShaderModule(const SelectionType selection_type, const bool clippi
"overlay_edit_curves_handle",
[](gpu::shader::ShaderCreateInfo &info) { shader_patch_common(info); });
grid_background = shader("overlay_grid_background",
[](gpu::shader::ShaderCreateInfo &info) { shader_patch_common(info); });
grid_background = shader("overlay_grid_background", [](gpu::shader::ShaderCreateInfo &info) {
shader_patch_common(info);
info.define("tile_pos", "vec3(0.0)");
});
grid_image = shader("overlay_grid_image", [](gpu::shader::ShaderCreateInfo &info) {
info.define("tile_pos", "vec3(0.0)");
info.additional_infos_.clear();
info.additional_info("draw_view", "draw_globals")
.typedef_source("draw_shader_shared.hh")