Skip to content
Branch: master
Find file History
kosua20 WebGL version: cleaning and refactoring
Corrected many anti-patterns, thanks to @greggman advices. Removed
unused elements, better initialization of some elements, added some
comments.
Latest commit 269b0f4 Aug 1, 2017
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
helpers Update webgl version. Feb 19, 2017
images
models
textures Add WebGL version. Oct 15, 2016
README.md Update README.md Mar 16, 2017
index.html
webgl-demo.js WebGL version: cleaning and refactoring Aug 1, 2017
webgl-shaders.js
webgl-utilities.js

README.md

WebGL version

This is the WebGL 1 version, viewable here

glMatrix.js is used for vectors and matrices computations, and webgl-obj-loader.js for 0BJ loading. Meshes are loaded at launch from their directory, and shaders are stored as strings in a separate Javascript file. The textures resolution has been divided by 2, specular/shininess maps and reflection mapping are also not used, replaced by constant values.

The shadows are computed using the Variance shadow mapping technique, giving smoother results than a simple shadow map.

No interaction in this one for now (TODO: implement a trackball in Javascript).

You can’t perform that action at this time.