public readonly record struct BlendedToggleOne switch's contribution: what it wants, and how much of the fold agrees.
Remarks
⚠ A switch cannot crossfade, so it flips at half weight. Fog's height falloff is on or off — there is no picture that is forty percent of an atmosphere model — so the honest reading of a partial weight is "which side of the blend are we closer to". The flip lands at the blend's midpoint, where a walker expects the room to change, rather than at its edge, where a one-texel step would toggle it per frame.
The look profile — the field's reason to exist — always contributes at weight 1, so the rule only shows where a bounded volume claims a switch and fades, which is a level design the smoothness-minded author avoids anyway.
Fields and properties (2)
public bool ValueWhat the winning layer said.
public float WeightHow much of the way there, 0 to 1.
Methods (2)
public BlendedToggle(bool Value, float Weight)One switch's contribution: what it wants, and how much of the fold agrees.
public bool Over(bool authored)This contribution laid over the value a document authored.
Used by (3)
- FogRendererVixen.Rendering.PostFx
- PostProcessOverlayVixen.Rendering
- PostProcessVolumeTestsVixen.Rendering.Tests