SPIRV-Cross/shaders-msl/frag/sampler-1d-lod.frag
Hans-Kristian Arntzen 81eb72a9a0 Ignore LOD when sampling 1D textures in MSL.
Not supported.
2018-04-04 09:26:53 +02:00

13 lines
283 B
GLSL

#version 450
layout(location = 0) out vec4 FragColor;
layout(location = 0) flat in float vTex;
layout(binding = 0) uniform sampler1D uSampler;
void main()
{
FragColor += texture(uSampler, vTex, 2.0) +
textureLod(uSampler, vTex, 3.0) +
textureGrad(uSampler, vTex, 5.0, 8.0);
}