diff options
| author | Ray San <[email protected]> | 2017-10-20 18:24:50 +0200 |
|---|---|---|
| committer | Ray San <[email protected]> | 2017-10-20 18:24:50 +0200 |
| commit | a29365ff2a4e597bf6cb046ea6d51bfa09e1df42 (patch) | |
| tree | ccfdee66ea672a6094167ff0de67a30028302a91 /examples/web/models/models_cubicmap.c | |
| parent | 7447deed40f1deabee659155a30b2d6aa454dafd (diff) | |
| download | raylib.com-a29365ff2a4e597bf6cb046ea6d51bfa09e1df42.tar.gz raylib.com-a29365ff2a4e597bf6cb046ea6d51bfa09e1df42.zip | |
Updated all web examples for raylib 1.8
Diffstat (limited to 'examples/web/models/models_cubicmap.c')
| -rw-r--r-- | examples/web/models/models_cubicmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/web/models/models_cubicmap.c b/examples/web/models/models_cubicmap.c index 0cbef2e..bc0e716 100644 --- a/examples/web/models/models_cubicmap.c +++ b/examples/web/models/models_cubicmap.c @@ -47,11 +47,11 @@ int main() 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); + map = 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 - model.material.maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture + map.material.maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture UnloadImage(image); // Unload cubesmap image from RAM, already uploaded to VRAM |
