Skip to content

Add DeformedSprite for four-point texture deformation - #100

Draft
EbiseLutica with Copilot wants to merge 4 commits into
v2from
copilot/v2-add-deformed-sprite
Draft

Add DeformedSprite for four-point texture deformation#100
EbiseLutica with Copilot wants to merge 4 commits into
v2from
copilot/v2-add-deformed-sprite

Conversation

Copilot AI commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Add a DeformedSprite node that renders a Texture2D mapped to four freely positioned vertices relative to its parent.

  • Rendering
    • Add a dedicated render command, OpenGL runner, and shaders.
    • Support tint colors, custom materials, texture atlas UVs, and parent transforms.
    • Register the renderer in the OpenGL desktop backend.
  • Documentation
    • Document usage and vertex coordinate conventions.
    • Update the graphics table of contents and changelog.
  • Tests
    • Cover default texture-sized geometry and independent vertex assignment.
var sprite = new DeformedSprite(texture)
{
    TopLeft = (0, 0),
    TopRight = (160, 20),
    BottomRight = (160, 120),
    BottomLeft = (0, 100),
};

Root.Add(sprite);

Copilot AI linked an issue Jul 29, 2026 that may be closed by this pull request
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 29, 2026

Copy link
Copy Markdown

Deploying promete with  Cloudflare Pages  Cloudflare Pages

Latest commit: 50e7336
Status:🚫  Build failed.

View logs

Copilot AI changed the title [WIP] Add DeformedSprite node to draw Texture2D with custom vertices Add DeformedSprite for four-point texture deformation Jul 29, 2026
Copilot AI requested a review from EbiseLutica July 29, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeformedSprite

2 participants