Skip to content

Commit

Permalink
More accurate calculation of F0 from Starfield metalness
Browse files Browse the repository at this point in the history
  • Loading branch information
fo76utils committed Apr 11, 2024
1 parent d7a9db8 commit 468b9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion res/shaders/stf_default.frag
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ void main(void)
}
}

vec3 f0 = albedo * pbrMap.g * 0.96 + 0.04;
vec3 f0 = mix(vec3(0.04), albedo, pbrMap.g);
albedo = albedo * (1.0 - pbrMap.g);

// Specular
Expand Down

0 comments on commit 468b9aa

Please sign in to comment.