Vixen
02b45cc4
csharp
public enum VfxAttribute

One per-particle quantity a graph can read or write.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A fixed set rather than an open one, for now. Every attribute here has a known type, a known meaning to the renderers, and a place in the compiled graph's declaration — which is what lets storage be allocated for exactly the ones a graph touches and nothing else. An effect that never rotates its particles pays nothing for rotation.

The values are bit positions, so a declaration is a mask and "does this graph use rotation" is one instruction.

Fields and properties (10)

  • None

    Nothing.

  • Position

    Where the particle is, in the effect's space. Float3.

  • Velocity

    How it is moving, per second. Float3.

  • Size

    How big it is. Float.

  • Colour

    Its colour and opacity, linear and premultiplied by nothing. Float4.

  • Lifetime

    How long it lives, in seconds. Float.

  • Age

    How long it has lived. Float.

  • Rotation

    Its roll, in radians. Float.

  • AngularVelocity

    How fast that roll is changing, in radians per second. Float.

  • Identifier

    The particle's identifier, unique within its system for as long as it lives. UInt.

Used by (21)

  • ParticleBufferVixen.Vfx
  • SweepVixen.Vfx
  • VfxAttributesVixen.Vfx
  • VfxCollisionTestsVixen.Vfx.Tests
  • VfxCompiledGraphVixen.Vfx
  • VfxCompiledGraphTestsVixen.Vfx.Tests
  • VfxCustomAttributeTestsVixen.Vfx.Tests
  • VfxGeometryBuilderVixen.Vfx
  • VfxGeometryTestsVixen.Vfx.Tests
  • VfxGpuSimulationVixen.Rendering
  • VfxGpuSortVixen.Rendering
  • VfxOpcodesVixen.Vfx
  • VfxRendererVixen.Vfx
  • VfxRibbonTestsVixen.Vfx.Tests
  • VfxShaderBindingVixen.Vfx
  • VfxShaderEmitterVixen.Vfx
  • VfxShaderEmitterTestsVixen.Vfx.Tests
  • VfxShaderPackingVixen.Vfx
  • VfxSimulationVixen.Vfx
  • VfxSubEmitterVixen.Vfx
  • VfxPreviewViewVixen.Editor.AssetEditors