Skip to content

Commit

Permalink
jme3-core:update Specular_Anti_Aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnLKkk committed Nov 6, 2023
1 parent ab4462c commit 0bf7bdf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jme3-core/src/main/resources/Common/ShaderLib/PBR.glsllib
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ void Specular_Anti_Aliasing(in vec3 normal, in vec3 half_vector,
vec2 H = half_vector.xy;
vec3 dndu = dFdx(normal);
vec3 dndv = dFdy(normal);
vec2 footprint_bounding_box = fwidth(H); //- abs(dfdx(slope_h)) + abs(dfdy(slope_h))
//vec2 variance = sigma*sigma*footprint_bounding_box*footprint_bounding_box;
float variance = sigma*sigma*(dot(dndu, dndu) + dot(dndv, dndv));
float variance = sigma*sigma*(dot(dndu, dndu) + dot(dndv, dndv));
float kernel_roughness = min(Kappa, variance);
alpha_x = sqrt(alpha_x*alpha_x + kernel_roughness);
}
Expand Down

0 comments on commit 0bf7bdf

Please sign in to comment.