Skip to content

Commit c667f65

Browse files
committed
Merge pull request unity3d-jp#2 from unity3d-jp/unitychan-shader-fix
Removed influence of light color's alpha from blending shaders.
2 parents 9aba334 + 00bbb0a commit c667f65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/UnityChan/CandyRockStar/Shader/CharaSkin.cg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,7 @@ float4 frag( v2f i ) : COLOR
9797
combinedColor = lerp( shadowColor, combinedColor, attenuation );
9898
#endif
9999

100-
return float4_t( combinedColor, diffSamplerColor.a ) * _Color * _LightColor0;
100+
float4_t finalColor = float4_t( combinedColor, diffSamplerColor.a ) * _Color;
101+
finalColor.rgb *= _LightColor0.rgb;
102+
return finalColor;
101103
}

0 commit comments

Comments
 (0)