Skip to content

Add a class for applying graphic effects using the CPU #117

Closed
@adazem009

Description

@adazem009

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Priority: Criticaltask

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions