When initializing the WebGLRenderer, I am passing in a canvas DOM element like shown below:
var jqc = $('#myCanvas'); //accessing canvas with jQuery;
var par = {canvas:jqc.get()}; //creating parameter object with canvas DOM element
var renderer = new THREE.WebGLRenderer(par); //initializing WebGLRenderer using myCanvas
//issue arises in constructor
Am I overlooking something in this process?
I have tested the code without passing any parameters to the constructor, and it works fine. The problem arises when I attempt to use the par object to specify the canvas already present on the page.