module
Opal::Graphics::Primitives3D
Overview
3D Mesh Renderer
Defined in:
opal/graphics/primitives_3d.crConstant Summary
-
SHADING_RAMP =
[' ', '.', ':', '-', '=', '+', '*', '#', '%', '@']
Class Method Summary
-
.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
Class Method Detail
def self.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