summaryrefslogtreecommitdiff
path: root/themes/src/shaders/renderer3d.frag
blob: 2f503472fab07305afbee26022a8a6e638b9c777 (plain)
1
2
3
4
5
6
7
varying lowp vec4 VertexColor;
varying lowp vec4 VertexNormal;

void main() {
    const lowp vec3 lightDirection = vec3(0.0, 1.0, 0.0);
    gl_FragColor = vec4(VertexColor.xyz * dot(VertexNormal.xyz, lightDirection), 1);
}