diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-02-14 12:09:41 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-02-14 12:09:41 -0500 |
| commit | de5a458cb037bb8e1e80c849c5e6525f9413b43a (patch) | |
| tree | 97d7aebcf21e4db3c3e19d4a9c7ec906114e5558 /shaders/final.vertex | |
| download | therapy-de5a458cb037bb8e1e80c849c5e6525f9413b43a.tar.gz therapy-de5a458cb037bb8e1e80c849c5e6525f9413b43a.tar.bz2 therapy-de5a458cb037bb8e1e80c849c5e6525f9413b43a.zip | |
Monitor stuff is looking pretty cool!
Diffstat (limited to 'shaders/final.vertex')
| -rw-r--r-- | shaders/final.vertex | 14 |
1 files changed, 14 insertions, 0 deletions
| diff --git a/shaders/final.vertex b/shaders/final.vertex new file mode 100644 index 0000000..825eb49 --- /dev/null +++ b/shaders/final.vertex | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #version 330 core | ||
| 2 | |||
| 3 | layout(location = 0) in vec3 vertexPosition_modelspace; | ||
| 4 | layout(location = 1) in vec3 vertexNormal; | ||
| 5 | |||
| 6 | out vec2 UV; | ||
| 7 | out vec3 norm; | ||
| 8 | |||
| 9 | void main() | ||
| 10 | { | ||
| 11 | gl_Position = vec4(vertexPosition_modelspace,1); | ||
| 12 | UV = (vertexPosition_modelspace.xy+vec2(1,1))/2.0; | ||
| 13 | norm = vertexNormal; | ||
| 14 | } | ||
