diff options
Diffstat (limited to 'src/main/resources/assets/oneconfig/shaders/rect.vsh')
-rw-r--r-- | src/main/resources/assets/oneconfig/shaders/rect.vsh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/resources/assets/oneconfig/shaders/rect.vsh b/src/main/resources/assets/oneconfig/shaders/rect.vsh new file mode 100644 index 0000000..51ed6ee --- /dev/null +++ b/src/main/resources/assets/oneconfig/shaders/rect.vsh @@ -0,0 +1,10 @@ +#version 110 + +varying vec2 f_Position; + +void main() { + f_Position = gl_Vertex.xy; + + gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; + gl_FrontColor = gl_Color; +}
\ No newline at end of file |