mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-18 16:08:11 +08:00
转换世界坐标方法更新
This commit is contained in:
parent
ada32313b8
commit
f91f10445b
@ -194,7 +194,8 @@ Vertex Terrain::hitPoint(glm::vec3 orig, glm::vec3 dir) {
|
|||||||
return Vertex(glm::vec3(0.0f));
|
return Vertex(glm::vec3(0.0f));
|
||||||
}
|
}
|
||||||
if (flag * temp == -1 || temp == 2) {
|
if (flag * temp == -1 || temp == 2) {
|
||||||
return Vertex(right);
|
glm::vec4 ans = Model * glm::vec4(right,1.0f);
|
||||||
|
return Vertex(glm::vec3(ans));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user