bgfx/3rdparty/spirv-cross/shaders-msl/frag/sampler-1d-lod.frag
Бранимир Караџић ac29dccc6a Added spirv-cross.
2019-01-09 19:23:47 -08: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);
}