third_party/spirv-cross/reference/opt/shaders/frag/sampler-proj.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | precision highp int; |
| 4 | |
| 5 | layout(binding = 0) uniform mediump sampler2D uTex; |
| 6 | |
| 7 | layout(location = 0) out vec4 FragColor; |
| 8 | layout(location = 0) in vec4 vTex; |
| 9 | |
| 10 | void main() |
| 11 | { |
| 12 | highp vec4 _19 = vTex; |
| 13 | _19.z = vTex.w; |
| 14 | FragColor = textureProj(uTex, _19.xyz); |
| 15 | } |
| 16 |