Material3D Module
Convenience values and functions for Material3D.
Functions and values
| Function or value |
Description
|
|
|
|
A default opaque white material with no textures and mid-roughness. Suitable as a fallback when no material is specified.
|
|
Converts a raylib Material to a Material3D. Extracts texture maps and scalar values from the raylib material's map slots. Textures with ID 0 (invalid/unloaded) are treated as absent.
|
|
|
|
|
Full Usage:
withMetallicMap tex mat
Parameters:
Texture2D
mat : Material3D
Returns: Material3D
|
|
|
|
Full Usage:
withRoughnessMap tex mat
Parameters:
Texture2D
mat : Material3D
Returns: Material3D
|
Mibo.Raylib