class

Opal::Shader::RaymarchSpherePass

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

Procedural 3D Raymarched Sphere shader pass with dynamic orbital lighting, diffuse Lambertian shading, specular highlights, and ASCII luminance ramping.

Constants

RAMP = [' ', '.', ':', '-', '=', '+', '*', '%', '#', '@', '$']

Constructors

new(region : Rect | Nil = nil, speed : Float64 = 1.0, radius : Float64 = 0.75, sphere_color : Color | Symbol | String = :bright_cyan, light_color : Color | Symbol | String = :white, preserve_text : Bool = false)
Source

Instance methods

apply(source : UI::Buffer, target : UI::Buffer, time : Float64, frame : UInt64) : Nil
Source
light_color
Source
light_color=(light_color : Color)
Source
preserve_text=(preserve_text : Bool)
Source
preserve_text?
Source
radius
Source
radius=(radius : Float64)
Source
speed
Source
speed=(speed : Float64)
Source
sphere_color
Source
sphere_color=(sphere_color : Color)
Source