diff options
| author | Palaui <sucdepressec@gmail.com> | 2014-12-09 13:10:05 +0100 |
|---|---|---|
| committer | Palaui <sucdepressec@gmail.com> | 2014-12-09 13:10:05 +0100 |
| commit | 29d8b48503f3064cdc1f3a87c01b4264e716a220 (patch) | |
| tree | 31096a173fa4fb61fd9d912169abbf65fcf269c6 /src/models.c | |
| parent | 63ed471ed24ed1b328cc90f03a88130511725e88 (diff) | |
| download | raylib-29d8b48503f3064cdc1f3a87c01b4264e716a220.tar.gz raylib-29d8b48503f3064cdc1f3a87c01b4264e716a220.zip | |
Corrected some 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); |
