fix(renderer): ghost indicators for handles
This commit is contained in:
parent
56c991b667
commit
ff5eb969d9
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue