mc_Entity
in vec2 mc_Entity;
Valid Programs: terrain (gbuffers_terrain, gbuffers_water, shadow)
The x
component stores the block ID which was assigned to the current block in block.properties
. If an ID for the current block is not defined, a value of -1
is sent.
When block.properties
is not present in the shader pack files, a legacy fallback is used. This assigns most block IDs according to their pre 1.13 numerical values, as described in the Minecraft Wiki. This is intended for legacy purposes, and should not be used for new shader packs.
The y
component stores the “render type”, which is 1
for fluids (water, lava, etc) and -1
for all other blocks.
This attribute is only available for terrain. For other types of geometry, see entityid
and blockentityid
.