Point sprites

Common techniques in many 3D applications and games are particle effects. A particle effect is a generic term for any special effect created by rendering groups of particles (displayed as points, textured quads, or repeated geometry), typically with some simple form of physics simulation acting on the individual particles. They can be used for simulating smoke, fire, bullets, explosions, water, sparks, and many other effects that are difficult to represent as a single geometric model.

One very efficient way of rendering the particles is to use point sprites. Typically, if you render vertices with the POINTS primitive type each vertex will be rendered as a single pixel on the screen. A point sprite is an extension of the POINTS primitive ...

Get WebGL Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.