r54dev
r54dev
Refactored enabling / disabling of attributes in WebGLRenderer.

Before attributes were enabled just once, when creating a new program and then they were never disabled (with exception of UVs).

Now before rendering of the object existing enabled attributes are disabled and attributes required by program are enabled (these GL state changes are cached so they happen only when active geometry or material changes inside a frame).

There is still some gray zone for more exotic rendering methods (immediate render objects and render plugins do not disable outstanding enabled attributes, they just enable attributes they need) but we'll address these if they start to make problems.

Performance seems to be ok, at least for current examples, though there may be some use cases which could get dramatically slower with these changes (before optimizations naive attribute disabling / enabling every time halved the framerate in performance stress test).

Fixes #2633 (hope so)
Removed forgotten commented out code.
Changed WebGLRenderer's sortFacesByMaterial to only split geometry if MeshFaceMaterial is used at the first render.

Fixes #2638
Merge remote-tracking branch 'remotes/mrdoob/dev' into dev
r54dev
Merged with @mrdoob's dev branch.
Updated builds.
Fixed Clock double-counting of time in getElapsedTime (thanks to @gagern)

Fixes #2637
Merging with @alteredq's branch.
Merge remote-tracking branch 'alteredq/dev' into dev
Add simple node.js dependency-less HTTP Server to utils

Its sometimes easier to run node.js than python on some computers (eg. on a fresh installation of windows). Although previously discussed in #534, I thought it'd be nice to have a simple web server in jss since a python-less build system is already in place.

This could be an alternative to `python -m SimpleHTTPServer`

To use, cd to the base directory and run
`node utils/simplehttpserver.js <port number>`
Forgot to remove unnecessary debug message ><
utils/simplehttpserver.js -> utils/servers/simplehttpserver.js
Add shell scripts for running serving three.js in javascript, python, ruby and perl
Added support for alphaTest to Sprites.
Changed indices to use Uint16Array

Changed indices to use Uint16Array rather than Int16Array to make full use of the 16bit precision of the pointer
Merge remote-tracking branch 'alteredq/dev' into dev
Merge remote-tracking branch 'benaadams/patch-1' into dev