mojira.dev
MC-307033

The value of `GameTime` in animation shaders is set to a constant 0

When updating any of the following shaders:

  • core/animate_sprite.vsh

  • core/animate_sprite_blit.fsh

  • core/animate_sprite_interpolate

an issue can be observed whereby the GameTime property, part of the Globals uniform, is set to a constant value of 0 and does not represent the actual value. I’ve attached an example shader that illustrates the issue.

Attachments

Comments 4

Thank you for helping us improve Minecraft! We saved your files:

[media]

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:

  1. (Explain what needs to be done for the issue to happen)

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

Steps to Reproduce:

  1. Enable the provided resource pack

  2. Β Place any block

Observed Results:
Observe that every block (or texture rendered by an atlas) becomes green, as the animate_sprite_blit shader in the resource pack is showing green if GameTime == 0

Expected Results:
GameTime should not be 0 and instead should be the correct value, like all other core shaders, and the condition should resolve to false, rendering all blocks correctly.

[media]

Bug still exists on 26.2-snapshot-6 when Graphics API is set to OpenGL. When Vulkan is enabled, the resource pack fails to load to begin with due to MC-307387

George

(Unassigned)

Confirmed

Platform G

Normal

Rendering

26.1, 26.2 Snapshot 6

Retrieved