summaryrefslogtreecommitdiffhomepage
path: root/docs/examples/web/shaders_model_shader.c
diff options
context:
space:
mode:
authorRay <[email protected]>2017-04-01 00:51:31 +0200
committerRay <[email protected]>2017-04-01 00:51:31 +0200
commite6ed85e993b049a28dcc3c37bd5fadc6ab159df7 (patch)
treec0baef923b5c60128e7fc76d50eb85982e1ba725 /docs/examples/web/shaders_model_shader.c
parent0a33fbf8bb3b774cdd78a0c2f4373436e0edb600 (diff)
downloadraylib-e6ed85e993b049a28dcc3c37bd5fadc6ab159df7.tar.gz
raylib-e6ed85e993b049a28dcc3c37bd5fadc6ab159df7.zip
Update web examples -WORK IN PROGRESS-
Diffstat (limited to 'docs/examples/web/shaders_model_shader.c')
-rw-r--r--docs/examples/web/shaders_model_shader.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/examples/web/shaders_model_shader.c b/docs/examples/web/shaders_model_shader.c
index 15ec130c..e6e6f43c 100644
--- a/docs/examples/web/shaders_model_shader.c
+++ b/docs/examples/web/shaders_model_shader.c
@@ -57,13 +57,11 @@ int main()
shader = LoadShader("resources/shaders/glsl100/base.vs",
"resources/shaders/glsl100/grayscale.fs"); // Load model shader
- dwarf.material.shader = shader; // Set shader effect to 3d model
- dwarf.material.texDiffuse = texture; // Bind texture to model
+ dwarf.material.shader = shader; // Set shader effect to 3d model
+ dwarf.material.texDiffuse = texture; // Bind texture to model
// Setup orbital camera
- SetCameraMode(CAMERA_ORBITAL); // Set an orbital camera mode
- SetCameraPosition(camera.position); // Set internal camera position to match our camera position
- SetCameraTarget(camera.target); // Set internal camera target to match our camera target
+ SetCameraMode(camera, CAMERA_ORBITAL); // Set an orbital camera mode
#if defined(PLATFORM_WEB)
emscripten_set_main_loop(UpdateDrawFrame, 0, 1);