Skip to content

Commit

Permalink
modified gaussian falloff
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftan969 committed Apr 16, 2024
1 parent 3edd940 commit bde9eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3dgs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ AFRAME.registerComponent("gaussian_splatting", {
void main () {
float A = -dot(vPosition, vPosition);
if (A < -4.0) discard;
float B = exp(A) * vColor.a;
gl_FragColor = vec4(B * vColor.rgb, B);
float B = exp(A / 2) * vColor.a;
gl_FragColor = vec4(vColor.rgb, B);
}
`,
blending : THREE.CustomBlending,
Expand Down

0 comments on commit bde9eb1

Please sign in to comment.