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_heightmap.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_heightmap.c')
| -rw-r--r-- | examples/web/models/models_heightmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/web/models/models_heightmap.c b/examples/web/models/models_heightmap.c index e9baa8b..e1937c4 100644 --- a/examples/web/models/models_heightmap.c +++ b/examples/web/models/models_heightmap.c @@ -47,8 +47,8 @@ int main() texture = LoadTextureFromImage(image); // Convert image to texture (VRAM) Mesh mesh = GenMeshHeightmap(image, (Vector3){ 16, 8, 16 }); // Generate heightmap mesh (RAM and VRAM) - Model model = LoadModelFromMesh(mesh); // Load model from generated mesh - model.material.maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture + map = LoadModelFromMesh(mesh); // Load model from generated mesh + map.material.maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture UnloadImage(image); // Unload heightmap image from RAM, already uploaded to VRAM |
