Update web examples -WORK IN PROGRESS-

This commit is contained in:
Ray 2017-04-01 00:51:31 +02:00
parent 0a33fbf8bb
commit e6ed85e993
70 changed files with 1204427 additions and 1274472 deletions

View file

@ -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);