refactoring stuff

This commit is contained in:
Halbear 2026-09-15 11:38:44 +01:00
parent 04befce27d
commit fa7bf893e7
54 changed files with 200 additions and 256 deletions

View file

@ -52,7 +52,7 @@ void main() {
float NoV = clamp(dot(worldNormal, viewDirToCamera), 0.0, 1.0);
float fresnel = pow(1.0 - NoV, 5.0);
float materialReflection = reflectiveness + refractiveness - 1;
float materialReflection = reflectiveness + (refractiveness - 1.05);
materialReflection *= mix(0.75, 1.0, metallic);
materialReflection *= smoothstep(0.7, 0.05, roughness);
materialReflection *= mix(0.45, 1.0, fresnel);