glsl: fix invalid optional argument syntax

This commit is contained in:
mittorn 2021-02-16 20:46:00 +00:00
parent 4f1a0018d5
commit 826810fa88
3 changed files with 3 additions and 3 deletions

View File

@ -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];

View File

@ -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;

View File

@ -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 )