forked from FWGS/Paranoia2
glsl: fix invalid optional argument syntax
This commit is contained in:
parent
4f1a0018d5
commit
826810fa88
|
@ -47,7 +47,7 @@ vec4 fetchNode( float number )
|
|||
return texture2DRect( u_BspNodesMap, ivec2( x, y ));
|
||||
}
|
||||
|
||||
float traceRay( const in vec3 p0, const in vec3 p1, float nodenum = 0.0 )
|
||||
float traceRay( const in vec3 p0, const in vec3 p1, float nodenum )
|
||||
{
|
||||
#if defined( GLSL_gpu_shader4 )
|
||||
vec3 stack_p1[MAX_STACK_DEPTH];
|
||||
|
|
|
@ -136,7 +136,7 @@ void main( void )
|
|||
#if defined( BSPTRACE_BMODELS )
|
||||
if( add > EQUAL_EPSILON && bool( traceRay2( pos, delta )))
|
||||
#else
|
||||
if( add > EQUAL_EPSILON && bool( traceRay( pos, delta )))
|
||||
if( add > EQUAL_EPSILON && bool( traceRay( pos, delta, 0.0 )))
|
||||
#endif
|
||||
{
|
||||
shadowmap[i] += (first) ? 0.5 : 0.25;
|
||||
|
|
|
@ -168,7 +168,7 @@ void main( void )
|
|||
#if defined( BSPTRACE_BMODELS )
|
||||
add *= traceRay2( pos, delta );
|
||||
#else
|
||||
add *= traceRay( pos, delta );
|
||||
add *= traceRay( pos, delta, 0.0 );
|
||||
#endif
|
||||
// unroll styles
|
||||
if( styles[0] == 255.0 )
|
||||
|
|
Loading…
Reference in New Issue