Skip to content

VfxDriverContainer

15.22

Class Documentation

Edit documentation

The material drivers of a VfxMaterialRenderComponent (its Drivers): shader parameter values that the driver graph computes. There are two kinds:

  • materialDrivers: one value per emitter, set as a named material parameter.
  • DynamicParticleParameter: values per particle, written into a per-particle buffer that the shader reads.

When the system is prepared, the render component runs the driver setup over both maps: it records which components each driver defines, assigns the random slots and registers the logic drivers.

Properties

DynamicParticleParameter

Map<U8, VfxDynamicParticleParameterDefinition> = {}
16.1
Edit documentation

Per-particle shader values, each a VfxDynamicParticleParameterDefinition under a U8 key. The key is the index of the value in the particle's record.

On every draw the client also sets the shader parameter DYNAMIC_PARTICLE_ENABLE_MASK: four bits per key, one for each component that the key's drivers define. Bits 0-3 belong to key 0, bits 4-7 to key 1, and so on.

Referenced by 1 class · 1 property