fix(renderer): ghost indicators for handles

This commit is contained in:
maelstrom 2025-04-15 01:12:37 +02:00
parent 56c991b667
commit ff5eb969d9

View file

@ -260,6 +260,8 @@ void renderHandles() {
for (auto face : HandleFace::Faces) { for (auto face : HandleFace::Faces) {
Data::CFrame cframe = editorToolHandles->GetCFrameOfHandle(face); Data::CFrame cframe = editorToolHandles->GetCFrameOfHandle(face);
glm::vec4 screenPos = projection * view * glm::vec4((glm::vec3)cframe.Position(), 1.0f); glm::vec4 screenPos = projection * view * glm::vec4((glm::vec3)cframe.Position(), 1.0f);
if (screenPos.z < 0) continue;
glm::vec3 ndcCoords = screenPos / screenPos.w; glm::vec3 ndcCoords = screenPos / screenPos.w;
float rad = 5; float rad = 5;