Skip to content

Commit

Permalink
ParseStage: do not overwrite alpha channel with rgbGen const, fix Dae…
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Mar 17, 2019
1 parent 178bb54 commit 645c1bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engine/renderer/tr_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,9 @@ static bool ParseStage( shaderStage_t *stage, const char **text )
vec3_t color;

ParseVector( text, 3, color );
stage->constantColor = Color::Adapt( color );
stage->constantColor.SetRed( 255 * color[0] );
stage->constantColor.SetGreen( 255 * color[1] );
stage->constantColor.SetBlue( 255 * color[2] );

stage->rgbGen = colorGen_t::CGEN_CONST;
}
Expand Down

0 comments on commit 645c1bd

Please sign in to comment.