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_frag.h | |
parent | ffa1ada2b7f65e0b3afe561b3291219394df21f3 (diff) |
Some initial shader loading work
Diffstat (limited to 'themes/src/shaders/renderer3d_frag.h')
-rw-r--r-- | themes/src/shaders/renderer3d_frag.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/src/shaders/renderer3d_frag.h b/themes/src/shaders/renderer3d_frag.h new file mode 100644 index 0000000..6b3a936 --- /dev/null +++ b/themes/src/shaders/renderer3d_frag.h @@ -0,0 +1,11 @@ +#ifndef SHADER_RENDERER3D_FRAG +#define SHADER_RENDERER3D_FRAG +const char* shader_renderer3d_frag = "varying lowp vec4 VertexColor; \n" +"varying lowp vec4 VertexNormal; \n" +" \n" +"void main() { \n" +" const lowp vec3 lightDirection = vec3(0.0, 1.0, 0.0); \n" +" gl_FragColor = vec4(VertexColor.xyz * dot(VertexNormal.xyz, lightDirection), 1); \n" +"} \n" +" \n"; +#endif |