| 1 |
#version 120 |
| 2 |
/* |
| 3 |
* vertexLitTexture_fp.glsl |
| 4 |
* vertex-lit texture fastpath rendering fragment program |
| 5 |
* Copyright (C) 2010 Jens Loehr <[email protected]> |
| 6 |
* |
| 7 |
* This program is free software; you can redistribute it and/or modify it |
| 8 |
* under the terms of the GNU General Public License as published by the |
| 9 |
* Free Software Foundation; either version 2 of the License, or (at your |
| 10 |
* option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, but |
| 13 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 15 |
* Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License along |
| 18 |
* with this program; if not, write to the Free Software Foundation, Inc., |
| 19 |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 20 |
*/ |
| 21 |
|
| 22 |
/* uniform variables */ |
| 23 |
uniform sampler2D u_Texture0; |
| 24 |
|
| 25 |
/* shared variables */ |
| 26 |
varying vec4 v_TexCoord0; |
| 27 |
|
| 28 |
/* |
| 29 |
* main |
| 30 |
* Entry point for vertex-lit fragment program |
| 31 |
*/ |
| 32 |
void main (void) { |
| 33 |
gl_FragColor = texture2D(u_Texture0, vec2(v_TexCoord0)); |
| 34 |
} |