Skip to content

Commit

Permalink
fix(shader): Remove early discard based on vcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
airnez authored and Desplandis committed Jul 25, 2024
1 parent bf87dd6 commit 16cbbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Renderer/Shader/PointsFS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void main() {
#include <clipping_planes_pars_fragment>
if (shape == PNTS_SHAPE_CIRCLE) {
//circular rendering in glsl
if ((length(gl_PointCoord - 0.5) > 0.5) || (vColor.a == 0.0)) {
if ((length(gl_PointCoord - 0.5) > 0.5)) {
discard;
}
}
Expand Down

0 comments on commit 16cbbbf

Please sign in to comment.