mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
apply lighting to droplets
This commit is contained in:
@@ -160,10 +160,11 @@ void main() {
|
||||
float specularity = (tex_color.r + tex_color.g + tex_color.b) * 0.5;
|
||||
glossiness = abs(param[1].w);
|
||||
|
||||
fragcolor = apply_lights(fragcolor, fragnormal, tex_color.rgb, reflectivity, specularity, shadow_tone);
|
||||
vec4 color = vec4(fragcolor, tex_color.a * alpha_mult);
|
||||
|
||||
out_color.xyz = apply_fog(mix(out_color.xyz, color.xyz, color.a));
|
||||
color.xyz = mix(out_color.xyz, color.xyz, color.a);
|
||||
|
||||
out_color.xyz = apply_fog(apply_lights(color.xyz, fragnormal, color.xyz, reflectivity, specularity, shadow_tone));
|
||||
out_color.a = mix(out_color.a, 1., color.a);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user