Skip to content

Commit

Permalink
- added 3 more texture samplers to the shaders to compensate for the …
Browse files Browse the repository at this point in the history
…now always occupied slots for brightmap, glow and detail.
  • Loading branch information
coelckers committed Jun 9, 2020
1 parent 18371fb commit c9833a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/rendering/gl/gl_shader.cpp
Expand Up @@ -306,6 +306,9 @@ bool FShader::Load(const char * name, const char * vert_prog_lump, const char *
uniform sampler2D texture6;
uniform sampler2D texture7;
uniform sampler2D texture8;
uniform sampler2D texture9;
uniform sampler2D texture10;
uniform sampler2D texture11;
// timer data
uniform float timer;
Expand Down
3 changes: 3 additions & 0 deletions src/common/rendering/vulkan/shaders/vk_shader.cpp
Expand Up @@ -183,6 +183,9 @@ static const char *shaderBindings = R"(
layout(set = 1, binding = 5) uniform sampler2D texture6;
layout(set = 1, binding = 6) uniform sampler2D texture7;
layout(set = 1, binding = 7) uniform sampler2D texture8;
layout(set = 1, binding = 8) uniform sampler2D texture9;
layout(set = 1, binding = 9) uniform sampler2D texture10;
layout(set = 1, binding = 10) uniform sampler2D texture11;
// This must match the PushConstants struct
layout(push_constant) uniform PushConstants
Expand Down

0 comments on commit c9833a8

Please sign in to comment.