Fixed "param_glossiness" missing from final gloss formula in materials utilising gloss maps.

This commit is contained in:
stele
2020-07-16 18:05:37 +02:00
parent 532d5f8b69
commit c4945d3f32
7 changed files with 7 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ void main()
vec3 fragnormal = normalize(f_tbn * normalize(normal.xyz));
float reflectivity = param[1].z * texture(normalmap, texture_coords ).a;
float specularity = texture(specgloss, f_coord).r;
glossiness = texture(specgloss, f_coord).g * 8;
glossiness = texture(specgloss, f_coord).g * abs(param[1].w);
metalic = (texture(specgloss, f_coord).b > 0.5) ? true : false;
fragcolor = apply_lights(fragcolor, fragnormal, tex_color.rgb, reflectivity, specularity, shadow_tone);