Vector-Field sampler

Vector-field / Turbulence sampler

Sampling functions

Return type

Description

float3

SamplerName.sample(float3 position)
Samples the vector-field at coordinate position.

float3

SamplerName.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.