diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-08-20 11:06:53 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-08-20 11:06:53 -0600 |
commit | ef33697c7e11d93d8b94eadf286f4096734b613f (patch) | |
tree | d9393d4b13a59f5ceb2d3630ac9046ecfbf3391b | |
parent | 0fae7648987d8264f85a9b6b6d7f903bff82a0f0 (diff) |
mesa: glsl: better implementation of ftransform()
-rw-r--r-- | src/mesa/shader/slang/library/slang_vertex_builtin.gc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/library/slang_vertex_builtin.gc b/src/mesa/shader/slang/library/slang_vertex_builtin.gc index 20c924a30d7..17e86d9a0ed 100644 --- a/src/mesa/shader/slang/library/slang_vertex_builtin.gc +++ b/src/mesa/shader/slang/library/slang_vertex_builtin.gc @@ -57,7 +57,10 @@ varying float gl_FogFragCoord; vec4 ftransform() { - __retVal = gl_Vertex * gl_ModelViewProjectionMatrixTranspose; + __retVal = gl_ModelViewProjectionMatrix[0] * gl_Vertex.xxxx + + gl_ModelViewProjectionMatrix[1] * gl_Vertex.yyyy + + gl_ModelViewProjectionMatrix[2] * gl_Vertex.zzzz + + gl_ModelViewProjectionMatrix[3] * gl_Vertex.wwww; } |