Menu
  • HOME
  • TAGS

globalcompositeoperation equivalent in webgl

html5-canvas,webgl,glteximage2d,globalcompositeoperation

Yes its called blendFunc and blendEquation. Check this out to learn more.

Place object between another two

html5,canvas,globalcompositeoperation

You just need to change a little on the orders of things in the code - composite modes are really not needed in this case: All static elements like the sun and the earth orbit, can be rendered once and set as for example background to the element. Draw the...

Defining how 2 separate, overlapping canvases blend

html5,canvas,blending,globalcompositeoperation

Do I understand that the letters canvas the lib draws has an opaque (white) background rather than a transparent one? If so, any options for applying highlighting will be relatively poor in performance. Standard canvas compositing won't help as there is no blending mode that combines source-destination pixels. What you're...