Browse Source

GPGPU Protoplanets example: fix pixel trails (#21510)

Juan Jose Luna Espinosa 4 years ago
parent
commit
a671f4109b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/webgl_gpgpu_protoplanet.html

+ 2 - 0
examples/webgl_gpgpu_protoplanet.html

@@ -221,6 +221,8 @@
 
 			void main() {
 
+				if ( vColor.y == 0.0 ) discard;
+
 				float f = length( gl_PointCoord - vec2( 0.5, 0.5 ) );
 				if ( f > 0.5 ) {
 					discard;