summaryrefslogtreecommitdiff
path: root/themes/src/shaders/renderer3d_frag.h
blob: 6b3a936458ab12408fd98ddbe23b5ba62515f706 (plain)
1
2
3
4
5
6
7
8
9
10
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