Fix a possible bug in floodlighting/dirtmapping in conjunction with alphashadow surfaces
This commit is contained in:
parent
a0359528df
commit
06afddfe80
|
|
@ -1492,6 +1492,7 @@ float DirtForSample( trace_t *trace ){
|
||||||
/* set endpoint */
|
/* set endpoint */
|
||||||
VectorMA( trace->origin, dirtDepth, direction, trace->end );
|
VectorMA( trace->origin, dirtDepth, direction, trace->end );
|
||||||
SetupTrace( trace );
|
SetupTrace( trace );
|
||||||
|
VectorSet(trace->color, 1.0f, 1.0f, 1.0f);
|
||||||
|
|
||||||
/* trace */
|
/* trace */
|
||||||
TraceLine( trace );
|
TraceLine( trace );
|
||||||
|
|
@ -1514,6 +1515,7 @@ float DirtForSample( trace_t *trace ){
|
||||||
/* set endpoint */
|
/* set endpoint */
|
||||||
VectorMA( trace->origin, dirtDepth, direction, trace->end );
|
VectorMA( trace->origin, dirtDepth, direction, trace->end );
|
||||||
SetupTrace( trace );
|
SetupTrace( trace );
|
||||||
|
VectorSet(trace->color, 1.0f, 1.0f, 1.0f);
|
||||||
|
|
||||||
/* trace */
|
/* trace */
|
||||||
TraceLine( trace );
|
TraceLine( trace );
|
||||||
|
|
@ -1527,6 +1529,7 @@ float DirtForSample( trace_t *trace ){
|
||||||
/* direct ray */
|
/* direct ray */
|
||||||
VectorMA( trace->origin, dirtDepth, normal, trace->end );
|
VectorMA( trace->origin, dirtDepth, normal, trace->end );
|
||||||
SetupTrace( trace );
|
SetupTrace( trace );
|
||||||
|
VectorSet(trace->color, 1.0f, 1.0f, 1.0f);
|
||||||
|
|
||||||
/* trace */
|
/* trace */
|
||||||
TraceLine( trace );
|
TraceLine( trace );
|
||||||
|
|
@ -4248,6 +4251,7 @@ float FloodLightForSample( trace_t *trace, float floodLightDistance, qboolean fl
|
||||||
//VectorMA( trace->origin, 1, direction, trace->origin );
|
//VectorMA( trace->origin, 1, direction, trace->origin );
|
||||||
|
|
||||||
SetupTrace( trace );
|
SetupTrace( trace );
|
||||||
|
VectorSet(trace->color, 1.0f, 1.0f, 1.0f);
|
||||||
/* trace */
|
/* trace */
|
||||||
TraceLine( trace );
|
TraceLine( trace );
|
||||||
contribution = 1;
|
contribution = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user