Skip to content

CiroLee/720_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

Demo

install

<script src="js/three.min.js"></script>
<script src="js/JSONLoader.js"></script>
<script src="js/OrbitControls.js"></script>

and at the back of the body label

<script src="js/model.js"></script>

use

let model = new Model({   //instantiate a new object
        el:"#wrapper",
        camera:[-50,20,0],
        ambientlight:0xF2F4F8
    });

    model.addModel('model/sculpt.js',{  //add model and set its attribute
        position:[-4,-16,4],
        rotation:[-90*Math.PI/180,0,10*Math.PI/180]
    });
    model.addLight('spotlight',{    //add light and set
        color:0x78AFD7,
        position:[-100,100,50],
        intensity:1,
        distance:160,
        decay:2
    });
    

About

Interface encapsulation of introducing 3D model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published