-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Details: - Breaks renderers API: - processVisibleItem takes an additional first argument, nodeId (or edgeId for edges), that must be used as a color in the shaders in PICKING mode - draw becomes setUniforms, and no more has to call the drawGl method. Also, it receives a ProgramInfo as an additional input - The WebGL method used for drawing must be specified in the ProgramDefinition - Migrates edge.rectangle and node.circle to picking (and partially migrates other programs so that they can be built) - Adds a new WebGL context that draws the picking layer - Migrates getNodeAtPosition and getEdgeAt to read the new layer TODO: - Picking does not fully work yet - Remaining programs must implement picking in their shaders - ATM edges are drawn over nodes on the picking layer, and this must be fixed - Picking layer must be hidden - Picking should probably be done on their respective layer, but on a texture
- Loading branch information
Showing
20 changed files
with
475 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.