faster rendering

changed some things to use attributes instead of uniforms because
performance gains.