Skip to content

Commit c1e7def

Browse files
authored
Merge pull request #7454 from atmajaa/main
Documentation Update:Webgl - .lib files not supported
2 parents 6e024b4 + 1aedfad commit c1e7def

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/webgl/loading.js

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ import './p5.Geometry';
2626
* `loadModel('assets/model.obj')`. URLs such as
2727
* `'https://example.com/model.obj'` may be blocked due to browser security.
2828
*
29+
* Note: When loading a `.obj` file that references materials stored in
30+
* `.mtl` files, p5.js will attempt to load and apply those materials.
31+
* To ensure that the `.obj` file reads the `.mtl` file correctly include the
32+
* `.mtl` file alongside it.
33+
*
2934
* The first way to call `loadModel()` has three optional parameters after the
3035
* file path. The first optional parameter, `successCallback`, is a function
3136
* to call once the model loads. For example,

0 commit comments

Comments
 (0)