2020-11-06 15:09:51 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(binding = 0) uniform sampler2D uSamp;
|
|
|
|
layout(binding = 1) uniform sampler2DShadow uSampShadow;
|
|
|
|
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
layout(location = 0) in vec3 vUV;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2020-11-08 12:54:30 +00:00
|
|
|
FragColor = textureGather(uSamp, vUV.xy);
|
2020-11-06 15:09:51 +00:00
|
|
|
FragColor += textureGather(uSamp, vUV.xy, 1);
|
|
|
|
FragColor += textureGather(uSampShadow, vUV.xy, vUV.z);
|
|
|
|
}
|
|
|
|
|