SpoilerShaderRenderer class

Renders a custom shader effect for the spoiler.

This class handles loading a user-provided fragment shader and applying it to the canvas. It provides standard uniforms to the shader:

  • uResolution (vec2)
  • uTime (float)
  • uRect (vec4)
  • uSeed (float)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Canvas canvas, Rect rect, double time, {required double seed, required List<double> params, List<Image>? images}) → void
Renders the shader effect for a specific rect.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create(String assetPath) Future<SpoilerShaderRenderer?>
Creates a new SpoilerShaderRenderer by loading the shader from the given path.