Skip to content

Commit

Permalink
Add missing early-out in gsplat shader (playcanvas#7189)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored Dec 10, 2024
1 parent c26ecf6 commit 946145a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scene/shader-lib/chunks/gsplat/vert/gsplat.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ void main(void) {
vec3 modelCenter = readCenter(source);
SplatCenter center;
initCenter(source, modelCenter, center);
if (!initCenter(source, modelCenter, center)) {
gl_Position = discardVec;
return;
}
// project center to screen space
SplatCorner corner;
Expand Down

0 comments on commit 946145a

Please sign in to comment.