Skip to content

v0.9.13

Compare
Choose a tag to compare
@kevinroast kevinroast released this 03 Jan 11:46
· 17 commits to master since this release

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.