Skip to content

Fix particles facing the wrong direction - #616

Merged
DoubleStyx merged 1 commit into
DoubleStyx:masterfrom
Baplar:particle-backface-fix
Jun 3, 2026
Merged

DoubleStyx merged 1 commit into
DoubleStyx:masterfrom
Baplar:particle-backface-fix

Conversation

@Baplar

@Baplar Baplar commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator
  • On the CPU side, change the order of vertices to form counterclockwise triangles
  • On the GPU side, compensate this change by reversing relevant cross products

Tested on many particle systems. Every mode looks correct on everything I tested, except some particle systems in Direction mode. Some look correct (like the rain in Shadowed Cove), others look mostly correct but are rotated 90⁰ (the Tux particle spray from #585 ).

@Baplar
Baplar force-pushed the particle-backface-fix branch from 635ac1d to b5b2faf Compare June 1, 2026 23:00
- On the CPU side, change the order of vertices to form counterclockwise
  triangles
- On the GPU side, compensate this change by reversing relevant cross
  products
@Baplar
Baplar force-pushed the particle-backface-fix branch from b5b2faf to 8813a33 Compare June 2, 2026 15:11
@DoubleStyx
DoubleStyx merged commit 8813a33 into DoubleStyx:master Jun 3, 2026
10 checks passed
@DoubleStyx

Copy link
Copy Markdown
Owner

Thank you for this!

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