Skip to content

Matrix translation doesn't affect scissor #755

@technicfan

Description

@technicfan

Describe the bug

I made the mod MediaToast that adds system music information to the music toast. When the text is too long, I make it scroll.
To do that, I use the enableScissor method of GuiGraphics to limit the width to the maximum width I set (a static value) after the regular renderer translated the matrix for the show/hide animation of the toast.
With Vanilla rendering it works fine, but with VulkanMod it draws the text up to the static maximum width regardless of the state of the animation:

Without VulkanMod (expected):
Image

With VulkanMod:
Image

I fixed it in my mod with calculating the correct end for the scissor (technicfan/MediaToast@78d5758) and I cannot do the same operation with the Vanilla renderer (or the text won't be drawn wide enough), so it's definitely different behavior.

Maybe related to #220 ?

(I hope Bug Report was the right category)

Steps to reproduce

  1. Install MediaToast (version 1.3.2) and VulkanMod
  2. Start the game and enable the music toast in sound options
  3. Play media with a long title (e.g. a YouTube video)
  4. See the problem during the toast animations

Log files

Not relevant for this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions