struct
ShaderSpec
pub struct ShaderSpec {
pub preset: Option<String>,
pub fragment: Option<String>,
pub colors: Vec<Color>,
pub speed: f32,
pub intensity: f32,
pub texture: Option<TextureRef>,
}A full-surface animated shader (shader element).
Fields
fragment
pub fragment: Option<String>Custom GLSL (see custom_fragment); takes precedence over preset.