I'm currently working on a game with Three.js. I'm using the Web GL renderer, which takes up the entire browser window. Now I want to make a chat box, so I put an input tag inside like this
<input id="chatMessageDiv" type="text" value="Message..."></input>
and for the CSS
#chatMessageDiv {
position: absolute;
}
My problem is I can't click on the input form to change the message. The cursor changes to the text icon but when I click nothing happens.
I tried changing the inputs z-index to 1 but that didn't work either. I don't really want to add an orbit controller or a trackball controller.