![]() |
vkmEngine 1.0.15
A C++ game engine · vkmengine.com
|
One billboard particle for the frame, flattened from the emitters. More...
#include <particle_data.h>
Public Attributes | |
| glm::vec4 | positionSize |
| xyz = world position, w = half the billboard's width. | |
| glm::vec4 | color |
| Linear RGBA, its intensity in the RGB. | |
| glm::vec4 | params |
| glm::vec4 | uvRect |
| Its sheet frame: xy = the corner at the quad's (-1,-1), zw = the size. | |
| glm::vec4 | trail |
| glm::vec4 | uvNext |
One billboard particle for the frame, flattened from the emitters.
Six vec4s so it uploads straight into a std430 SSBO indexed by instance. Size, colour, angle and sheet frame are already evaluated from age.
| glm::vec4 Vkm::Engine::ParticleData::params |
x = edge softness (0 hard .. 1 soft); y = angle, radians; z = its texture, as 1 + its place in RenderView::particleTextures, 0 for the soft disc; w = 1 on the viewmodel layer.
| glm::vec4 Vkm::Engine::ParticleData::trail |
xyz = where it streaks to behind it, world space, zero for none; w = the share of its colour an alpha particle gives off, or how far a distortion one bends the view.
| glm::vec4 Vkm::Engine::ParticleData::uvNext |
xy = the next sheet frame's corner, z = how far it has faded into it; w = its normal map, as params.z, 0 for none.