threejsutils
three.js的实用程序类
用例
坡度
let c1 = Gradient . color ( "red" ) , c2 = Gradient . color ( "blue);
let gradient1 = Gradient.between([c1, c2]);
let cs1 = Gradient.colorStop(0.5, " green " ) , cs2 = Gradient . colorStop ( 2 , "yellow" ) ;
let gradient2 = Gradient . stop ( [ cs1 , cs2 ] ) ;
let v = gradient1 . get ( 0.3 ) ;
t
// use callback to process models
let helper = new GLTFHelper ( { ca
1