summaryrefslogtreecommitdiffhomepage
path: root/docs/examples/web/models_heightmap.c
diff options
context:
space:
mode:
authorvictorfisac <[email protected]>2017-04-03 20:31:10 +0200
committervictorfisac <[email protected]>2017-04-03 20:31:10 +0200
commit256bc6e1dccfd021239dd0e5a66c377a402c3c59 (patch)
treec0baef923b5c60128e7fc76d50eb85982e1ba725 /docs/examples/web/models_heightmap.c
parent0d06c946f2a6b7ce0eb374159333872392a707d9 (diff)
parente6ed85e993b049a28dcc3c37bd5fadc6ab159df7 (diff)
downloadraylib-256bc6e1dccfd021239dd0e5a66c377a402c3c59.tar.gz
raylib-256bc6e1dccfd021239dd0e5a66c377a402c3c59.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'docs/examples/web/models_heightmap.c')
-rw-r--r--docs/examples/web/models_heightmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/examples/web/models_heightmap.c b/docs/examples/web/models_heightmap.c
index 09c3dcc9..bc514538 100644
--- a/docs/examples/web/models_heightmap.c
+++ b/docs/examples/web/models_heightmap.c
@@ -48,10 +48,9 @@ int main()
map = LoadHeightmap(image, (Vector3){ 16, 8, 16 }); // Load heightmap model with defined size
map.material.texDiffuse = texture; // Set map diffuse texture
- UnloadImage(image); // Unload heightmap image from RAM, already uploaded to VRAM
+ UnloadImage(image); // Unload heightmap image from RAM, already uploaded to VRAM
- SetCameraMode(CAMERA_ORBITAL); // Set an orbital camera mode
- SetCameraPosition(camera.position); // Set internal camera position to match our custom camera position
+ SetCameraMode(camera, CAMERA_ORBITAL); // Set an orbital camera mode
#if defined(PLATFORM_WEB)
emscripten_set_main_loop(UpdateDrawFrame, 0, 1);