mirror of
https://github.com/UberGames/ioef.git
synced 2025-05-30 17:01:23 +00:00
Fix for flares. Can be enabled by setting r_flares 1
This commit is contained in:
parent
7aed801011
commit
c552a46e5f
5 changed files with 121 additions and 86 deletions
|
@ -3010,6 +3010,17 @@ static void CreateInternalShaders( void ) {
|
|||
static void CreateExternalShaders( void ) {
|
||||
tr.projectionShadowShader = R_FindShader( "projectionShadow", LIGHTMAP_NONE, qtrue );
|
||||
tr.flareShader = R_FindShader( "flareShader", LIGHTMAP_NONE, qtrue );
|
||||
|
||||
// Hack to make fogging work correctly on flares. Fog colors are calculated
|
||||
// in tr_flare.c already.
|
||||
if(!tr.flareShader->defaultShader)
|
||||
{
|
||||
int index;
|
||||
|
||||
for(index = 0; index < tr.flareShader->numUnfoggedPasses; index++)
|
||||
tr.flareShader->stages[index]->adjustColorsForFog = ACFF_NONE;
|
||||
}
|
||||
|
||||
tr.sunShader = R_FindShader( "sun", LIGHTMAP_NONE, qtrue );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue