ShaderUpdateDetails class
Passed to the ShaderEffect.update callback. Contains information necessary for updating the shader:
shader is the shader to update. value is the current animation value of the effect. size is the on-screen dimensions of the target. image is a snapshot of the target, which can be used as an input texture.
It also exposes the updateUniforms helper method which can be used to update uniforms. Alternatively, you can simply set uniforms on the shader directly.
Constructors
- ShaderUpdateDetails({required FragmentShader shader, required double value, required Size size, required Image image})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateUniforms(
{double? value, List< double> ? floats, List<Image> ? images}) → void - Optional helper method that updates uniforms on the shader.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited