Closed yashrk closed 8 months ago
Thanks for the contribution! I will have time to take a look later today. As for
model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set map diffuse texture
This line is also used in the mesh generation example, see here https://github.com/tjammer/raylib-ocaml/blob/master/examples/models/models_mesh_generation.ml#L43. Note that albedo and diffuse refer to the same texture.
Thanks!
https://github.com/raysan5/raylib/blob/master/examples/models/models_first_person_maze.c rewritten in OCaml.
The only expression I failed to translate directly is L45:
I just can't understand what
MATERIAL_MAP_DIFFUSE
in raylib-ocaml is.Style and logic improvements are also welcome