Skip to content

yss js functions t4y

Bartlomiej Ceglik edited this page Feb 19, 2023 · 3 revisions

t4y. for Three.js sites with .obj .stl .gbl files

three4yss

To index

Three4Yss

Three.js for yss - Main class is accessable by t4y global object. It's a instance of it to use.

Kind: global class

three4Yss.getHtmlAfterLoad(glbFileModel, extras)

methode to init your scene frome file.

Kind: instance method of Three4Yss

Param Type Description
glbFileModel string The path to .glb file
extras json extsas to pass: { //'camPos': [12.530088021598306, 62.72307047093599, 26.921712853935578], //'camRot': [-0.945604247598529, 0.16391450066952107, 0.22234511182624667], 'controls': false, 'lightPos': [0,80,-80], 'camDeb': false }
Clone this wiki locally