e67f6f85a4
Previously, we would generate parentheses proactively when generating binary ops, however, this leads to uglier code and hits warnings in compilers when used as a conditional.
16 lines
292 B
GLSL
16 lines
292 B
GLSL
#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;
|
|
FragColor = vec4(f * f);
|
|
}
|
|
|