summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/basicShader.fs
blob: 8bb6350530a1ca7e1e0137a81dd9fd1852ee1524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 330 core

include(`materialInterface.glsl')
include(`geometryOut.glsl')

uniform sampler2D texture0;

void
main()
{
	vec4 textureColour = texture(texture0, TexCoords);
	float clear = round(mix(textureColour.a, 1, Colour.a));
	gPosition = vec4(FragPos, clear);
	gNormal = vec4(Normal, clear);
	gAlbedoSpec = mix(textureColour, vec4(Colour.rgb, 1), Colour.a);
}