Skip to content

Commit

Permalink
use better name
Browse files Browse the repository at this point in the history
  • Loading branch information
toloudis committed Dec 30, 2024
1 parent 120f01f commit 3f1bb76
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions renderlib/graphics/glsl/shaders.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "shaders.h"

#include "shaders/shader_gen.hpp"
#include "shaders/basicVolume_frag_gen.hpp"

static std::unordered_map<std::string, std::string> shader_src = { { "shader", shader_shader } };
static std::unordered_map<std::string, std::string> shader_src = { { "shader", basicVolume_frag_shader } };
static std::unordered_map<std::string, GLShader*> shaders;

bool
Expand Down
4 changes: 2 additions & 2 deletions renderlib/graphics/glsl/shaders/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ${shader_content}
endfunction()

# Convert your shader file
convert_shader_to_cpp("shader.frag" "shader")
convert_shader_to_cpp("basicVolume.frag" "basicVolume.frag")

# Add the generated C++ file to your target
target_sources(renderlib PRIVATE shader_gen.hpp)
target_sources(renderlib PRIVATE basicVolume_frag_gen.hpp)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include <string>

const std::string shader_shader = R"(
const std::string basicVolume_frag_shader = R"(
#version 400 core
in VertexData
Expand Down

0 comments on commit 3f1bb76

Please sign in to comment.