jagenjo / Canvas2DtoWebGL

Ports (almost) all Canvas2D functions to the GPU so it can be mixed with a WebGL canvas.
MIT License
325 stars 56 forks source link

Implementing shadowblur #11

Closed AlexVestin closed 4 years ago

AlexVestin commented 4 years ago

Hi, awesome project! are there plans to implement the shadowblur from the canvas2d/is there any issues implementing it?

jagenjo commented 4 years ago

Thanks!

it would be a huge work to implement the shadowblur.

The only way I see would be to have a secondary buffer, rendering on it the shapes, then having a thirth buffer to store the blurred version (this could require a fourth buffer), then drawing into the original buffer first the shadow then the secondary.

This process would be superslow, and prone to errors, and I dont have the time to endure in such endevour.

AlexVestin commented 4 years ago

@jagenjo Alright, thanks for the answer. Do you use any reference material for implementing this project?

jagenjo commented 4 years ago

no, sorry