Hey everyone! :)
Lately, I've been putting effort into developing a function that can return multiple THREE.js materials simultaneously. However, I've hit a roadblock. I'm struggling to make the function return both the MeshBasicMaterial object and the MeshLambertMaterial data object. I've rechecked my code numerous times, but I can't seem to find any errors.
Here's the complete code snippet:
/**
* A function for converting hex <-> dec w/o loss of precision.
*
* The problem is that parseInt("0x12345...") isn't precise enough to convert
* 64-bit integers correctly.
*
* Internally, this uses arrays to encode decimal digits starting with the least
* significant:
* 8 = [8]
* 16 = [6, 1]
* 1024 = [4, 2, 0, 1]
*/
// Function to add two arrays for the given base (10 or 16) and return the result.
// This turns out to be the only primitive operation needed.
...
Appreciate your help!
Best regards,
~Mythros