Closed
Description
When calculating convex hull points or when checking if sprite touches a color, the texture is processed using the CPU and graphic effects should be applied there too instead of creating a framebuffer, rendering the texture using the shaders and then getting the pixels back which is inefficient.
Scratch uses the EffectTransform
class for this: https://github.com/scratchfoundation/scratch-render/blob/e075e5f5ebc95dec4a2718551624ad587c56f0a6/src/EffectTransform.js