refactoring stuff
This commit is contained in:
parent
04befce27d
commit
fa7bf893e7
54 changed files with 200 additions and 256 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue