Skip to content

Commit

Permalink
chore: async engine
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxudong committed Jul 18, 2024
1 parent 7c1d332 commit f59fcbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/shaderlab/src/shaders/Common.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ vec4 gammaToLinear(vec4 srgbIn){
}

vec4 linearToGamma(vec4 linearIn){
linearIn = max(linearIn, 0.0);
return vec4( pow(linearIn.rgb, vec3(1.0 / 2.2)), linearIn.a);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ vec3 envBRDFApprox(vec3 specularColor, float roughness, float dotNV ) {

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

// AB may less than 0 at high roughness, ref: https://github.com/galacean/engine/pull/2173
return max(specularColor * AB.x + AB.y, 0.0);
return specularColor * AB.x + AB.y;

}

Expand Down

0 comments on commit f59fcbf

Please sign in to comment.