Benenne alle Funktionen in gl_light zu R_ um

This commit is contained in:
Yamagi Burmeister 2010-10-22 09:22:01 +00:00
parent d59ab83f0d
commit 5e57fbbc43

View file

@ -188,7 +188,7 @@ R_PushDlights ( void )
} }
int int
RecursiveLightPoint ( mnode_t *node, vec3_t start, vec3_t end ) R_RecursiveLightPoint ( mnode_t *node, vec3_t start, vec3_t end )
{ {
float front, back, frac; float front, back, frac;
int side; int side;
@ -215,7 +215,7 @@ RecursiveLightPoint ( mnode_t *node, vec3_t start, vec3_t end )
if ( ( back < 0 ) == side ) if ( ( back < 0 ) == side )
{ {
return ( RecursiveLightPoint( node->children [ side ], start, end ) ); return ( R_RecursiveLightPoint( node->children [ side ], start, end ) );
} }
frac = front / ( front - back ); frac = front / ( front - back );
@ -224,7 +224,7 @@ RecursiveLightPoint ( mnode_t *node, vec3_t start, vec3_t end )
mid [ 2 ] = start [ 2 ] + ( end [ 2 ] - start [ 2 ] ) * frac; mid [ 2 ] = start [ 2 ] + ( end [ 2 ] - start [ 2 ] ) * frac;
/* go down front side */ /* go down front side */
r = RecursiveLightPoint( node->children [ side ], start, mid ); r = R_RecursiveLightPoint( node->children [ side ], start, mid );
if ( r >= 0 ) if ( r >= 0 )
{ {
@ -305,7 +305,7 @@ RecursiveLightPoint ( mnode_t *node, vec3_t start, vec3_t end )
} }
/* go down back side */ /* go down back side */
return ( RecursiveLightPoint( node->children [ !side ], mid, end ) ); return ( R_RecursiveLightPoint( node->children [ !side ], mid, end ) );
} }
void void
@ -329,7 +329,7 @@ R_LightPoint ( vec3_t p, vec3_t color )
end [ 1 ] = p [ 1 ]; end [ 1 ] = p [ 1 ];
end [ 2 ] = p [ 2 ] - 2048; end [ 2 ] = p [ 2 ] - 2048;
r = RecursiveLightPoint( r_worldmodel->nodes, p, end ); r = R_RecursiveLightPoint( r_worldmodel->nodes, p, end );
if ( r == -1 ) if ( r == -1 )
{ {