| 1 |
|
| 2 |
varying vec2 texture_coordinate; |
| 3 |
varying vec2 texture_coordinate2; |
| 4 |
varying vec2 texture_coordinate3; |
| 5 |
varying vec2 texture_coordinate4; |
| 6 |
varying vec2 texture_coordinate5; |
| 7 |
varying float scale; |
| 8 |
void main() |
| 9 |
{ |
| 10 |
scale=0.7; |
| 11 |
// Transforming The Vertex |
| 12 |
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; |
| 13 |
|
| 14 |
// Passing The Texture Coordinate Of Texture Unit 0 To The Fragment Shader |
| 15 |
texture_coordinate = vec2(gl_MultiTexCoord0); |
| 16 |
texture_coordinate2 = vec2(gl_MultiTexCoord0); |
| 17 |
texture_coordinate2.x=texture_coordinate.x-0.00125*scale; |
| 18 |
texture_coordinate3 = vec2(gl_MultiTexCoord0); |
| 19 |
texture_coordinate3.x=texture_coordinate.x+0.00125*scale; |
| 20 |
texture_coordinate4 = vec2(gl_MultiTexCoord0); |
| 21 |
texture_coordinate4.y=texture_coordinate.y-0.0016*scale; |
| 22 |
texture_coordinate5 = vec2(gl_MultiTexCoord0); |
| 23 |
texture_coordinate5.y=texture_coordinate.y+0.0016*scale; |
| 24 |
|
| 25 |
|
| 26 |
} |