diff options
| author | jaromirhribal | 2015-01-31 18:02:49 +0100 |
|---|---|---|
| committer | jaromirhribal | 2015-01-31 18:02:49 +0100 |
| commit | 79e330c33ee04c04f5ce3e6f88cb767057184de2 (patch) | |
| tree | fe4dcf2b122d8bc7f1373ac9bb867bf02c1ab856 /scene/3d/camera.cpp | |
| parent | 67d357191ff74b2cfc80015941363a97e7ee19fd (diff) | |
| download | godot-79e330c33ee04c04f5ce3e6f88cb767057184de2.tar.gz godot-79e330c33ee04c04f5ce3e6f88cb767057184de2.tar.zst godot-79e330c33ee04c04f5ce3e6f88cb767057184de2.zip | |
Diffstat (limited to 'scene/3d/camera.cpp')
| -rw-r--r-- | scene/3d/camera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/camera.cpp b/scene/3d/camera.cpp index 27420f800..95eafa0df 100644 --- a/scene/3d/camera.cpp +++ b/scene/3d/camera.cpp @@ -604,7 +604,7 @@ Vector3 Camera::project_position(const Point2& p_point) const { Vector2 point; point.x = (p_point.x/viewport_size.x) * 2.0 - 1.0; - point.y = (p_point.y/viewport_size.y) * 2.0 - 1.0; + point.y = (1.0-(p_point.y/viewport_size.y)) * 2.0 - 1.0; point*=vp_size; Vector3 p(point.x,point.y,-near); |
