diff options
author | mattkae <mattkae@protonmail.com> | 2023-08-13 16:02:22 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2023-08-13 16:02:22 -0400 |
commit | 056d4560f72a9ec281f8df31aa2a7d8241d6adf1 (patch) | |
tree | d0bcbe3ad5dd9e4efb662389b1aa6806cc4365ef /themes/src/shaders/renderer3d_frag.cpp | |
parent | b6a666e96ffd04bd6d52be8fd9899faf27b751db (diff) |
Generating a cpp file for shaders
Diffstat (limited to 'themes/src/shaders/renderer3d_frag.cpp')
-rw-r--r-- | themes/src/shaders/renderer3d_frag.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/src/shaders/renderer3d_frag.cpp b/themes/src/shaders/renderer3d_frag.cpp new file mode 100644 index 0000000..a83f2e6 --- /dev/null +++ b/themes/src/shaders/renderer3d_frag.cpp @@ -0,0 +1,10 @@ +#include "renderer3d_frag.h" + +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"; |