File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -1249,10 +1249,15 @@ description = "Meshlet rendering for dense high-poly scenes (experimental)"
1249
1249
category = " 3D Rendering"
1250
1250
wasm = false
1251
1251
setup = [
1252
+ [
1253
+ " mkdir" ,
1254
+ " -p" ,
1255
+ " assets/external/models" ,
1256
+ ],
1252
1257
[
1253
1258
" curl" ,
1254
1259
" -o" ,
1255
- " assets/models/bunny.meshlet_mesh" ,
1260
+ " assets/external/ models/bunny.meshlet_mesh" ,
1256
1261
" https://raw.githubusercontent.com/JMS55/bevy_meshlet_asset/7a7c14138021f63904b584d5f7b73b695c7f4bbf/bunny.meshlet_mesh" ,
1257
1262
],
1258
1263
]
Original file line number Diff line number Diff line change
1
+ *
2
+ ! .gitignore
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ const ASSET_URL: &str =
20
20
"https://raw.githubusercontent.com/JMS55/bevy_meshlet_asset/7a7c14138021f63904b584d5f7b73b695c7f4bbf/bunny.meshlet_mesh" ;
21
21
22
22
fn main ( ) -> ExitCode {
23
- if !Path :: new ( "./assets/models/bunny.meshlet_mesh" ) . exists ( ) {
24
- eprintln ! ( "ERROR: Asset at path <bevy>/assets/models/bunny.meshlet_mesh is missing. Please download it from {ASSET_URL}" ) ;
23
+ if !Path :: new ( "./assets/external/ models/bunny.meshlet_mesh" ) . exists ( ) {
24
+ eprintln ! ( "ERROR: Asset at path <bevy>/assets/external/ models/bunny.meshlet_mesh is missing. Please download it from {ASSET_URL}" ) ;
25
25
return ExitCode :: FAILURE ;
26
26
}
27
27
@@ -80,7 +80,7 @@ fn setup(
80
80
// that has been converted to a [`bevy_pbr::meshlet::MeshletMesh`]
81
81
// using [`bevy_pbr::meshlet::MeshletMesh::from_mesh`], which is
82
82
// a function only available when the `meshlet_processor` cargo feature is enabled.
83
- let meshlet_mesh_handle = asset_server. load ( "models/bunny.meshlet_mesh" ) ;
83
+ let meshlet_mesh_handle = asset_server. load ( "external/ models/bunny.meshlet_mesh" ) ;
84
84
let debug_material = debug_materials. add ( MeshletDebugMaterial :: default ( ) ) ;
85
85
86
86
for x in -2 ..=2 {
You can’t perform that action at this time.
0 commit comments