16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 22:59:18 +02:00

Leftover metalic as bool

This commit is contained in:
stele
2021-01-23 20:20:07 +01:00
parent 134e459dbd
commit 4f11ead640
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ void main()
float reflectivity = reflblend > 1.0 ? param[1].z * 1.0 : param[1].z * reflblend;
float specularity = specgloss_map.r;
glossiness = specgloss_map.g * abs(param[1].w);
metalic = (specgloss_map.b > 0.5) ? true : false;
float metalic = specgloss_map.b;
fragcolor = apply_lights(fragcolor, fragnormal, tex_color.rgb, reflectivity, specularity, shadow_tone);

View File

@@ -74,7 +74,7 @@ void main()
float reflectivity = param[1].z * normal_map.a;
float specularity = specgloss_map.r;
glossiness = specgloss_map.g * abs(param[1].w);
metalic = (specgloss_map.b > 0.5) ? true : false;
float metalic = specgloss_map.b;
fragcolor = apply_lights(fragcolor, fragnormal, tex_color.rgb, reflectivity, specularity, shadow_tone);