M2 allows to animate the color and transparency of vertices. The loader already parses M2Color but it does not yet map the data to three.js entities. AFAICS, M2Color.color would animate Material.color and M2Color.alpha would animate Material.opacity(next to texture weights).
It would be good to know the filename of such an asset for testing (https://wow.tools/) so _readColors() can verified and the animation implemented:
M2 allows to animate the color and transparency of vertices. The loader already parses
M2Color
but it does not yet map the data tothree.js
entities. AFAICS,M2Color.color
would animateMaterial.color
andM2Color.alpha
would animateMaterial.opacity
(next to texture weights).It would be good to know the filename of such an asset for testing (https://wow.tools/) so
_readColors()
can verified and the animation implemented:https://github.com/Mugen87/three-m2loader/blob/2a4c56181aefcb3981302086aa2132a7d4892d9d/M2Loader.js#L145