mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
initial chunk render caching
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
public struct Mesh<VertexType: Vertex, IndexType: UnsignedInteger> {
|
||||
public struct Mesh<VertexType: Vertex, IndexType: UnsignedInteger>: Equatable {
|
||||
public let vertices: [VertexType]
|
||||
public let indices: [IndexType]
|
||||
}
|
||||
@ -14,3 +14,10 @@ public struct VertexPositionNormalTexcoord: Vertex {
|
||||
var normal: SIMD3<Float>
|
||||
var texCoord: SIMD2<Float>
|
||||
}
|
||||
|
||||
public struct VertexPositionNormalColorTexcoord: Vertex {
|
||||
var position: SIMD3<Float>
|
||||
var normal: SIMD3<Float>
|
||||
var color: SIMD4<Float16>
|
||||
var texCoord: SIMD2<Float>
|
||||
}
|
||||
|
Reference in New Issue
Block a user