Nutty Professor Movie

    threejs-model

    1.0.1 • Public • Published

    threejs-model

    THREE.js 模型库

    树模型(Tree)

    ​ 使用树模型

      let tree = new MODEL.Tree(scene, type)

    ​ 当前有4中卡通树模型(0、方块树;1、圆形树;2、松树;3、随机圆形树)

      for (let i = 0, len = 4; i < len; i++) {
        let tree = new MODEL.Tree(scene, i)
        let x = i*5 - len/2 *5
        tree.setPos(x, 0, 0).scale(1, 1, 1).rotate(0,0,0).shadow().paint()
      }

    Keywords

    none

    Install

    npm i threejs-model

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    683 kB

    Total Files

    17

    Last publish

    Collaborators

    • suohongbo