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

Make the material shaders physically based

This commit is contained in:
2026-10-20 18:39:31 +02:00
parent cf36b24e8d
commit 7d0f76aaa9
20 changed files with 288 additions and 258 deletions

View File

@@ -20,7 +20,7 @@ layout(location = 1) out vec4 out_motion;
void main()
{
vec3 fragnormal = normalize(f_normal);
glossiness = 6.0;
glossiness = phong_glossiness(6.0);
metalic = 0.0;
vec3 fragcolor = apply_lights(ambient, fragnormal, f_albedo, 0.0, 0.2, shadow_tone);