Stephen Seo
31465d0923
At this point, the agnostic_interface is implemented with Raylib. What's left is testing. Currently the main function does nothing.
23 lines
456 B
GLSL
23 lines
456 B
GLSL
#version 100
|
|
|
|
// Input vertex attributes
|
|
attribute vec3 vertexPosition;
|
|
attribute vec2 vertexTexCoord;
|
|
attribute vec4 vertexColor;
|
|
|
|
// Input uniform values
|
|
uniform mat4 mvp;
|
|
|
|
// Output vertex attributes (to fragment shader)
|
|
varying vec2 fragTexCoord;
|
|
varying vec4 fragColor;
|
|
|
|
// custom
|
|
attribute vec2 camera;
|
|
|
|
void main() {
|
|
fragTexCoord = vertexTexCoord;
|
|
fragColor = vertexColor;
|
|
|
|
gl_Position = mvp * vec4(vertexPosition - vec3(camera, 0.0), 1.0);
|
|
}
|