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

Function quad

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

Source from the content-addressed store, hash-verified

64}
65
66fn quad() -> (Vec<BuiltinMeshVertex>, Vec<u16>) {
67 (
68 vec![
69 BuiltinMeshVertex {
70 pos: [-0.5, -0.5, 0.0],
71 normal: [0.0, 0.0, 1.0],
72 uv: [0.0, 1.0],
73 },
74 BuiltinMeshVertex {
75 pos: [0.5, -0.5, 0.0],
76 normal: [0.0, 0.0, 1.0],
77 uv: [1.0, 1.0],
78 },
79 BuiltinMeshVertex {
80 pos: [0.5, 0.5, 0.0],
81 normal: [0.0, 0.0, 1.0],
82 uv: [1.0, 0.0],
83 },
84 BuiltinMeshVertex {
85 pos: [-0.5, 0.5, 0.0],
86 normal: [0.0, 0.0, 1.0],
87 uv: [0.0, 0.0],
88 },
89 ],
90 vec![0, 1, 2, 0, 2, 3],
91 )
92}
93
94fn plane() -> (Vec<BuiltinMeshVertex>, Vec<u16>) {
95 (

Callers 1

build_builtin_meshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected