vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
particle_data.h
1#pragma once
2
3#include <cstdint>
4
5#include <glm/glm.hpp>
6
7namespace Vkm::Engine {
8
16 glm::vec4 positionSize;
17 glm::vec4 color;
18
21 glm::vec4 params;
22 glm::vec4 uvRect;
23
26 glm::vec4 trail;
27
30 glm::vec4 uvNext;
31};
32
38struct StripPoint {
39 glm::vec4 positionWidth;
40 glm::vec4 color;
41
44 glm::vec4 params;
45
48 glm::vec4 look;
49};
50
55 uint32_t first = 0;
56 uint32_t count = 0;
57 float texture = 0.0f;
58};
59
60} // namespace Vkm::Engine
One billboard particle for the frame, flattened from the emitters.
Definition particle_data.h:15
glm::vec4 trail
Definition particle_data.h:26
glm::vec4 params
Definition particle_data.h:21
glm::vec4 uvNext
Definition particle_data.h:30
glm::vec4 positionSize
xyz = world position, w = half the billboard's width.
Definition particle_data.h:16
glm::vec4 color
Linear RGBA, its intensity in the RGB.
Definition particle_data.h:17
glm::vec4 uvRect
Its sheet frame: xy = the corner at the quad's (-1,-1), zw = the size.
Definition particle_data.h:22
A run of StripPoints drawn as one camera-facing strip.
Definition particle_data.h:54
uint32_t count
Points it runs through, at least two.
Definition particle_data.h:56
float texture
Its texture, as ParticleData::params.z.
Definition particle_data.h:57
uint32_t first
Its first point in RenderView::stripPoints.
Definition particle_data.h:55
One point of a particle strip - a ribbon or a trail - as the vertex stage reads it.
Definition particle_data.h:38
glm::vec4 color
Linear RGBA, its intensity in the RGB.
Definition particle_data.h:40
glm::vec4 look
Definition particle_data.h:48
glm::vec4 positionWidth
xyz = world position, w = half the strip's width there.
Definition particle_data.h:39
glm::vec4 params
Definition particle_data.h:44