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