Skip to content

Commit

Permalink
expand range of gaussian fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftan969 committed Apr 16, 2024
1 parent c04cf08 commit 37d221c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3dgs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ AFRAME.registerComponent("gaussian_splatting", {
void main () {
float A = -dot(vPosition, vPosition);
if (A < -4.0) discard;
if (A < -6.0) discard;
float B = exp(A / 2.0) * vColor.a / 2.50662827463;
gl_FragColor = vec4(vColor.rgb, B);
}
Expand Down

0 comments on commit 37d221c

Please sign in to comment.