Skip to content

Commit 2046f9b

Browse files
authored
Update ParticleEffect.h (scp-fs2open#7446)
Curve input follow-up to scp-fs2open#6926 and scp-fs2open#6889, in that it adds two new curve input Nebula and Particle Detail Levels for use within the particle effects table. These new inputs will allow modders to develop effects that can properly be optimized per varying particle and nebula detail levels.
1 parent 76c00db commit 2046f9b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

code/particle/ParticleEffect.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,12 @@ class ParticleEffect {
273273
modular_curves_submember_input<&ParticleSource::getEffect, &SCP_vector<ParticleEffect>::size>,
274274
ModularCurvesMathOperators::division>{}},
275275
std::pair {"Total Particle Count", modular_curves_global_submember_input<get_particle_count>{}},
276+
std::pair {"Particle Detail Level", modular_curves_global_submember_input<Detail, &detail_levels::num_particles>{}},
276277
std::pair {"Particle Usage Score", modular_curves_math_input<
277278
modular_curves_global_submember_input<get_particle_count>,
278279
modular_curves_global_submember_input<Detail, &detail_levels::num_particles>,
279280
ModularCurvesMathOperators::division>{}},
281+
std::pair {"Nebula Detail Level", modular_curves_global_submember_input<Detail, &detail_levels::nebula_detail>{}},
280282
std::pair {"Nebula Usage Score", modular_curves_math_input<
281283
modular_curves_global_submember_input<get_particle_count>,
282284
modular_curves_global_submember_input<Detail, &detail_levels::nebula_detail>,

0 commit comments

Comments
 (0)