Font renderer updates (#483)
* font renderer updates, text debug drawer; editor: name visualizer; github CI: vulkan sdk not required; * cmake: vulkan sdk not required * refactors * lua binding for DrawDebugText() * comment * transparency sorting for debug texts; font alphablend fix; * softer debug text
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
-- This script will draw some debug primitives in the world such as line, point, box
|
||||
-- This script will draw some debug primitives in the world such as line, point, box, capsule, text
|
||||
killProcesses() -- stops all running lua coroutine processes
|
||||
|
||||
backlog_post("---> START SCRIPT: debug_draw.lua")
|
||||
@@ -13,6 +13,12 @@ runProcess(function()
|
||||
local T = matrix.Translation(Vector(0,2,3))
|
||||
local M = S:Multiply(R):Multiply(T)
|
||||
DrawBox(M, Vector(0,1,1,1))
|
||||
|
||||
local capsule = Capsule(Vector(1,1,1), Vector(30,30,30), 1.5)
|
||||
DrawCapsule(capsule, Vector(1,0,0,1))
|
||||
|
||||
DrawDebugText("Debug text", Vector(-5,4,2), Vector(0,1,0,1), 2, DEBUG_TEXT_CAMERA_FACING | DEBUG_TEXT_CAMERA_SCALING)
|
||||
DrawDebugText("Debug text behind", Vector(-5,4,4), Vector(0,0,1,1), 2, DEBUG_TEXT_CAMERA_FACING | DEBUG_TEXT_CAMERA_SCALING)
|
||||
|
||||
render()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user