Free effect · CC0
Campfire and Torch Fire
By Tyrbo · 2 effects
About it
A campfire or a torch for three.js: flames, rising embers, smoke, a glow and a warm pool of light on the ground, drawn in one call with a flickering point light. Every particle loops on the GPU, so a frame allocates nothing and many fires can burn at once on a phone.
What's inside
- campfire
- torch
Use it in your game
Each effect is an ES module for three.js. Import it, make it with your scene, and call its update(dt) once a frame; dispose() frees it. Open demo.html to see it run and try its options. It needs only three (npm install three, or the import map in the demo).
The license
CC0 1.0 puts it in the public domain: use it in any game, free or paid, change it, and ship it without asking anyone or crediting anyone. A credit is still a kind thing to give: "Campfire and Torch Fire by Tyrbo, CC0".
More effects
See allMake a game for your phone with Tyrbo
Make your gameSign in to get the plan and its concept art. Both are free.