Skip to content

Commit

Permalink
more.doc: discuss the material library in detail
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Mar 12, 2024
1 parent 9c8f7e2 commit a1a7c1c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/en/modules/ROOT/pages/more.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,14 @@ methods are also provided to select among `float` and `int` values.

== A library of materials

TODO discuss in detail
JMonkeyEngine has a built-in mechanism to assign names to materials.
Acorus goes one step further,
implementing a material library that makes it easy to access materials by name.

To add a material to the library, invoke the `registerMaterial()` method.

To access a material by name, invoke the `findMaterial()` method.

During startup, Acorus invokes the `generateMaterials()` method
to initialize the library.
Applications may override this method, if desired.

0 comments on commit a1a7c1c

Please sign in to comment.