SPIRV-Cross/shaders-msl/frag/sampler-1d-lod.frag

13 lines
283 B
GLSL
Raw Normal View History

#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);
}