class
Opal::Shader::GlitchPass
- Opal::Shader::GlitchPass
- Opal::Shader::Pass
- Reference
- Object
Overview
Built-in Cyberpunk Glitch & raster tearing shader pass
Defined in:
opal/shader/presets.crConstant Summary
-
GLITCH_RUNES =
['!', '#', '$', '%', '&', '?', '░', '▒', '▓', '█', '<', '>', '/', '\\']
Constructors
Instance Method Summary
- #apply(source : UI::Buffer, target : UI::Buffer, time : Float64, frame : UInt64) : Nil
- #chromatic_shift=(chromatic_shift : Bool)
- #chromatic_shift? : Bool
- #intensity : Float64
- #intensity=(intensity : Float64)
- #slice_height : Int32
- #slice_height=(slice_height : Int32)
Instance methods inherited from class Opal::Shader::Pass
apply(source : UI::Buffer, target : UI::Buffer, time : Float64, frame : UInt64) : Nil
apply,
enabled=(enabled : Bool)
enabled=,
enabled? : Bool
enabled?,
region : Rect | Nil
region,
region=(region : Rect | Nil)
region=
Constructor methods inherited from class Opal::Shader::Pass
new(region : Rect | Nil = nil)
new
Constructor Detail
def self.new(region : Rect | Nil = nil, intensity : Float64 = 0.2, slice_height : Int32 = 3, chromatic_shift : Bool = true)
#