Skip to content

Commit

Permalink
Add tags to raycast.js, and add missing packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erkaman committed Aug 23, 2016
1 parent 588eb04 commit a5c1f17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Binary file added example/img/raycast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions example/raycast.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/*
tags: advanced
<p>
In this demo, it is shown how to implement 3D object picking in regl.
In this demo, it is shown how to implement 3D object picking.
If you click on an object, an outline is drawn around it.
</p>
*/
Expand Down Expand Up @@ -322,7 +324,7 @@ regl.frame(({tick}) => {
}

// we need to render the selected object last.
if(iSelectedMesh !== -1) {
if (iSelectedMesh !== -1) {
m = meshes[iSelectedMesh]

drawOutline(() => {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
"istanbul": "^0.4.3",
"mkdirp": "^0.5.1",
"mouse-change": "^1.3.0",
"mouse-position": "^2.0.1",
"mouse-pressed": "^1.0.0",
"mouse-wheel": "^1.2.0",
"ncp": "^2.0.0",
"parse-dds": "^1.2.1",
Expand Down

0 comments on commit a5c1f17

Please sign in to comment.