aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-08-20 11:06:53 -0600
committerBrian Paul <[email protected]>2008-08-20 11:06:53 -0600
commitef33697c7e11d93d8b94eadf286f4096734b613f (patch)
treed9393d4b13a59f5ceb2d3630ac9046ecfbf3391b /src/mesa
parent0fae7648987d8264f85a9b6b6d7f903bff82a0f0 (diff)
mesa: glsl: better implementation of ftransform()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/slang/library/slang_vertex_builtin.gc5
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;
}