Feature/basic osg shader

rebased
It would not result with a lot of if. It would result that you have to
register your shader generator to use it. Eg
Register('truc', myShaderGenerator);
as.setShaderGenerator('truc');
 On Aug 3, 2014 8:57 AM, "Tuan Kuranes" <notifications@github.com> wrote:

> In sources/osg/State.js:
>
> >
> >              var generator = this.stateSets.back().getShaderGenerator();
> >              if ( generator === undefined ) {
> >                  generator = this.shaderGenerator;
> > +                if ( this.attributeMap.Material ) {
>
> Like the idea of registered shadergenerator too.
>
> The ability to have shadergenerator per stateset or per node graph branch
> (using override::ON) still makes sense to me, so that we can have
> specialised ShaderGenerators instead of single shadergenerator with lots of
> case (lots of if())
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cedricpinson/osgjs/pull/88/files#r15733264>.
>