the title explains it pretty much. I have a normal map encoded in base 64 and I want to use it on a model. I have been trying some examples that I found online but to no avail.
var curObj = mesh.getObjectByName(object + "_low")
var image = new Image()
var texture = new THREE.Texture(image)
image.src = reader.result
curObj.material.normalMap = image
image.onload = function() { texture.needsUpdate = true }
Object is a string that is the name of the part that I want to apply the normal map to. The base 64 string is reader.result