Skip to content

Add support to warp (deform) sprite rendering via an arbitrary grid #4104

Description

@adario

Problem to solve

Being able to warp the rendering of a Sprite would be useful when responding to a game event requires applying some kind of (usually) transient deformation of the rendering output. An example might be an enemy Sprite which, when disappearing due to having been destroyed, briefly collapses on itself or expands outwards.

Apple's SpriteKit provides the SKWarpGeometryGrid class for this purpose: the deformation is defined via a grid in UV space.

Proposal

Add (somewhat) equivalent support via:

  • the WarpGrid class, mimicking SKWarpGeometryGrid
  • the HasWarpGrid mixin on SpriteComponent, mimicking the SKWarpable protocol
  • the WarpEffect class to animate warp grids

More information

I have opened PR #4105 with the proposed implementation, featuring a new example for warping; this is available in the testbed.

Image

Other

  • Are you interested in working on a PR for this?

Activity

  1. changed the title [-]Add support to warp sprite rendering via an arbitrary grid[/-] [+]Add support to warp (deform) sprite rendering via an arbitrary grid[/+] on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions