FAQ Database Discussion Community

Place object between another two

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...

globalcompositeoperation equivalent in webgl

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 ?...