diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-10-02 02:04:46 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-10-02 02:04:46 +0200 |
commit | cd5f7f9c3ff949dcc5922fd91e79028a9bf489ab (patch) | |
tree | 584f8c2e44e37f31452f052f2abfba2eb2edd0f4 /shaders/bullet_vertex.glsl | |
parent | 357d7bb484d65701952fdc63a2c30550baa46545 (diff) |
Revert "Shaders won't work on my laptop without Nx4 matrices."
This reverts commit 727cb49631d92a284fd7fe850022b9bd0e5f3bad.
Diffstat (limited to 'shaders/bullet_vertex.glsl')
-rw-r--r-- | shaders/bullet_vertex.glsl | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/shaders/bullet_vertex.glsl b/shaders/bullet_vertex.glsl index 96281cd..0717b0a 100644 --- a/shaders/bullet_vertex.glsl +++ b/shaders/bullet_vertex.glsl @@ -1,14 +1,12 @@ -#version 120 - -varying out mat3x4 v_tex_rot; +varying mat3 v_tex_rot; void main() { vec4 l_position = gl_Vertex; vec2 l_direction = normalize(l_position.zw); - v_tex_rot = mat3x4( - l_direction.x, l_direction.y, 0.0, 0.0, - -l_direction.y, l_direction.x, 0.0, 0.0, - 1.0 - l_direction.x + l_direction.y, 1.0 - l_direction.y - l_direction.x, 0.0, 0.0); + v_tex_rot = mat3( + l_direction.x, l_direction.y, 0.0, + -l_direction.y, l_direction.x, 0.0, + 1.0 - l_direction.x + l_direction.y, 1.0 - l_direction.y - l_direction.x, 0.0); l_position.zw = vec2(0.0, 1.0); gl_FrontColor = gl_Color; gl_Position = gl_ModelViewProjectionMatrix * l_position; |