Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::ps_soa::emitter_sim_constants Struct Reference

Hot-loop constants baked from desc (CPU now, CB-shaped for GPU later). More...

#include <emitter_runtime.h>

Public Attributes

emitter_feature features = emitter_feature::none
 
simulation_space space = simulation_space::world
 
float opacity = 1.0f
 
float color_intensity = 1.0f
 
float avg_system_scale = 1.0f
 
math::vec3 particle_scale_3d {1.0f, 1.0f, 1.0f}
 
math::vec2 pivot {0.5f, 0.5f}
 
render_mode render_mode = render_mode::billboard
 
blend_mode blend_mode = blend_mode::normal
 
texture_mode texture_mode = texture_mode::multi_channel
 
math::vec2 tex_sheet_tiles {1.0f, 1.0f}
 
float tex_sheet_cycles = 0.0f
 
bool tex_sheet_randomize = false
 
frange_t size_by_speed_range {1.0f, 1.0f}
 
frange_t size_by_speed_velocity_range {0.0f, 10.0f}
 
frange_t color_by_speed_velocity_range {0.0f, 10.0f}
 
float inv_size_by_speed_velocity_span = 0.0f
 
float inv_color_by_speed_velocity_span = 0.0f
 
bx::EaseFn ease_pos = nullptr
 
math::mat4 local_to_world {1.0f}
 

Detailed Description

Hot-loop constants baked from desc (CPU now, CB-shaped for GPU later).

Definition at line 56 of file emitter_runtime.h.

Member Data Documentation

◆ avg_system_scale

float unravel::ps_soa::emitter_sim_constants::avg_system_scale = 1.0f

Definition at line 62 of file emitter_runtime.h.

◆ blend_mode

blend_mode unravel::ps_soa::emitter_sim_constants::blend_mode = blend_mode::normal

Definition at line 66 of file emitter_runtime.h.

◆ color_by_speed_velocity_range

frange_t unravel::ps_soa::emitter_sim_constants::color_by_speed_velocity_range {0.0f, 10.0f}

Definition at line 73 of file emitter_runtime.h.

◆ color_intensity

float unravel::ps_soa::emitter_sim_constants::color_intensity = 1.0f

Definition at line 61 of file emitter_runtime.h.

◆ ease_pos

bx::EaseFn unravel::ps_soa::emitter_sim_constants::ease_pos = nullptr

Definition at line 76 of file emitter_runtime.h.

◆ features

emitter_feature unravel::ps_soa::emitter_sim_constants::features = emitter_feature::none

Definition at line 58 of file emitter_runtime.h.

◆ inv_color_by_speed_velocity_span

float unravel::ps_soa::emitter_sim_constants::inv_color_by_speed_velocity_span = 0.0f

Definition at line 75 of file emitter_runtime.h.

◆ inv_size_by_speed_velocity_span

float unravel::ps_soa::emitter_sim_constants::inv_size_by_speed_velocity_span = 0.0f

Definition at line 74 of file emitter_runtime.h.

◆ local_to_world

math::mat4 unravel::ps_soa::emitter_sim_constants::local_to_world {1.0f}

Definition at line 77 of file emitter_runtime.h.

◆ opacity

float unravel::ps_soa::emitter_sim_constants::opacity = 1.0f

Definition at line 60 of file emitter_runtime.h.

◆ particle_scale_3d

math::vec3 unravel::ps_soa::emitter_sim_constants::particle_scale_3d {1.0f, 1.0f, 1.0f}

Definition at line 63 of file emitter_runtime.h.

◆ pivot

math::vec2 unravel::ps_soa::emitter_sim_constants::pivot {0.5f, 0.5f}

Definition at line 64 of file emitter_runtime.h.

◆ render_mode

render_mode unravel::ps_soa::emitter_sim_constants::render_mode = render_mode::billboard

Definition at line 65 of file emitter_runtime.h.

◆ size_by_speed_range

frange_t unravel::ps_soa::emitter_sim_constants::size_by_speed_range {1.0f, 1.0f}

Definition at line 71 of file emitter_runtime.h.

◆ size_by_speed_velocity_range

frange_t unravel::ps_soa::emitter_sim_constants::size_by_speed_velocity_range {0.0f, 10.0f}

Definition at line 72 of file emitter_runtime.h.

◆ space

simulation_space unravel::ps_soa::emitter_sim_constants::space = simulation_space::world

Definition at line 59 of file emitter_runtime.h.

◆ tex_sheet_cycles

float unravel::ps_soa::emitter_sim_constants::tex_sheet_cycles = 0.0f

Definition at line 69 of file emitter_runtime.h.

◆ tex_sheet_randomize

bool unravel::ps_soa::emitter_sim_constants::tex_sheet_randomize = false

Definition at line 70 of file emitter_runtime.h.

◆ tex_sheet_tiles

math::vec2 unravel::ps_soa::emitter_sim_constants::tex_sheet_tiles {1.0f, 1.0f}

Definition at line 68 of file emitter_runtime.h.

◆ texture_mode

texture_mode unravel::ps_soa::emitter_sim_constants::texture_mode = texture_mode::multi_channel

Definition at line 67 of file emitter_runtime.h.


The documentation for this struct was generated from the following file: