PopcornFX v2.9

Generic selectors
Exact matches only
Search in title
Search in content
  1. Home
  2. Docs
  3. PopcornFX v2.9
  4. Scripting reference
  5. Samplers
  6. Vector-Field sampler

Vector-Field sampler

Vector-field / Turbulence sampler

Sampling functions

Return typeDescription
float3SamplerName.sample(float3 position)
Samples the vector-field at coordinate position.
float3SamplerName.sample(float3 position, float time)
Samples the animated vector-field at coordinate position, and at time-cursor time.time should be in the normalized [0, 1] range.
If the vector-field is not animated, returns the same value as SamplerName.sample(position).

 

Disclaimer: These are describing the reference implementation. When using attribute samplers, the behavior of these functions can vary depending on the implementation in the game-engine where the effect is loaded.

Was this article helpful to you? Yes No

How can we help?