From 056d4560f72a9ec281f8df31aa2a7d8241d6adf1 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 13 Aug 2023 16:02:22 -0400 Subject: Generating a cpp file for shaders --- themes/src/shaders/renderer3d_frag.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'themes/src/shaders/renderer3d_frag.h') diff --git a/themes/src/shaders/renderer3d_frag.h b/themes/src/shaders/renderer3d_frag.h index 6b3a936..25f1fdf 100644 --- a/themes/src/shaders/renderer3d_frag.h +++ b/themes/src/shaders/renderer3d_frag.h @@ -1,11 +1,4 @@ #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"; +extern const char* shader_renderer3d_frag; #endif -- cgit v1.2.1