-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scene: basic support on rope particle
- Loading branch information
Showing
23 changed files
with
614 additions
and
296 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
#pragma once | ||
|
||
namespace wallpaper { | ||
namespace wallpaper | ||
{ | ||
|
||
struct Particle { | ||
float position[3] {0.0f}; | ||
float position[3] { 0.0f }; | ||
|
||
float color[3] {1.0f, 1.0f, 1.0f}; | ||
float colorInit[3] {1.0f, 1.0f, 1.0f}; | ||
float color[3] { 1.0f, 1.0f, 1.0f }; | ||
float colorInit[3] { 1.0f, 1.0f, 1.0f }; | ||
|
||
float alpha {1.0f}; | ||
float alphaInit {1.0f}; | ||
float alpha { 1.0f }; | ||
float alphaInit { 1.0f }; | ||
|
||
float size {20}; | ||
float sizeInit {20}; | ||
float size { 20 }; | ||
float sizeInit { 20 }; | ||
|
||
float lifetime {1.0f}; | ||
float lifetimeInit {1.0f}; | ||
float lifetime { 1.0f }; | ||
float lifetimeInit { 1.0f }; | ||
|
||
float rotation[3] {0.0f, 0.0f, 0.0f}; // radian z x y | ||
float velocity[3] {0.0f, 0.0f, 0.0f}; | ||
float acceleration[3] {0.0f, 0.0f, 0.0f}; | ||
float angularVelocity[3] {0.0f, 0.0f, 0.0f}; | ||
float angularAcceleration[3] {0.0f, 0.0f, 0.0f}; | ||
float rotation[3] { 0.0f, 0.0f, 0.0f }; // radian z x y | ||
float velocity[3] { 0.0f, 0.0f, 0.0f }; | ||
float acceleration[3] { 0.0f, 0.0f, 0.0f }; | ||
float angularVelocity[3] { 0.0f, 0.0f, 0.0f }; | ||
float angularAcceleration[3] { 0.0f, 0.0f, 0.0f }; | ||
|
||
bool mark_new { true }; | ||
}; | ||
} | ||
} // namespace wallpaper |
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
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
Oops, something went wrong.