()
| 92 | } |
| 93 | |
| 94 | fn 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 | |
| 122 | fn cube() -> (Vec<BuiltinMeshVertex>, Vec<u16>) { |
| 123 | let mut vertices = Vec::new(); |
no outgoing calls
no test coverage detected