mojira.dev
MC-226673

Title disappears before fading

Since 21w10a, titles with fadeIn or fadeOut appear/disappear before the fade is complete, leaving a noticeable cut in the transition.

How to reproduce
Run the following commands in order:

/title @a times 100 100 100
/title @a title {"text":"_______"}
/title @a times 100 100 100
/title @a title {"text":"_______"}

If these commands are executed in a version later than 21w8b, you will notice that the title appears and disappears a bit before finishing or starting its transition.

Comparison:

[media]

Attachments

Comments 1

This is probably caused by the render text shaders, which detect if the alpha (transparency) value is lower than 0.1 to discard the render, causing all text with alpha between 0.0 and 0.09 to not display. This can be easily fixed by removing that check from those shader files.

SoloAlguien

(Unassigned)

Confirmed

Platform

Normal

UI

/title, command, fade

1.17 Pre-release 1, 1.17 Pre-release 2, 1.17 Pre-release 3, 1.17 Pre-release 4, 1.17 Pre-release 5, ..., 24w12a, 1.21.1, 1.21.3, 24w46a, 1.21.4

Retrieved