fix: adjusting the brightness of the shiny shader

This commit is contained in:
mob-sakai
2020-04-10 15:45:46 +09:00
parent 612421432d
commit 29b4dad929
@@ -259,8 +259,8 @@ half4 ApplyShinyEffect(half4 color, half2 shinyParam)
fixed brightness = param1.w;
fixed gloss = param2.x;
half normalized = 1 - saturate(abs((nomalizedPos - location) / width));
half shinePower = smoothstep(0, soft*2, normalized);
half3 reflectColor = lerp(1, color.rgb * 10, gloss);
half shinePower = smoothstep(0, soft, normalized);
half3 reflectColor = lerp(1, color.rgb * 7, gloss);
color.rgb += color.a * (shinePower / 2) * brightness * reflectColor;