diff options
author | nextdaydelivery <12willettsh@gmail.com> | 2022-02-16 18:53:30 +0000 |
---|---|---|
committer | nextdaydelivery <12willettsh@gmail.com> | 2022-02-16 18:53:30 +0000 |
commit | d8877f477cf737a30503facbc37c71c455d1b8ba (patch) | |
tree | 856a646fe63faf21e8b9c9af10215cbb3a7dcf0a /src/main/resources/assets/oneconfig/shaders/rect.vsh | |
parent | 8e718cdd0905c8aee4dda410e3c559bcf2a28dec (diff) | |
download | OneConfig-d8877f477cf737a30503facbc37c71c455d1b8ba.tar.gz OneConfig-d8877f477cf737a30503facbc37c71c455d1b8ba.tar.bz2 OneConfig-d8877f477cf737a30503facbc37c71c455d1b8ba.zip |
do round rectangles
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 |