Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxudong committed Sep 4, 2023
1 parent c3c153d commit 014ec74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/shaderlib/pbr/ibl_frag_define.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ vec3 envBRDFApprox(vec3 specularColor,float roughness, float dotNV ) {

vec2 AB = vec2( -1.04, 1.04 ) * a004 + r.zw;

// warning: (iPhone XS iOS 14.4) may return negative value.
// warning: add `max` because (iPhone XS iOS 14.4) may return negative value, refer to issue: https://github.com/galacean/engine/pull/1728
return max(specularColor * AB.x + AB.y, 0.0);

}
Expand Down

0 comments on commit 014ec74

Please sign in to comment.