class

Opal::Shader::CrtPass

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

Built-in retro CRT scanlines and phosphor glow shader pass

Constructors

new(region : Rect | Nil = nil, intensity : Float64 = 0.35, scanline_gap : Int32 = 2, phosphor_tint : Color | Symbol | String = Color.none, flicker : Bool = true)
Source

Instance methods

apply(source : UI::Buffer, target : UI::Buffer, time : Float64, frame : UInt64) : Nil
Source
flicker=(flicker : Bool)
Source
flicker?
Source
intensity
Source
intensity=(intensity : Float64)
Source
phosphor_tint
Source
phosphor_tint=(phosphor_tint : Color)
Source
scanline_gap
Source
scanline_gap=(scanline_gap : Int32)
Source