2016-06-23 10:11:36 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
precision highp int;
|
|
|
|
|
|
|
|
layout(binding = 0) uniform mediump sampler2D Texture;
|
|
|
|
|
|
|
|
layout(location = 0) in vec2 vTexCoord;
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
float f = texture(Texture, vTexCoord).x;
|
2016-12-05 09:22:54 +00:00
|
|
|
FragColor = vec4(f * f);
|
2016-06-23 10:11:36 +00:00
|
|
|
}
|
|
|
|
|