Skip to content

Commit

Permalink
Update PBRLighting.frag
Browse files Browse the repository at this point in the history
  • Loading branch information
yaRnMcDonuts authored Dec 3, 2024
1 parent 68c9410 commit 5b8a88b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void main(){
vec3 fZero = specularColor.xyz;
#else
float nonMetalSpec = 0.08; //nonMetalSpec is always constant value of 0.8 in metallic workflow
specularColor = (nonMetalSpec - nonMetalSpec * Metallic) + albedo * Metallic;
vec4 specularColor = (nonMetalSpec - nonMetalSpec * Metallic) + albedo * Metallic;
vec4 diffuseColor = albedo - albedo * Metallic;
vec3 fZero = vec3(0.04);
fZero = mix(fZero, albedo.rgb, Metallic);
Expand Down

0 comments on commit 5b8a88b

Please sign in to comment.