Skip to content

Commit

Permalink
Parse q3map_sunExt in OpenGL1 too
Browse files Browse the repository at this point in the history
Used for drawing sun, which is supported by both OpenGL1 and OpenGL2.
OpenGL2 already parses it.
  • Loading branch information
zturtleman committed Mar 11, 2014
1 parent 07290a7 commit 63d1911
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/renderergl1/tr_shader.c
Expand Up @@ -1476,7 +1476,7 @@ static qboolean ParseShader( char **text )
continue;
}
// sun parms
else if ( !Q_stricmp( token, "q3map_sun" ) ) {
else if ( !Q_stricmp( token, "q3map_sun" ) || !Q_stricmp( token, "q3map_sunExt" ) ) {
float a, b;

token = COM_ParseExt( text, qfalse );
Expand All @@ -1503,6 +1503,9 @@ static qboolean ParseShader( char **text )
tr.sunDirection[0] = cos( a ) * cos( b );
tr.sunDirection[1] = sin( a ) * cos( b );
tr.sunDirection[2] = sin( b );

SkipRestOfLine( text );
continue;
}
else if ( !Q_stricmp( token, "deformVertexes" ) ) {
ParseDeform( text );
Expand Down

0 comments on commit 63d1911

Please sign in to comment.