pack vertex data

This commit is contained in:
2024-04-27 20:45:11 -04:00
parent 4c8b52a3ff
commit 28047ebdb5
3 changed files with 151 additions and 3 deletions

View File

@@ -94,6 +94,8 @@ pub mod prelude {
return chunk.temperature[pos.to_chunk_local_index()];
}
}
pub const ATTRIBUTE_PACKED_VERTEX_DATA: MeshVertexAttribute =
MeshVertexAttribute::new("PackedVertexData", 988540817, VertexFormat::Uint32);
pub const ATTRIBUTE_TEXTURE_INDEX: MeshVertexAttribute =
MeshVertexAttribute::new("TextureIndex", 988540917, VertexFormat::Uint32);