| 12345678910111213141516171819 |
- #version 140
- // Inputs should match the vertex shader's outputs.
- in vec2 var_texcoord0;
- // The texture to sample.
- uniform lowp sampler2D texture0;
- // The final color of the fragment.
- out lowp vec4 final_color;
- void main()
- {
- // Sample the texture at the fragment's texture coordinates.
- vec4 color = texture(texture0, var_texcoord0.xy);
- // Output the sampled color.
- final_color = color;
- }
|