Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderer: make dpMaterials collapsed shader from the start, including non-shader images #266

Merged
merged 7 commits into from Jan 21, 2020
2 changes: 1 addition & 1 deletion src/engine/renderer/tr_bsp.cpp
Expand Up @@ -3628,7 +3628,7 @@ static void R_LoadShaders( lump_t *l )

for ( i = 0; i < count; i++ )
{
Log::Debug("shader: '%s'", out[ i ].shader );
Log::Debug("loading shader: '%s'", out[ i ].shader );

out[ i ].surfaceFlags = LittleLong( out[ i ].surfaceFlags );
out[ i ].contentFlags = LittleLong( out[ i ].contentFlags );
Expand Down
2 changes: 2 additions & 0 deletions src/engine/renderer/tr_local.h
Expand Up @@ -1072,6 +1072,8 @@ static inline void halfToFloat( const f16vec4_t in, vec4_t out )

bool active;

bool dpMaterial;

textureBundle_t bundle[ MAX_TEXTURE_BUNDLES ];

expression_t ifExp;
Expand Down