class Opal::Shader::VignettePass

Overview

Built-in Radial Vignette spotlight shader pass

Defined in:

opal/shader/presets.cr

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, radius : Float64 = 0.8, falloff : Float64 = 0.5) #

[View source]

Instance Method Detail

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

[View source]
def falloff : Float64 #

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

[View source]
def radius : Float64 #

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

[View source]