mc_Entity
in vec2 mc_Entity;
Valid Programs: gbuffers_terrain.vsh
, gbuffers_water.vsh
, shadow.vsh
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.0
is sent.
When block.properties
isn’t present in the shader pack files, block IDs are assigned according to their pre-Minecraft 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.0
for fluids (water, lava, etc.) and -1.0
for all other blocks.
This attribute is only available for terrain. For other types of geometry, see entityid
and blockentityid
.