-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make particles face in view direction (not toward viewer)
Make RT_SPRITE entities whose shaders were registered with RSF_SPRITE face opposite the view direction, instead of toward the viewer. This prevents pathological cases where the normal of a closeby sprite is oriented nearly orthogonally to the view direction, making its 2-D nature obvious and ugly. I found that to happen with the alien evolve acid particle system if I walked backward right after evolving from Dretch to Mantis. RT_SPRITE entities without the RSF_SPRITE shader flag continue to face toward the viewer. Light flares go in this category.
- Loading branch information
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters