mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 16:30:08 +00:00
12 lines
254 B
GLSL
12 lines
254 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
layout(binding = 0) uniform sampler2D Texture;
|
|
layout(location = 0) out vec4 FragColor;
|
|
layout(location = 0) in vec2 vTexCoord;
|
|
|
|
void main()
|
|
{
|
|
float f = texture(Texture, vTexCoord).x;
|
|
FragColor = vec4(f * f);
|
|
}
|