MOS
|
Collection of particles for rendering, uses same texture. More...
#include <cloud.hpp>
Public Types | |
enum | Blending { Additive, Transparent } |
using | Points = Tracked_container< Point > |
Public Member Functions | |
Cloud (Shared_texture_2D texture, Points points) | |
auto | sort (const glm::vec3 &position) -> void |
Sort points relative to a position. More... | |
![]() | |
auto | id () const -> unsigned int |
Unique id. More... | |
Public Attributes | |
Shared_texture_2D | texture |
Texture for all particles. More... | |
bool | emissive {false} |
If the particles are emissive or diffuse. More... | |
Points | points |
Points. More... | |
Blending | blending = Blending::Additive |
Blending for renderinge. More... | |
Collection of particles for rendering, uses same texture.
auto mos::gfx::Cloud::sort | ( | const glm::vec3 & | position | ) | -> void |
Sort points relative to a position.
Blending mos::gfx::Cloud::blending = Blending::Additive |
Blending for renderinge.
bool mos::gfx::Cloud::emissive {false} |
If the particles are emissive or diffuse.
Points mos::gfx::Cloud::points |
Points.
Shared_texture_2D mos::gfx::Cloud::texture |
Texture for all particles.