Skip to content

Two different WebGL picking models using color and alpha encoding

Notifications You must be signed in to change notification settings

FarhadG/webgl-picking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebGL Picking

Various implementations of WebGL picking (hit testing)


Demo

You will find two various methods for WebGL picking (hit testing) by encoding index or color values. Here's a simple DEMO showcasing the encoding of the geometry index into the alpha channel.

Go ahead and give it a try: WebGL Picking


Installation

git clone https://github.com/FarhadG/webgl-picking.git
cd webgl-picking

Open or serve up the index.html file. All of the logic happens inside of either indexEncoding.js or 'colorEncoding.js'.


LICENSE

MIT

About

Two different WebGL picking models using color and alpha encoding

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published