LD45/static/camera.vs
Stephen Seo 31465d0923 Impl camera and camera shader
At this point, the agnostic_interface is implemented with Raylib. What's
left is testing. Currently the main function does nothing.
2023-02-21 14:11:29 +09:00

24 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);
}