diff options
author | mattkae <mattkae@protonmail.com> | 2023-07-31 07:31:52 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2023-07-31 07:31:52 -0400 |
commit | b6a666e96ffd04bd6d52be8fd9899faf27b751db (patch) | |
tree | ddc56ec77d0fa6a35a581ea49bcd1b4c3cac3756 /themes/src/shaders/renderer3d_vert.h | |
parent | ffa1ada2b7f65e0b3afe561b3291219394df21f3 (diff) |
Some initial shader loading work
Diffstat (limited to 'themes/src/shaders/renderer3d_vert.h')
-rw-r--r-- | themes/src/shaders/renderer3d_vert.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/themes/src/shaders/renderer3d_vert.h b/themes/src/shaders/renderer3d_vert.h new file mode 100644 index 0000000..20e69f9 --- /dev/null +++ b/themes/src/shaders/renderer3d_vert.h @@ -0,0 +1,19 @@ +#ifndef SHADER_RENDERER3D_VERT +#define SHADER_RENDERER3D_VERT +const char* shader_renderer3d_vert = "attribute vec4 position; \n" +"attribute vec4 color; \n" +"attribute vec4 normal; \n" +"uniform mat4 projection; \n" +"uniform mat4 view; \n" +"uniform mat4 model; \n" +"varying lowp vec4 VertexColor; \n" +"varying lowp vec4 VertexNormal; \n" +" \n" +"void main() { \n" +" vec4 fragmentPosition = projection * view * model * position; \n" +" gl_Position = fragmentPosition; \n" +" VertexColor = color; \n" +" VertexNormal = normal; \n" +"} \n" +" \n"; +#endif |