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:
Turánszki János
2022-07-05 15:20:23 +02:00
committed by GitHub
parent 2a8d22124e
commit b944465263
17 changed files with 350 additions and 65 deletions
+7 -1
View File
@@ -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