MCPcopy Create free account
hub / github.com/PerroEngine/Perro / plane

Function plane

perro_source/core/perro_builtin_meshes/src/lib.rs:94–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94fn plane() -> (Vec<BuiltinMeshVertex>, Vec<u16>) {
95 (
96 vec![
97 BuiltinMeshVertex {
98 pos: [-0.5, 0.0, -0.5],
99 normal: [0.0, 1.0, 0.0],
100 uv: [0.0, 1.0],
101 },
102 BuiltinMeshVertex {
103 pos: [-0.5, 0.0, 0.5],
104 normal: [0.0, 1.0, 0.0],
105 uv: [0.0, 0.0],
106 },
107 BuiltinMeshVertex {
108 pos: [0.5, 0.0, 0.5],
109 normal: [0.0, 1.0, 0.0],
110 uv: [1.0, 0.0],
111 },
112 BuiltinMeshVertex {
113 pos: [0.5, 0.0, -0.5],
114 normal: [0.0, 1.0, 0.0],
115 uv: [1.0, 1.0],
116 },
117 ],
118 vec![0, 1, 2, 0, 2, 3],
119 )
120}
121
122fn cube() -> (Vec<BuiltinMeshVertex>, Vec<u16>) {
123 let mut vertices = Vec::new();

Callers 1

build_builtin_meshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected