上传者: 42100129
|
上传时间: 2022-01-08 10:46:58
|
文件大小: 70KB
|
文件类型: -
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