alex/beta-minecraft-rust
Minecraft Beta 1.7.3 Rewrite
27 changed files 1 added 0 deleted 26 modified
Files 27⌄
M
crates/client/shaders/terrain.slang
+293 −31ABFull file
91+
Varyings vertexMain(uniform DrawPush push, uint vertexIndex : SV_VulkanVertexID, uint slot : SV_VulkanInstanceID)98+
uint3 fixed = (uint3(shape[0] & 0xFFFF, shape[0] >> 16, shape[1] & 0xFFFF) + (block << 11)) & 0xFFFF;99+
float3 position = float3(fixed) / 2048.0 - 8.0 + sectionOrigin(section, push.eyeBlock, push.eyeFraction);