summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-03-11 12:38:53 -0500
committerTim Angus <tim@ngus.net>2014-06-17 17:43:41 +0100
commit277d773b2017dfe4daec9313608a71119f5e2b0f (patch)
tree3ddb6ff0246002ebc3819c39ba0435307cd325d2
parentc84ecbe756fed9c4485e5a7e2519afd7653c1a98 (diff)
Parse q3map_sunExt in OpenGL1 too
Used for drawing sun, which is supported by both OpenGL1 and OpenGL2. OpenGL2 already parses it.
-rw-r--r--src/renderergl1/tr_shader.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/renderergl1/tr_shader.c b/src/renderergl1/tr_shader.c
index a6115f16..116eee94 100644
--- a/src/renderergl1/tr_shader.c
+++ b/src/renderergl1/tr_shader.c
@@ -1477,7 +1477,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 );
@@ -1504,6 +1504,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 );