Skip to content

Commit

Permalink
Merge pull request #49 from eltociear/patch-1
Browse files Browse the repository at this point in the history
Update ao.sh
  • Loading branch information
cloudwu authored Jan 20, 2024
2 parents 570ebda + 665edfa commit 0a70737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ant.resources/shaders/pbr/ao.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ float SpecularAO_Cones(vec3 bentNormal, vec3 reflect_vector, float visibility, f
float cosAv = sqrt(1.0 - visibility);
// aperture from roughness, log(10) / log(2) = 3.321928
float cosAs = exp2(-3.321928 * sq(roughness));
// angle betwen bent normal and reflection direction
// angle between bent normal and reflection direction
float cosB = dot(bentNormal, reflect_vector);
// Remove the 2 * PI term from the denominator, it cancels out the same term from
Expand Down Expand Up @@ -153,4 +153,4 @@ void apply_occlusion(in material_info mi, inout vec3 indirect_diffuse, inout vec
indirect_specular *= calc_specularAO(mi, av);
}
#endif //_AO_SH_
#endif //_AO_SH_

0 comments on commit 0a70737

Please sign in to comment.