ShaderPaint class
A pass painted by one of the project's own fragment shaders.
asset is the shader's key in the bundle — the path its pubspec declares
under flutter: shaders:, and what FragmentProgram.fromAsset takes.
uniforms are the author's values by name, one to four floats each (a
float, a vec2, a vec3, a vec4). The renderer sets rendererUniforms
itself, and a name the shader does not declare is skipped, never thrown.
- Inheritance
-
- Object
- ScenePaint
- ShaderPaint
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toWire(
) → Object -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
-
rendererUniforms
→ const Map<
String, int> - What the renderer sets, by name and float count, when the shader declares it at that size: the box's logical size (the whole text, or one line), the text's own colour as straight RGBA 0–1, and scene seconds. A shader that does not declare one simply does not get it.