summaryrefslogtreecommitdiff
path: root/res/basicShader.fs
blob: 3aa974f404ea38cba2cde0c5f518325988640232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 120

varying vec2 texCoord0;
varying vec3 normal0;

uniform sampler2D sampler;
uniform vec3 lightDirection;

void main()
{
	gl_FragColor = texture2D(sampler, texCoord0) *
		clamp(dot(-lightDirection, normal0), 0.0, 1.0);
}