1c88730e12
ES does not support 1D images at all. Fake it by promoting 1D images to 2D.
18 lines
416 B
GLSL
18 lines
416 B
GLSL
#version 450
|
|
|
|
layout(set = 0, binding = 0) uniform sampler1D uSamp;
|
|
layout(set = 0, binding = 1) uniform sampler1DShadow uSampShadow;
|
|
layout(location = 0) in vec4 vUV;
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
void main()
|
|
{
|
|
// 1D
|
|
FragColor = texture(uSamp, vUV.x);
|
|
FragColor += textureProj(uSamp, vUV.xy);
|
|
|
|
// 1D Shadow
|
|
FragColor += texture(uSampShadow, vUV.xyz);
|
|
FragColor += textureProj(uSampShadow, vUV);
|
|
}
|