ShaderConfig class

Describes a fragment shader and how to build its uniform values.

Constructors

ShaderConfig({required ShaderCallback? onGetShaderUniforms, required String? customShaderPath})
const
ShaderConfig.bokehCover()
Soft bokeh-style blur cover shader.
factory
ShaderConfig.glitchStripes()
Glitch stripes with RGB splits.
factory
ShaderConfig.liquidMetal()
Liquid Metal (CC0) warped FBM shader.
factory
ShaderConfig.liquidSpectrum()
Liquid Spectrum (HSV FBM) shader.
factory
ShaderConfig.mosaicCensor()
Pixelated mosaic censor blocks.
factory
ShaderConfig.particles()
Default particle shader with sprite support.
factory

Properties

customShaderPath String?
Path to a custom fragment shader asset (e.g. 'shaders/particles.frag'). If provided, this shader replaces the default particle effect.
final
hashCode int
The hash code for this object.
no setterinherited
onGetShaderUniforms ShaderCallback?
Optional callback to generate shader uniforms for a given rect.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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