Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

gltfjsx

    $ npx gltfjsx [Model.js] [options]

 /** Options
     --types, -t      Add Typescript definitions
     --verbose, -v    Verbose output w/ names and empty groups
     --meta, -m       Include metadata (as userData)
     --shadows, s     Let meshes cast and receive shadows
     --printwidth, w  Prettier printWidth (default: 120)
     --precision, -p  Number of fractional digits (default: 2)
     --draco, -d      Draco binary path
     --root, -r       Sets directory from which .gltf file is served
     --transform, -T  Transform the asset for the web (draco, prune, resize)
     --debug, -D      Debug output */
 
PREVIOUS NEXT
Tagged: #gltfjsx
ADD COMMENT
Topic
Name
8+3 =