Apply deferred shading to walls

This commit is contained in:
2021-09-01 00:51:50 +01:00
parent 1c587d4b9a
commit 4cd8b5aa1c
5 changed files with 22 additions and 19 deletions
+5 -2
View File
@@ -1,9 +1,12 @@
#version 430 core
layout (location=0) out vec4 fCol;
layout (location=1) out vec4 fPos;
in vec2 tPos;
in vec4 gPos;
in vec4 gColor;
uniform sampler2D tex;
out vec4 fColor;
void main()
{
fColor = gColor * texture(tex,tPos);
fCol = gColor * texture(tex,tPos);
fPos = gPos;
}