Skip to content

Commit

Permalink
Merge pull request #7454 from atmajaa/main
Browse files Browse the repository at this point in the history
Documentation Update:Webgl -  .lib files not supported
  • Loading branch information
davepagurek authored Jan 14, 2025
2 parents 6e024b4 + 1aedfad commit c1e7def
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/webgl/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ import './p5.Geometry';
* `loadModel('assets/model.obj')`. URLs such as
* `'https://example.com/model.obj'` may be blocked due to browser security.
*
* Note: When loading a `.obj` file that references materials stored in
* `.mtl` files, p5.js will attempt to load and apply those materials.
* To ensure that the `.obj` file reads the `.mtl` file correctly include the
* `.mtl` file alongside it.
*
* The first way to call `loadModel()` has three optional parameters after the
* file path. The first optional parameter, `successCallback`, is a function
* to call once the model loads. For example,
Expand Down

0 comments on commit c1e7def

Please sign in to comment.