@@ -3747,7 +3747,7 @@ struct colorModulation_t {
3747
3747
float colorGen = 0 .0f ;
3748
3748
float alphaGen = 0 .0f ;
3749
3749
float lightFactor = 1 .0f ;
3750
- bool isLightStyle = false ;
3750
+ bool useVertexLightFactor = false ;
3751
3751
bool alphaAddOne = true ;
3752
3752
};
3753
3753
@@ -3762,13 +3762,13 @@ static colorModulation_t ColorModulateColorGen(
3762
3762
switch ( colorGen )
3763
3763
{
3764
3764
case colorGen_t::CGEN_VERTEX:
3765
- colorModulation.alphaAddOne = false ;;
3765
+ colorModulation.alphaAddOne = false ;
3766
3766
3767
3767
if ( vertexOverbright )
3768
3768
{
3769
3769
// vertexOverbright is only needed for non-lightmapped cases. When there is a
3770
3770
// lightmap, this is done by multiplying with the overbright-scaled white image
3771
- colorModulation.isLightStyle = true ;
3771
+ colorModulation.useVertexLightFactor = true ;
3772
3772
colorModulation.lightFactor = tr.mapLightFactor ;
3773
3773
}
3774
3774
else
@@ -3778,7 +3778,7 @@ static colorModulation_t ColorModulateColorGen(
3778
3778
break ;
3779
3779
3780
3780
case colorGen_t::CGEN_ONE_MINUS_VERTEX:
3781
- colorModulation.alphaAddOne = false ;;
3781
+ colorModulation.alphaAddOne = false ;
3782
3782
colorModulation.colorGen = -1 .0f ;
3783
3783
break ;
3784
3784
@@ -3840,7 +3840,7 @@ class u_ColorModulateColorGen_Float :
3840
3840
vec4_t colorModulate_Float;
3841
3841
colorModulate_Float[ 0 ] = colorModulation.colorGen ;
3842
3842
colorModulate_Float[ 1 ] = colorModulation.lightFactor ;
3843
- colorModulate_Float[ 1 ] *= colorModulation.isLightStyle ? -1 .0f : 1 .0f ;
3843
+ colorModulate_Float[ 1 ] *= colorModulation.useVertexLightFactor ? -1 .0f : 1 .0f ;
3844
3844
colorModulate_Float[ 2 ] = colorModulation.alphaAddOne ;
3845
3845
colorModulate_Float[ 3 ] = colorModulation.alphaGen ;
3846
3846
@@ -3899,7 +3899,7 @@ class u_ColorModulateColorGen_Uint :
3899
3899
<< Util::ordinal ( ColorModulate_Bit::ALPHA_MINUS_ONE );
3900
3900
colorModulate_Uint |= colorModulation.alphaAddOne
3901
3901
<< Util::ordinal ( ColorModulate_Bit::ALPHA_ADD_ONE );
3902
- colorModulate_Uint |= colorModulation.isLightStyle
3902
+ colorModulate_Uint |= colorModulation.useVertexLightFactor
3903
3903
<< Util::ordinal ( ColorModulate_Bit::IS_LIGHT_STYLE );
3904
3904
colorModulate_Uint |= uint32_t ( colorModulation.lightFactor )
3905
3905
<< Util::ordinal ( ColorModulate_Bit::LIGHTFACTOR_BIT0 );
0 commit comments