class

Opal::Shader::GlitchPass

Inherits Opal::Shader::Pass < Reference < Object

Built-in Cyberpunk Glitch & raster tearing shader pass

Constants

GLITCH_RUNES = ['!', '#', '$', '%', '&', '?', '░', '▒', '▓', '█', '<', '>', '/', '\\']

Constructors

new(region : Rect | Nil = nil, intensity : Float64 = 0.2, slice_height : Int32 = 3, chromatic_shift : Bool = true)
Source

Instance methods

apply(source : UI::Buffer, target : UI::Buffer, time : Float64, frame : UInt64) : Nil
Source
chromatic_shift=(chromatic_shift : Bool)
Source
chromatic_shift?
Source
intensity
Source
intensity=(intensity : Float64)
Source
slice_height
Source
slice_height=(slice_height : Int32)
Source