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

in vec3 FragPos;
in vec2 TexCoords;
in vec3 Normal;

out vec4 gPosition;
out vec4 gNormal;
out vec4 gAlbedoSpec;

uniform sampler2D texture0;

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