Skip to content

Incorrect position is sent to shader for UIElements. #1423

@AllUniversal

Description

@AllUniversal

! Title, I just made BadDirector's mod badge use a shader and I noticed that the uie_details.xy uniform passed to the shader in SMODS' utils.lua : UIElement:set_element_shader() is offset, resulting in an incorrect UV. Adding element.container.T.x/y to the element.VT.x/y before scaling mostly fixed it for me, but I can't say why,,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions