diff options
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 |
