Skip to content

Region taken from AtlasTexture is inaccurate if taken from edge #36059

Closed
@jgodfrey

Description

@jgodfrey

Godot version:
3.2.stable.official

OS/device including version:
Windows 10

Issue description:
I've seen a few instances where extracting a manually defined region from an AtlasTexture "extends" pixels found at the edges of the texture. See attached image for an idea of what I mean here.

Steps to reproduce:
Add a Sprite to a scene and then manually define a region from an AtlasTexture for the sprite's texture. Be sure the defined region is at the top edge of the atlas. Now, manually extend the region above the (apparent) top edge of the atlas. The sprite will show a smear of pixels extending from the ones that touch the top edge (I think?).

image

Minimal reproduction project:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions