flat-surface-shader icon indicating copy to clipboard operation
flat-surface-shader copied to clipboard

Alpha Transparency?

Open dk0r opened this issue 9 years ago • 1 comments

Thanks for maintaining this repo --looks great**!**

Any ideas how to implement transparency for the triangles (globally or specifically)? The README doesn't seem to mention anything relevant and the source, while making using of rgba() appears to ignore the alpha (transparency) values.

I tried modifying the following lines (see http://codepen.io/wouwi/pen/Apvaq) without success:

Line-382: original: this.opacity = FSS.Utils.isNumber(opacity) ? opacity : 1; modded: this.opacity = FSS.Utils.isNumber(opacity) ? opacity : 0.5;

Line-405 original: this.hex = '#' + r + g + b; modded: this.hex = '#00' + r + g + b;

dk0r avatar Feb 20 '16 14:02 dk0r

If you want the opacity global, just set the opacity setting on the canvas/svg element to whatever you want.

mdeboer avatar May 23 '16 12:05 mdeboer