@urban-toolkit/autk-core / TransferFunction
Interface: TransferFunction
Defined in: transfer-function.ts:17
Configures how scalar values map to opacity.
The active mode determines which values receive higher opacity after the input values are normalized against the current transfer context.
Properties
gamma?
optionalgamma?:number
Defined in: transfer-function.ts:31
Curve shaping factor; values <= 0 are clamped to a tiny positive exponent at evaluation time.
mode?
optionalmode?:"linear"|"near-zero"|"far-zero"
Defined in: transfer-function.ts:25
Opacity mapping mode.
near-zero: values closer tozeroCenterare more opaque.far-zero: values farther fromzeroCenterare more opaque.linear: opacity increases monotonically across the dataset range.
opacityMax?
optionalopacityMax?:number
Defined in: transfer-function.ts:29
Upper bound for output opacity in [0, 1].
opacityMin?
optionalopacityMin?:number
Defined in: transfer-function.ts:27
Lower bound for output opacity in [0, 1].
zeroCenter?
optionalzeroCenter?:number
Defined in: transfer-function.ts:33
Reference center used by zero-distance modes (default 0).