Last change
on this file since 10256 was
7708,
checked in by dafrick, 14 years ago
|
Merging cleanup branch. You will need to update your data repository as well as your local copy of the code.
|
-
Property svn:eol-style set to
native
|
File size:
423 bytes
|
Rev | Line | |
---|
[5120] | 1 | varying vec2 texCoord[5]; |
---|
| 2 | |
---|
| 3 | void main() |
---|
| 4 | { |
---|
| 5 | vec2 inPos = sign(gl_Vertex.xy); |
---|
| 6 | gl_Position = vec4(inPos.xy, 0.0, 1.0); |
---|
| 7 | |
---|
| 8 | texCoord[0] = (vec2(inPos.x, -inPos.y) + 1.0)/2.0; |
---|
| 9 | |
---|
| 10 | const float size = 0.01; |
---|
| 11 | texCoord[1] = texCoord[0] + vec2(1.0, 0.0)*size; |
---|
| 12 | texCoord[2] = texCoord[0] + vec2(2.0, 0.0)*size; |
---|
| 13 | texCoord[3] = texCoord[0] + vec2(-1.0, 0.0)*size; |
---|
| 14 | texCoord[4] = texCoord[0] + vec2(-2.0, 0.0)*size; |
---|
| 15 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.