Skip to content

Commit

Permalink
[Rendering.PointSet] fixed y-flipped picking
Browse files Browse the repository at this point in the history
  • Loading branch information
krauthaufen committed Apr 10, 2024
1 parent ec59150 commit 5647582
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 5.3.7
- [Rendering.PointSet] fixed y-flipped picking

### 5.3.6
- [Rendering.PointSet] fixed picking for non-compute runtimes (OpenGL on MacOS)

Expand Down
2 changes: 1 addition & 1 deletion src/Aardvark.Rendering.PointSet/LodTreeSceneGraph.fs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module Readback =
let pixel = V2i(pixel.X, size.Y - 1 - pixel.Y)

let tc = (V2d pixel + V2d.Half) / V2d size
let ndc = V3d(tc.X * 2.0 - 1.0, 1.0 - 2.0 * tc.Y, z)
let ndc = V3d(tc.X * 2.0 - 1.0, 2.0 * tc.Y - 1.0, z)
V4f(V3f ndc, Vec.distance (V2f pixel) (V2f center))
) |> ignore

Expand Down

0 comments on commit 5647582

Please sign in to comment.