FAQ Database Discussion Community


globalcompositeoperation equivalent in webgl

html5-canvas,webgl,glteximage2d,globalcompositeoperation
Canvas 2D provides an option of overlapping images in different ways with the globalcompositeoperation property as shown here http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_globalcompop Is there an option similar to this in webgl when rendering images using the texImage2D function ?...

Place object between another two

html5,canvas,globalcompositeoperation
I'm new to canvas and I wanted to move my DOM (HTML+JS) animation to canvas. I tried to mimic the solar system animation in Basic animations - Web API Interfaces | MDN and I managed to do it. Fiddle. I have a problem regarding the globalCompositeOperation. In the animation, earth...