|
Wasabi
|
#include <WParticles.hpp>
Public Member Functions | |
| void | SetParameters (const WMatrix &WVP, WColor color, WVector2 uvTopLeft, WVector2 uvBottomRight, float localSize, float viewSize) |
Public Attributes | |
| WVector4 | mat1 |
| WVector4 | mat2 |
| WVector4 | mat3 |
| WVector4 | colorAndUVs |
| float | sizeLocalSpace |
| float | sizeViewSpace |
| float | pad1 |
| float | pad2 |
An instance of a particle
|
inline |
Utility to encode the particle instance parameters into its fields
| WVector4 WParticlesInstance::colorAndUVs |
Encoded particle color (multiplied by texture color) and UVs:
| WVector4 WParticlesInstance::mat1 |
Encoded WVP transformation matrix: (m11, m12, m13, m41)
| WVector4 WParticlesInstance::mat2 |
Encoded WVP transformation matrix: (m21, m22, m23, m42)
| WVector4 WParticlesInstance::mat3 |
Encoded WVP transformation matrix: (m31, m32, m33, m43)
| float WParticlesInstance::pad1 |
Padding to be aligned to pixel size
| float WParticlesInstance::pad2 |
Padding to be aligned to pixel size
| float WParticlesInstance::sizeLocalSpace |
Size multiplier applied before any transformation (in local space) in the VS
| float WParticlesInstance::sizeViewSpace |
Size added to the x and y components of the particles in view space
1.8.17