v0.9.13
Object style and polygon opacity implemented. Values from 0-1. Complete object or individual polygon setting. Usage:
obj.style.opacity = 0.5;
or for example on individual polygons:
polygons: [{vertices:[0,1,2], color:[255,0,0], opacity:0.5}]
You may also want to set the following to make transparent objects render correctly and look better:
obj.style.doublesided = true; // back faces of polygons visible
obj.style.fillmode = "fill"; // avoid overdraw from inflating polygons
Added "test1t.html" test scene for transparent polygon example see http://www.kevs3d.co.uk/dev/phoria/test1t.html
Changed minified phoria script to no longer include gl-matrix-min.js directly. NOTE! This means you must include the minified gl-matrix-min.js before phoria-min.js if you are using it.