third_party/spirv-cross/reference/shaders/frag/composite-extract-forced-temporary.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | precision highp int; |
| 4 | |
| 5 | layout(binding = 0) uniform mediump sampler2D Texture; |
| 6 | |
| 7 | layout(location = 0) in vec2 vTexCoord; |
| 8 | layout(location = 0) out vec4 FragColor; |
| 9 | |
| 10 | void main() |
| 11 | { |
| 12 | float f = texture(Texture, vTexCoord).x; |
| 13 | FragColor = vec4(f * f); |
| 14 | } |
| 15 |