Skip to content

stianmorsund/Red-Cube-WebGL-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Red-Cube-WebGL

A simple game where you need to press the red cube to win. Demonstrates "picking"-technique in WebGL


Since WebGL renders graphics onto the canvas-tag, it is not possible to access these objects from within the DOM like you normally would in Javascript. We can make a framebuffer-object (FBO) to read a block of pixels onto using WebGLs readPixels()-function. Furthermore we can map our objects to different colors, making it possible to handle interactions by the user from within the canvas.

About

A simple game demonstrating picking in WebGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published