mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-21 17:21:45 +00:00
Review mesh loading and textures generation
This commit is contained in:
@@ -27,7 +27,7 @@ int main()
|
||||
Texture2D cubicmap = LoadTextureFromImage(image); // Convert image to texture to display (VRAM)
|
||||
|
||||
Mesh mesh = GenMeshCubicmap(image, (Vector3){ 1.0f, 1.0f, 1.0f });
|
||||
Model model = LoadModelFromMesh(mesh, false);
|
||||
Model model = LoadModelFromMesh(mesh);
|
||||
|
||||
// NOTE: By default each cube is mapped to one part of texture atlas
|
||||
Texture2D texture = LoadTexture("resources/cubicmap_atlas.png"); // Load map texture
|
||||
|
Reference in New Issue
Block a user