Skip to content Skip to sidebar Skip to footer
Showing posts with the label Graphics

Webgl Gl_fragcolor Alpha Behave Differently In Chrome With Firefox

Code below draws three triangles alpha value 0.5 with {premultipliedAlpha: false}. Result in Chrom… Read more Webgl Gl_fragcolor Alpha Behave Differently In Chrome With Firefox

How Do I Create A 3d Polygon From A Series Of 3d Points In Three.js?

I wonder what would be the best way to generate a custom 3D polygon given an array of 3D points in … Read more How Do I Create A 3d Polygon From A Series Of 3d Points In Three.js?

"saturation" GlobalCompositeOperation Without Changing Transparency?

I have a canvas containing art on a transparent background. I desaturate it like this: boardCtx.fil… Read more "saturation" GlobalCompositeOperation Without Changing Transparency?

Understanding The Geometry Of A Truncated Icosahedron, For Rendering

I'm trying to render a truncated icosahedron like above with clickable zones using Three.js. I… Read more Understanding The Geometry Of A Truncated Icosahedron, For Rendering