@@ -3707,7 +3707,7 @@ struct colorModulation_t {
3707
3707
float colorGen = 0 .0f ;
3708
3708
float alphaGen = 0 .0f ;
3709
3709
float lightFactor = 1 .0f ;
3710
- bool isLightStyle = false ;
3710
+ bool useVertexLightFactor = false ;
3711
3711
bool alphaAddOne = true ;
3712
3712
};
3713
3713
@@ -3722,13 +3722,13 @@ static colorModulation_t ColorModulateColorGen(
3722
3722
switch ( colorGen )
3723
3723
{
3724
3724
case colorGen_t::CGEN_VERTEX:
3725
- colorModulation.alphaAddOne = false ;;
3725
+ colorModulation.alphaAddOne = false ;
3726
3726
3727
3727
if ( vertexOverbright )
3728
3728
{
3729
3729
// vertexOverbright is only needed for non-lightmapped cases. When there is a
3730
3730
// lightmap, this is done by multiplying with the overbright-scaled white image
3731
- colorModulation.isLightStyle = true ;
3731
+ colorModulation.useVertexLightFactor = true ;
3732
3732
colorModulation.lightFactor = tr.mapLightFactor ;
3733
3733
}
3734
3734
else
@@ -3738,7 +3738,7 @@ static colorModulation_t ColorModulateColorGen(
3738
3738
break ;
3739
3739
3740
3740
case colorGen_t::CGEN_ONE_MINUS_VERTEX:
3741
- colorModulation.alphaAddOne = false ;;
3741
+ colorModulation.alphaAddOne = false ;
3742
3742
colorModulation.colorGen = -1 .0f ;
3743
3743
break ;
3744
3744
@@ -3800,7 +3800,7 @@ class u_ColorModulateColorGen_Float :
3800
3800
vec4_t colorModulate_Float;
3801
3801
colorModulate_Float[ 0 ] = colorModulation.colorGen ;
3802
3802
colorModulate_Float[ 1 ] = colorModulation.lightFactor ;
3803
- colorModulate_Float[ 1 ] *= colorModulation.isLightStyle ? -1 .0f : 1 .0f ;
3803
+ colorModulate_Float[ 1 ] *= colorModulation.useVertexLightFactor ? -1 .0f : 1 .0f ;
3804
3804
colorModulate_Float[ 2 ] = colorModulation.alphaAddOne ;
3805
3805
colorModulate_Float[ 3 ] = colorModulation.alphaGen ;
3806
3806
@@ -3859,7 +3859,7 @@ class u_ColorModulateColorGen_Uint :
3859
3859
<< Util::ordinal ( ColorModulate_Bit::ALPHA_MINUS_ONE );
3860
3860
colorModulate_Uint |= colorModulation.alphaAddOne
3861
3861
<< Util::ordinal ( ColorModulate_Bit::ALPHA_ADD_ONE );
3862
- colorModulate_Uint |= colorModulation.isLightStyle
3862
+ colorModulate_Uint |= colorModulation.useVertexLightFactor
3863
3863
<< Util::ordinal ( ColorModulate_Bit::IS_LIGHT_STYLE );
3864
3864
colorModulate_Uint |= uint32_t ( colorModulation.lightFactor )
3865
3865
<< Util::ordinal ( ColorModulate_Bit::LIGHTFACTOR_BIT0 );
0 commit comments