{
/* get relative directed strength */
d = DotProduct( contributions[ i ].dir, gp->dir );
+ /* we map 1 to gridDirectionality, and 0 to gridAmbientDirectionality */
+ d = gridAmbientDirectionality + d * (gridDirectionality - gridAmbientDirectionality);
if( d < 0.0f )
d = 0.0f;
gridAmbientScale *= f;
i++;
}
+
+ else if( !strcmp( argv[ i ], "-griddirectionality" ) )
+ {
+ f = atof( argv[ i + 1 ] );
+ if(f < 0) f = 0;
+ if(f > gridAmbientDirectionality) f = gridAmbientDirectionality;
+ Sys_Printf( "Grid directionality is %f\n", f );
+ gridDirectionality *= f;
+ i++;
+ }
+
+ else if( !strcmp( argv[ i ], "-gridambientdirectionality" ) )
+ {
+ f = atof( argv[ i + 1 ] );
+ if(f > gridDirectionality) f = gridDirectionality
+ if(f > 1) f = 1;
+ Sys_Printf( "Grid ambient directionality is %f\n", f );
+ gridAmbientDirectionality *= f;
+ i++;
+ }
else if( !strcmp( argv[ i ], "-gamma" ) )
{
/* vortex: gridscale and gridambientscale */
Q_EXTERN float gridScale Q_ASSIGN( 1.0f );
Q_EXTERN float gridAmbientScale Q_ASSIGN( 1.0f );
+Q_EXTERN float gridDirectionality Q_ASSIGN( 1.0f );
+Q_EXTERN float gridAmbientDirectionality Q_ASSIGN( 0.0f );
/* ydnar: lightmap gamma/compensation */
Q_EXTERN float lightmapGamma Q_ASSIGN( 1.0f );