Skip to content

feat: wire up fire and smoke textures in particle system#1319

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/remove-dead-code-BWxAt
Feb 3, 2026
Merged

feat: wire up fire and smoke textures in particle system#1319
braedonsaunders merged 1 commit into
mainfrom
claude/remove-dead-code-BWxAt

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner
  • Add particle type instance attribute buffer for GPU-side texture selection
  • Modify TSL shader to select texture based on particle type:
    • Type 0 (FIRE): uses fireTexture sprite sheet
    • Type 1 (SMOKE): uses smokeTexture sprite sheet
    • Other types: uses glowTexture (energy, sparks, plasma, etc.)
  • Update particle update loop to set type attribute per-particle
  • Uses smooth interpolation instead of branching for GPU performance

The fireTexture and smokeTexture were previously created but never used. Now explosions, projectile impacts, and building damage will show proper animated fire/smoke particles instead of generic glows.

https://claude.ai/code/session_01MErQN5hmcdQoZJPurBertM

- Add particle type instance attribute buffer for GPU-side texture selection
- Modify TSL shader to select texture based on particle type:
  - Type 0 (FIRE): uses fireTexture sprite sheet
  - Type 1 (SMOKE): uses smokeTexture sprite sheet
  - Other types: uses glowTexture (energy, sparks, plasma, etc.)
- Update particle update loop to set type attribute per-particle
- Uses smooth interpolation instead of branching for GPU performance

The fireTexture and smokeTexture were previously created but never used.
Now explosions, projectile impacts, and building damage will show
proper animated fire/smoke particles instead of generic glows.

https://claude.ai/code/session_01MErQN5hmcdQoZJPurBertM
@braedonsaunders braedonsaunders merged commit 242ecf2 into main Feb 3, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants