WIP: SDL/OpenGL renderer. Make mvedecode use renderer for playback.
This commit is contained in:
12
shaders/overlay.fs
Normal file
12
shaders/overlay.fs
Normal file
@@ -0,0 +1,12 @@
|
||||
#version 330 core
|
||||
#extension GL_ARB_explicit_uniform_location : enable
|
||||
|
||||
layout(location = 1) uniform sampler2D texBase;
|
||||
|
||||
in vec2 fragTC;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main(void) {
|
||||
color = texture(texBase, fragTC);
|
||||
}
|
||||
16
shaders/overlay.vs
Normal file
16
shaders/overlay.vs
Normal file
@@ -0,0 +1,16 @@
|
||||
#version 330 core
|
||||
#extension GL_ARB_shading_language_420pack : enable
|
||||
#extension GL_ARB_explicit_uniform_location : enable
|
||||
|
||||
layout(location = 0) uniform mat4 projection_matrix;
|
||||
|
||||
layout(location = 0) in vec2 vertex;
|
||||
layout(location = 1) in vec2 vertexTC;
|
||||
|
||||
out vec2 fragTC;
|
||||
|
||||
void main(void) {
|
||||
vec4 pos = projection_matrix * vec4(vertex, 0.0, 1.0);
|
||||
gl_Position = pos;
|
||||
fragTC = vertexTC;
|
||||
}
|
||||
Reference in New Issue
Block a user