Make leaf styles actually work.  Fix Math.arccos -> Math.cos (since the former doesn't exist, whee).  Fix vec2.create -> vec2.fromValues, since the former ignores the values you pass it if you do, and that vector needed values.  Fix the fact that each Leaf object was getting a reference to the same position vec2, putting them all in the same end position; clone the position for each leaf.  Turn on the right shader program when drawing the "branch" lines into the texture, and flip it back out for the previous program when done drawing.  Also flip it in and back out when binding the uniform projection matrix.  Draw the SCATTER-style leaf texture into the one remaining panel (hooray, it fits!).  Add the bark color, line-drawing shader program reference, and indication of which leaf style to draw, to drawLeafTexture_'s args.  Drop the explicit "if (1)" / "if (0)" tests in favor of actually looking at the leaf style arg.  Finally, up in makeFoliage_, pick the right UV (x) coordinate based on the tree's leaf_style_ value to draw the right foliage type.