Skip to content

new shader function to return the origin position for the 'entire' destination image #3345

@hajimehoshi

Description

@hajimehoshi

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

What feature would you like to be added?

imageDstOrigin is confusing when a destination image is a sub-image. imageDstOrigin actually returns the origin position of the sub-image. This is correct, but this is useless when you want to calculate a relative position from the 'entire' destination position.

See also guigui-gui/guigui#239 and the fix guigui-gui/guigui@7491dc7

What about adding a new function to return the origin position of the entire destination image?

Another suggestion is, stop atlas-ing destination images (again) so that the origin position is always (0, 0).

Why is this needed?

To avoid confusion.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions