Opal::Graphics::Primitives3D
3D Mesh Renderer
Constants
SHADING_RAMP = [' ', '.', ':', '-', '=', '+', '*', '#', '%', '@']
Class methods
render_mesh(buffer : UI::Buffer, mesh : Mesh3DData, center_x : Int32, center_y : Int32, scale : Float64 = 10.0, pitch : Float64 = 0.4, yaw : Float64 = 0.6, roll : Float64 = 0.0, wireframe : Bool = false, primary_color : Color = Color.cyan, light_dir : Vec3 = (Vec3.new(0.577, 0.577, -0.577)).normalize) : Nil
Renders a 3D mesh into the target terminal buffer