mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-03-04 15:21:00 +00:00
Parse q3map_sunExt in OpenGL1 too
Used for drawing sun, which is supported by both OpenGL1 and OpenGL2. OpenGL2 already parses it.
This commit is contained in:
parent
07290a7d52
commit
63d1911c18
1 changed files with 4 additions and 1 deletions
|
@ -1476,7 +1476,7 @@ static qboolean ParseShader( char **text )
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// sun parms
|
// sun parms
|
||||||
else if ( !Q_stricmp( token, "q3map_sun" ) ) {
|
else if ( !Q_stricmp( token, "q3map_sun" ) || !Q_stricmp( token, "q3map_sunExt" ) ) {
|
||||||
float a, b;
|
float a, b;
|
||||||
|
|
||||||
token = COM_ParseExt( text, qfalse );
|
token = COM_ParseExt( text, qfalse );
|
||||||
|
@ -1503,6 +1503,9 @@ static qboolean ParseShader( char **text )
|
||||||
tr.sunDirection[0] = cos( a ) * cos( b );
|
tr.sunDirection[0] = cos( a ) * cos( b );
|
||||||
tr.sunDirection[1] = sin( a ) * cos( b );
|
tr.sunDirection[1] = sin( a ) * cos( b );
|
||||||
tr.sunDirection[2] = sin( b );
|
tr.sunDirection[2] = sin( b );
|
||||||
|
|
||||||
|
SkipRestOfLine( text );
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
else if ( !Q_stricmp( token, "deformVertexes" ) ) {
|
else if ( !Q_stricmp( token, "deformVertexes" ) ) {
|
||||||
ParseDeform( text );
|
ParseDeform( text );
|
||||||
|
|
Loading…
Reference in a new issue