17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-04 01:52:05 +01:00

Make the default material matte

This commit is contained in:
2026-10-21 15:03:14 +02:00
parent ae3e063df0
commit 3c890e4eb9
2 changed files with 14 additions and 6 deletions

View File

@@ -37,11 +37,9 @@ void main()
vec3 fragcolor = ambient;
vec3 fragnormal = normalize(f_normal);
float reflectivity = param[1].z;
//float specularity = (tex_color.r + tex_color.g + tex_color.b) * 0.5;
legacy_gloss();
matte = true;
fragcolor = apply_lights(fragcolor, fragnormal, tex_color.rgb, reflectivity, 0.0, shadow_tone);
fragcolor = apply_lights(fragcolor, fragnormal, tex_color.rgb, 0.0, 0.0, shadow_tone);
vec4 color = vec4(apply_fog(fragcolor), tex_color.a * alpha_mult);
/*
float distance = dot(f_pos.xyz, f_pos.xyz);