Back to Templates
WebGL Instancer

by Spatial

WebGL Instancer

Use the GPU to draw numerous animated meshes on the screen, who path towards the player and despawn when attacked.

C#

GPU

Rendering

WebGL Instancer

This template demonstrates using the GPU to do draw numerous animated meshes on the screen.

It instances hundreds of NPCs who will try to path to the player and despawns when the player hits them with an attack.

Controls are provided for:

  • toggle instancing
  • toggle camera angles
  • toggle laser attacks
  • spawn bomb attack
  • spawn large bomb attack