15 lines
361 B
GLSL
15 lines
361 B
GLSL
#version 450 core
|
|
in vec3 vTexPos;
|
|
in vec3 vPos;
|
|
layout (location=0) out vec4 fCol;
|
|
layout (location=1) out vec4 fPos;
|
|
layout (location=2) out vec4 normal;
|
|
uniform sampler2DArray tilesetSampler;
|
|
void main()
|
|
{
|
|
fCol = texture(tilesetSampler, vTexPos);
|
|
fPos = vec4(vPos,1);
|
|
//normal = vec4(vPos.xy,vPos.z-1,1);
|
|
normal = vec4(vPos.xy,vPos.z-1,1);
|
|
}
|