SSAOEffect class
Screen-Space Ambient Occlusion approximation for Canvas rendering. Uses a simplified approach: darkens corners and edges of the viewport to simulate ambient light being blocked by nearby surfaces.
Constructors
- SSAOEffect({double radius = 0.3, double intensity = 0.5, int samples = 8, bool enabled = false})
Properties
- enabled ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- intensity ↔ double
-
Occlusion intensity (0 = none, 1 = full).
getter/setter pair
- radius ↔ double
-
Occlusion radius in normalized screen space.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- samples ↔ int
-
Number of sample directions.
getter/setter pair
Methods
-
apply(
Canvas canvas, Size size) → void - Applies SSAO-like darkening to the canvas. For Canvas rendering, this is an approximation using radial gradients.
-
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