mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2024-11-24 09:21:05 +00:00
Forgot to change shader version
This commit is contained in:
parent
eaab60cfda
commit
320164e597
@ -26,7 +26,7 @@ namespace
|
|||||||
};
|
};
|
||||||
|
|
||||||
constexpr char* VERTEX_SHADER_SOURCE =
|
constexpr char* VERTEX_SHADER_SOURCE =
|
||||||
"#version 460 core\n"
|
"#version 450 core\n"
|
||||||
"layout (location = 0) in vec2 position;\n"
|
"layout (location = 0) in vec2 position;\n"
|
||||||
"layout (location = 1) in vec2 offset;\n"
|
"layout (location = 1) in vec2 offset;\n"
|
||||||
"layout (location = 2) in int sprite;\n"
|
"layout (location = 2) in int sprite;\n"
|
||||||
@ -54,7 +54,7 @@ namespace
|
|||||||
"}";
|
"}";
|
||||||
|
|
||||||
constexpr char* GEOMETRY_SHADER_SOURCE =
|
constexpr char* GEOMETRY_SHADER_SOURCE =
|
||||||
"#version 460 core\n"
|
"#version 450 core\n"
|
||||||
"layout (triangles) in;\n"
|
"layout (triangles) in;\n"
|
||||||
"layout (triangle_strip, max_vertices = 3) out;\n"
|
"layout (triangle_strip, max_vertices = 3) out;\n"
|
||||||
"in VS_OUT {\n"
|
"in VS_OUT {\n"
|
||||||
@ -86,7 +86,7 @@ namespace
|
|||||||
"}";
|
"}";
|
||||||
|
|
||||||
constexpr char* FRAGMENT_SHADER_SOURCE =
|
constexpr char* FRAGMENT_SHADER_SOURCE =
|
||||||
"#version 460 core\n"
|
"#version 450 core\n"
|
||||||
"in vec2 texcoord;\n"
|
"in vec2 texcoord;\n"
|
||||||
"flat in int sprite;\n"
|
"flat in int sprite;\n"
|
||||||
"layout (binding = 0) uniform sampler2DArray " SPRITES_UNIFORM_NAME ";\n"
|
"layout (binding = 0) uniform sampler2DArray " SPRITES_UNIFORM_NAME ";\n"
|
||||||
@ -97,7 +97,7 @@ namespace
|
|||||||
"}";
|
"}";
|
||||||
|
|
||||||
constexpr char* SCREEN_VERTEX_SHADER_SOURCE =
|
constexpr char* SCREEN_VERTEX_SHADER_SOURCE =
|
||||||
"#version 460 core\n"
|
"#version 450 core\n"
|
||||||
"layout (location = 0) in vec2 position;\n"
|
"layout (location = 0) in vec2 position;\n"
|
||||||
"out vec2 texcoord;\n"
|
"out vec2 texcoord;\n"
|
||||||
"void main()\n"
|
"void main()\n"
|
||||||
@ -107,7 +107,7 @@ namespace
|
|||||||
"}";
|
"}";
|
||||||
|
|
||||||
constexpr char* SCREEN_FRAGMENT_SHADER_SOURCE =
|
constexpr char* SCREEN_FRAGMENT_SHADER_SOURCE =
|
||||||
"#version 460 core\n"
|
"#version 450 core\n"
|
||||||
"in vec2 texcoord;\n"
|
"in vec2 texcoord;\n"
|
||||||
"layout (binding = 1) uniform sampler2DArray " LAYERS_UNIFORM_NAME ";\n"
|
"layout (binding = 1) uniform sampler2DArray " LAYERS_UNIFORM_NAME ";\n"
|
||||||
"layout (std430, binding = 1) buffer LayerColors"
|
"layout (std430, binding = 1) buffer LayerColors"
|
||||||
|
Loading…
Reference in New Issue
Block a user