pub struct ShaderConfig {
pub animation_speed: Option<f32>,
pub brightness: Option<f32>,
pub text_opacity: Option<f32>,
pub full_content: Option<bool>,
pub channel0: Option<String>,
pub channel1: Option<String>,
pub channel2: Option<String>,
pub channel3: Option<String>,
pub cubemap: Option<String>,
pub cubemap_enabled: Option<bool>,
pub use_background_as_channel0: Option<bool>,
}Expand description
Per-shader configuration settings.
Used both for embedded defaults in shader files and for user overrides in config.yaml. All fields are optional to allow partial overrides.
Fields§
§animation_speed: Option<f32>Animation speed multiplier (1.0 = normal speed)
brightness: Option<f32>Brightness multiplier (0.05-1.0)
text_opacity: Option<f32>Text opacity when using this shader (0.0-1.0)
full_content: Option<bool>When true, shader receives full terminal content for manipulation
channel0: Option<String>Path to texture for iChannel0
channel1: Option<String>Path to texture for iChannel1
channel2: Option<String>Path to texture for iChannel2
channel3: Option<String>Path to texture for iChannel3
cubemap: Option<String>Path prefix for cubemap faces
cubemap_enabled: Option<bool>Whether cubemap sampling is enabled
use_background_as_channel0: Option<bool>Use the app’s background image as iChannel0 instead of a separate texture
Trait Implementations§
Source§impl Clone for ShaderConfig
impl Clone for ShaderConfig
Source§fn clone(&self) -> ShaderConfig
fn clone(&self) -> ShaderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShaderConfig
impl Debug for ShaderConfig
Source§impl Default for ShaderConfig
impl Default for ShaderConfig
Source§fn default() -> ShaderConfig
fn default() -> ShaderConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShaderConfig
impl<'de> Deserialize<'de> for ShaderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShaderConfig
impl PartialEq for ShaderConfig
Source§impl Serialize for ShaderConfig
impl Serialize for ShaderConfig
impl StructuralPartialEq for ShaderConfig
Auto Trait Implementations§
impl Freeze for ShaderConfig
impl RefUnwindSafe for ShaderConfig
impl Send for ShaderConfig
impl Sync for ShaderConfig
impl Unpin for ShaderConfig
impl UnsafeUnpin for ShaderConfig
impl UnwindSafe for ShaderConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().