optimized iteration
Merge branch 'webgl' of github.com:ncannasse/h3d into webgl
added material.setup(ctx)