shaderCustomTex.frag 289 Bytes
Newer Older
boustila's avatar
boustila committed
1 2
// ShaderCustomTex::fragmentShaderText

kvanhoey's avatar
kvanhoey committed
3
PRECISION;
boustila's avatar
boustila committed
4 5 6 7 8 9 10
uniform sampler2D textureUnit;
in vec3 N;
in vec2 fragTexCoord;
uniform vec4 ambient;
FRAG_OUT_DEF;
void main()
{
Sylvain Thery's avatar
Sylvain Thery committed
11
	gl_FragData[0] = ambient*TEXTURE2D(textureUnit,fragTexCoord);
boustila's avatar
boustila committed
12
	gl_FragData[1] = vec4( 0.5*normalize(N)+vec3(0.5), 1.0 );
Sylvain Thery's avatar
Sylvain Thery committed
13
}