I've been working on setting up a js fiddle to showcase an issue I'm currently tackling with a custom shader. After linking it to three.min.js for r82, I encountered some runtime errors during rendering. Interestingly, this problem was absent when using r81 or when my code was split across different classes and js files. The error message is not very informative - only mentioning a problem with the getUniforms function, which leads me to believe that something may be undefined, but I can't pinpoint the missing piece.
You can view the js fiddle here: jsFiddle
function init()
{
this.textures = {};
this.loaded = 0;
loadAssets();
}
function loadAssets()
{
var loader = new THREE.TextureLoader();
// Loading asset URLs...
}
// More functions and code snippets follow...
Above is the JavaScript code snippet provided.
If you have any insights into solving this issue, your help would be greatly appreciated.
Feel free to ask if more information is required. I'm struggling to identify what might be causing the issue with my custom shader.
Thank you,
Rhys