reactjs - three.js from npm: import THREE.Lut() -
i've install 3 package npm, , tried call
lut = new three.lut( colormap, numberofcolors ); i'm getting "export 'lut' (imported 'three') not found in 'three'.
the lut.js file can found in \node_modules\three\examples\js\math, doesn't contain export statements , needs three.js itself.
i've tried import 'three/examples/js/math/lut'; , other conventions, none worked.
have tried
import lut 'three/examples/js/math/lut' then
let lut = new lut(...); presumably can instead
import 3 'three' let lut = new three.lut(...); edit
it doesn't three.js allow import examples @ time there plenty of suggestions/workarounds can @ in issue, doesn't going implemented time soon:
Comments
Post a Comment