In my three.js project, I have created a render object and connected it with DomElement as shown below:
var renderer = new THREE.WebGLRenderer({
antialias: true
});
renderer.setClearColor( 0xAAAAAA, 1 );
renderer.setSize(window.innerWidth, window.innerHeight);
document.getElementById('webgl-container').appendChild(renderer.domElement);
After adding the canvas to the webgl-container div, I now want to assign an id to the canvas element. How can I achieve this?