mojira.dev
MC-103633

Could not find uniform ___ in Shaders when spectating Creepers, Endermen, and Spiders

I was spectating Endermen, Creepers, and Spiders to see the shaders you got when you did so, but when I exited MC I noticed my console reported

[media]

:

[21:19:30] [Client thread/INFO]: [CHAT] Your game mode has been updated to Spectator Mode
[21:19:31] [Client thread/WARN]: Could not find uniform named InSize in the specified shader program.
[21:19:50] [Client thread/WARN]: Could not find uniform named InSize in the specified shader program.
[21:19:50] [Client thread/WARN]: Could not find uniform named Time in the specified shader program.

I believe the InSize uniform is for Endermen, and Time for Creepers and Spiders.

Note: A warning for InSize is since 20w22a also logged when loading resources, see MC-186062.

Linked issues

Attachments

Comments 13

Confirmed for 18w47b, when entered Enderman in Spectator Mode.
Additionally to that error message it gave me this here once alongside (same timestamp):

11:59:03	clq	OpenGL debug message, id=1284, source=API, type=ERROR, severity=HIGH, message=GL_STACK_UNDERFLOW error generated. Texture matrix stack underflow.

Confirmed for 18w49a.

These are warnings when Minecraft tries to pass a Uniform variable (that is declared in the program json) to the fsh and vsh programs but either one or both never reference the uniform variable or OpenGL optimized out the variable for being unused. It shouldn't affect shader performance or compilation in any way. Perhaps the fix would be for the Minecraft code to just not output a warning when it fails to send a uniform to a specific shader program? Maybe only output the warning if both vsh and fsh do not use the uniform.

Oh, and also, confirmed 1.14.1

Can confirm in 1.17.1 Release Candidate 1.

3 more comments

Can confirm in 21w42a.

Can confirm in 21w44a.

Can confirm in 1.18 Pre-release 4.

Can confirm in 1.18.1 and 22w03a.

[media]

Can confirm in 1.18.2 and 22w18a.

Shadow

(Unassigned)

Confirmed

Platform

Low

Rendering

creeper, enderman, shader, spectating, spider, warning

Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11, Minecraft 16w50a, ..., 1.20 Pre-release 4, 1.20.1, 23w31a, 1.20.2, 1.21

Retrieved