HeatWaveEffect class

A shader-based heat wave / rising shimmer distortion effect.

Distorts the scene with upward-moving sine waves that are stronger at the bottom and fade toward the top, simulating heat haze rising from a hot surface.

{@tool snippet}

GKWidget(
  effect: HeatWaveEffect(
    frequency: 8.0,
    amplitude: 0.01,
  ),
  trigger: GKTrigger.auto,
)

{@end-tool}

Inheritance

Constructors

HeatWaveEffect({double frequency = 8.0, double amplitude = 0.01})
Creates a HeatWaveEffect.
const

Properties

amplitude → double
The distortion amount in normalized UV space.
final
frequency → double
The density of the heat distortion waves.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context, GKController controller, {Widget? child}) → Widget
Builds the widget tree for this effect.
override
dispose() → void
Override to release resources held by this effect.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited