diff options
| author | raysan5 <raysan5@gmail.com> | 2014-12-09 13:21:55 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2014-12-09 13:21:55 +0100 |
| commit | d3cf316e40b531542b6f55b965f3369d4aca28d6 (patch) | |
| tree | a9853c9e0dd7ea47af803d61a8aca276beefee2c /src/models.c | |
| parent | a2c8ddca1345722603637bddc3421f64025d7e5e (diff) | |
| download | raylib-d3cf316e40b531542b6f55b965f3369d4aca28d6.tar.gz raylib-d3cf316e40b531542b6f55b965f3369d4aca28d6.zip | |
Added features and corrected bugs...
[core] Added SetMousePosition()
[models] LoadHeightmap() - Corrected textures bug
[raymath] Functions renaming
[WEB] Prepare environment for emscripten!
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.c b/src/models.c index 2d2af038..f59a7b43 100644 --- a/src/models.c +++ b/src/models.c @@ -743,7 +743,7 @@ Model LoadHeightmap(Image heightmap, float maxHeight) vData.texcoords[tcCounter + 7] = vData.texcoords[tcCounter + 5]; vData.texcoords[tcCounter + 8] = vData.texcoords[tcCounter + 2]; - vData.texcoords[tcCounter + 9] = vData.texcoords[tcCounter + 1]; + vData.texcoords[tcCounter + 9] = vData.texcoords[tcCounter + 3]; vData.texcoords[tcCounter + 10] = (float)(x+1) / (mapX-1); vData.texcoords[tcCounter + 11] = (float)(z+1) / (mapZ-1); |
