class Opal::Shader::GlitchPass

Overview

Built-in Cyberpunk Glitch & raster tearing shader pass

Defined in:

opal/shader/presets.cr

Constant Summary

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

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def apply(source : UI::Buffer, target : UI::Buffer, time : Float64, frame : UInt64) : Nil #

[View source]
def chromatic_shift=(chromatic_shift : Bool) #

[View source]
def chromatic_shift? : Bool #

[View source]
def intensity : Float64 #

[View source]
def intensity=(intensity : Float64) #

[View source]
def slice_height : Int32 #

[View source]
def slice_height=(slice_height : Int32) #

[View source]