mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 21:50:34 +01:00
mesa: glsl: better implementation of ftransform()
This commit is contained in:
parent
0fae764898
commit
ef33697c7e
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue