mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-01 23:20:44 +00:00
Cg shader fixes for Mesa and Qualcomm drivers #90
This commit is contained in:
parent
cce21e0d76
commit
a61dbbdd9f
2 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
Doom 3 BFG Edition GPL Source Code
|
||||
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
|
||||
Copyright (C) 2013 Robert Beckebans
|
||||
|
||||
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
|
||||
|
||||
|
@ -51,6 +52,6 @@ void main( VS_IN vertex, out VS_OUT result ) {
|
|||
result.position.w = dot4( vertex.position, rpMVPmatrixW );
|
||||
|
||||
result.texcoord0.xy = vertex.texcoord.xy;
|
||||
result.texcoord1 = ( swizzleColor( vertex.color2 ) * 2 ) - 1;
|
||||
result.texcoord1 = ( swizzleColor( vertex.color2 ) * 2.0 ) - 1.0;
|
||||
result.color = swizzleColor( vertex.color );
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
Doom 3 BFG Edition GPL Source Code
|
||||
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
|
||||
Copyright (C) 2013 Robert Beckebans
|
||||
|
||||
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
|
||||
|
||||
|
@ -51,6 +52,6 @@ void main( VS_IN vertex, out VS_OUT result ) {
|
|||
result.position.w = dot4( vertex.position, rpMVPmatrixW );
|
||||
|
||||
result.texcoord0.xy = vertex.texcoord.xy;
|
||||
result.texcoord1 = ( swizzleColor( vertex.color2 ) * 2 ) - 1;
|
||||
result.texcoord1 = ( swizzleColor( vertex.color2 ) * 2.0 ) - 1.0;
|
||||
result.color = swizzleColor( vertex.color );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue