Reputation: 75
I'm using the three.js 3D engine. How can I add UI buttons on my WebGL canvas?
Upvotes: 2
Views: 5039
Reputation: 83398
Use CSS to absolute positioning HTML elements over <canvas>
.
<canvas>
is just like all other HTML elements and the same tricks work on it.
http://css-tricks.com/absolute-positioning-inside-relative-positioning/
Upvotes: 1