Add shading for shapes and the floor
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#version 450 core
|
||||
layout (location=0) out vec4 fCol;
|
||||
layout (location=1) out vec4 fPos;
|
||||
layout (location=2) out vec4 fNorm;
|
||||
in vec2 tPos;
|
||||
in vec4 gPos;
|
||||
in vec4 gColor;
|
||||
@@ -9,4 +10,5 @@ void main()
|
||||
{
|
||||
fCol = gColor * texture(tex,tPos);
|
||||
fPos = gPos;
|
||||
fNorm = gPos + vec4(1,0,0,0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user