Compare commits

..

6 commits

Author SHA1 Message Date
yuni 954807fa59 give Luna a third AR avatar. Because she a haxx0r 2024-10-11 07:18:24 +02:00
yuni 72a81701e0 AR: add armor 2024-10-11 05:35:44 +02:00
yuni 811254e885 fix bra 2024-10-11 03:32:44 +02:00
yuni e9c4c38a22 suit_v2: change neck from black to white 2024-10-11 03:31:15 +02:00
yuni cd7aef8f37 AR: add bra 2024-10-11 03:30:40 +02:00
yuni 7f2568be0f AR: add hoodies 2024-10-11 02:33:08 +02:00
19 changed files with 4428 additions and 3118 deletions

BIN
assets/models/ar_armor.bin Normal file

Binary file not shown.

606
assets/models/ar_armor.gltf Normal file
View file

@ -0,0 +1,606 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.2.60",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0,
1,
2,
3,
4,
5
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube",
"rotation":[
0.25769245624542236,
0,
0,
0.9662269949913025
],
"scale":[
0.46655866503715515,
0.5073187947273254,
0.03966343775391579
],
"translation":[
0,
0.12805390357971191,
-0.07347531616687775
]
},
{
"mesh":1,
"name":"Cube.002",
"rotation":[
0.2845572531223297,
0,
0,
0.9586590528488159
],
"scale":[
0.7689772248268127,
1,
0.5661381483078003
],
"translation":[
0.000524396076798439,
0.38582590222358704,
-0.22804374992847443
]
},
{
"mesh":2,
"name":"Cube.003",
"rotation":[
-0.012826149351894855,
0.09296344220638275,
-0.10715894401073456,
0.9898032546043396
],
"scale":[
0.5503033399581909,
0.06932250410318375,
0.5503033399581909
],
"translation":[
-0.03494972735643387,
0.09079104661941528,
0.2756086587905884
]
},
{
"mesh":3,
"name":"Cube.004",
"rotation":[
-0.012826149351894855,
0.09296344220638275,
-0.10715894401073456,
0.9898032546043396
],
"scale":[
0.5503033399581909,
0.06932250410318375,
0.5503033399581909
],
"translation":[
-0.03178083524107933,
-0.5902829170227051,
-0.02679361030459404
]
},
{
"mesh":4,
"name":"Cube.006",
"rotation":[
0.8040924668312073,
0.04474826529622078,
-0.36057648062705994,
0.47055017948150635
],
"scale":[
0.07814773917198181,
0.18444180488586426,
0.056227050721645355
],
"translation":[
-0.22010107338428497,
0.7045252919197083,
-0.28960752487182617
]
},
{
"mesh":5,
"name":"Cube.007",
"rotation":[
0.7425503134727478,
0.17952792346477509,
-0.25490692257881165,
0.5927994847297668
],
"scale":[
0.07814773917198181,
0.18444180488586426,
0.056227050721645355
],
"translation":[
-0.2668684124946594,
0.5790677070617676,
-0.3047392666339874
]
}
],
"materials":[
{
"doubleSided":true,
"name":"Armor",
"pbrMetallicRoughness":{
"baseColorTexture":{
"index":0
},
"metallicFactor":0.7539682388305664,
"roughnessFactor":0.1428571492433548
}
}
],
"meshes":[
{
"name":"Mesh",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
},
{
"name":"Mesh",
"primitives":[
{
"attributes":{
"POSITION":4,
"NORMAL":5,
"TEXCOORD_0":6
},
"indices":7,
"material":0
}
]
},
{
"name":"Mesh",
"primitives":[
{
"attributes":{
"POSITION":8,
"NORMAL":9,
"TEXCOORD_0":10
},
"indices":11,
"material":0
}
]
},
{
"name":"Mesh",
"primitives":[
{
"attributes":{
"POSITION":12,
"NORMAL":13,
"TEXCOORD_0":14
},
"indices":15,
"material":0
}
]
},
{
"name":"Cube.007",
"primitives":[
{
"attributes":{
"POSITION":16,
"NORMAL":17,
"TEXCOORD_0":18
},
"indices":19,
"material":0
}
]
},
{
"name":"Cube.007",
"primitives":[
{
"attributes":{
"POSITION":20,
"NORMAL":21,
"TEXCOORD_0":22
},
"indices":19,
"material":0
}
]
}
],
"textures":[
{
"sampler":0,
"source":0
}
],
"images":[
{
"mimeType":"image/jpeg",
"name":"metal",
"uri":"textures/metal.jpg"
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":628,
"max":[
0.39057183265686035,
0.46193966269493103,
2.447216033935547
],
"min":[
-0.39057183265686035,
-0.7029863595962524,
-2.0742721557617188
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":628,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":628,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":3264,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":1158,
"max":[
0.33404797315597534,
0.419356107711792,
0.758513867855072
],
"min":[
-0.33404797315597534,
-0.29581165313720703,
-0.2609223425388336
],
"type":"VEC3"
},
{
"bufferView":5,
"componentType":5126,
"count":1158,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":1158,
"type":"VEC2"
},
{
"bufferView":7,
"componentType":5123,
"count":6144,
"type":"SCALAR"
},
{
"bufferView":8,
"componentType":5126,
"count":974,
"max":[
0.7869077324867249,
9.922114372253418,
-0.03668821603059769
],
"min":[
-0.7620211839675903,
2.062697410583496,
-0.8380033373832703
],
"type":"VEC3"
},
{
"bufferView":9,
"componentType":5126,
"count":974,
"type":"VEC3"
},
{
"bufferView":10,
"componentType":5126,
"count":974,
"type":"VEC2"
},
{
"bufferView":11,
"componentType":5123,
"count":4704,
"type":"SCALAR"
},
{
"bufferView":12,
"componentType":5126,
"count":1250,
"max":[
0.6221739053726196,
14.399925231933594,
-0.043152984231710434
],
"min":[
-0.7038323879241943,
4.562234401702881,
-0.8317314386367798
],
"type":"VEC3"
},
{
"bufferView":13,
"componentType":5126,
"count":1250,
"type":"VEC3"
},
{
"bufferView":14,
"componentType":5126,
"count":1250,
"type":"VEC2"
},
{
"bufferView":15,
"componentType":5123,
"count":6240,
"type":"SCALAR"
},
{
"bufferView":16,
"componentType":5126,
"count":572,
"max":[
6.174130439758301,
1.725797414779663,
0.7335540056228638
],
"min":[
-0.42674580216407776,
-1.166419506072998,
-5.6789445877075195
],
"type":"VEC3"
},
{
"bufferView":17,
"componentType":5126,
"count":572,
"type":"VEC3"
},
{
"bufferView":18,
"componentType":5126,
"count":572,
"type":"VEC2"
},
{
"bufferView":19,
"componentType":5123,
"count":3072,
"type":"SCALAR"
},
{
"bufferView":20,
"componentType":5126,
"count":572,
"max":[
8.145783424377441,
2.122046947479248,
0.7335540056228638
],
"min":[
-0.42674580216407776,
-1.166419506072998,
-2.2426273822784424
],
"type":"VEC3"
},
{
"bufferView":21,
"componentType":5126,
"count":572,
"type":"VEC3"
},
{
"bufferView":22,
"componentType":5126,
"count":572,
"type":"VEC2"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":7536,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":7536,
"byteOffset":7536,
"target":34962
},
{
"buffer":0,
"byteLength":5024,
"byteOffset":15072,
"target":34962
},
{
"buffer":0,
"byteLength":6528,
"byteOffset":20096,
"target":34963
},
{
"buffer":0,
"byteLength":13896,
"byteOffset":26624,
"target":34962
},
{
"buffer":0,
"byteLength":13896,
"byteOffset":40520,
"target":34962
},
{
"buffer":0,
"byteLength":9264,
"byteOffset":54416,
"target":34962
},
{
"buffer":0,
"byteLength":12288,
"byteOffset":63680,
"target":34963
},
{
"buffer":0,
"byteLength":11688,
"byteOffset":75968,
"target":34962
},
{
"buffer":0,
"byteLength":11688,
"byteOffset":87656,
"target":34962
},
{
"buffer":0,
"byteLength":7792,
"byteOffset":99344,
"target":34962
},
{
"buffer":0,
"byteLength":9408,
"byteOffset":107136,
"target":34963
},
{
"buffer":0,
"byteLength":15000,
"byteOffset":116544,
"target":34962
},
{
"buffer":0,
"byteLength":15000,
"byteOffset":131544,
"target":34962
},
{
"buffer":0,
"byteLength":10000,
"byteOffset":146544,
"target":34962
},
{
"buffer":0,
"byteLength":12480,
"byteOffset":156544,
"target":34963
},
{
"buffer":0,
"byteLength":6864,
"byteOffset":169024,
"target":34962
},
{
"buffer":0,
"byteLength":6864,
"byteOffset":175888,
"target":34962
},
{
"buffer":0,
"byteLength":4576,
"byteOffset":182752,
"target":34962
},
{
"buffer":0,
"byteLength":6144,
"byteOffset":187328,
"target":34963
},
{
"buffer":0,
"byteLength":6864,
"byteOffset":193472,
"target":34962
},
{
"buffer":0,
"byteLength":6864,
"byteOffset":200336,
"target":34962
},
{
"buffer":0,
"byteLength":4576,
"byteOffset":207200,
"target":34962
}
],
"samplers":[
{
"magFilter":9729,
"minFilter":9987
}
],
"buffers":[
{
"byteLength":211776,
"uri":"ar_armor.bin"
}
]
}

BIN
assets/models/ar_bra.bin Normal file

Binary file not shown.

361
assets/models/ar_bra.gltf Normal file
View file

@ -0,0 +1,361 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.2.60",
"version":"2.0"
},
"extensionsUsed":[
"KHR_materials_clearcoat"
],
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0,
1,
2
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube",
"rotation":[
0.3221524953842163,
0,
0,
0.9466878175735474
],
"scale":[
0.21445758640766144,
0.16819974780082703,
0.12596197426319122
],
"translation":[
0,
0.4095976650714874,
-0.02326078712940216
]
},
{
"mesh":1,
"name":"Cube.001",
"rotation":[
0.0796840488910675,
-0.04253033548593521,
0.12269081920385361,
0.9883262515068054
],
"scale":[
0.02726696990430355,
0.014289390295743942,
0.10526275634765625
],
"translation":[
0.03264089673757553,
0.6200276017189026,
0.0923658087849617
]
},
{
"mesh":2,
"name":"Torus",
"rotation":[
-0.5483814477920532,
0,
0,
0.8362283110618591
],
"scale":[
0.02308047190308571,
0.02308047190308571,
0.02308047190308571
],
"translation":[
0,
0.46213942766189575,
0.1213059052824974
]
}
],
"materials":[
{
"doubleSided":true,
"name":"Denim",
"pbrMetallicRoughness":{
"baseColorTexture":{
"index":0
},
"metallicFactor":0.5158730149269104,
"roughnessFactor":0.841269850730896
}
},
{
"doubleSided":true,
"extensions":{
"KHR_materials_clearcoat":{
"clearcoatFactor":0.8174603581428528
}
},
"name":"Glass",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.4082057476043701,
0.6817594766616821,
1,
1
],
"metallicFactor":0.7467532753944397,
"roughnessFactor":0.2922077775001526
}
}
],
"meshes":[
{
"name":"Mesh",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
},
{
"name":"Cube.002",
"primitives":[
{
"attributes":{
"POSITION":4,
"NORMAL":5,
"TEXCOORD_0":6
},
"indices":7,
"material":0
}
]
},
{
"name":"Mesh",
"primitives":[
{
"attributes":{
"POSITION":8,
"NORMAL":9,
"TEXCOORD_0":10
},
"indices":11,
"material":1
}
]
}
],
"textures":[
{
"sampler":0,
"source":0
}
],
"images":[
{
"mimeType":"image/jpeg",
"name":"denim",
"uri":"textures/denim.jpg"
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":4479,
"max":[
0.9440339207649231,
0.7542769312858582,
1.6505589485168457
],
"min":[
-0.9440339207649231,
-1.0000001192092896,
-1.0103389024734497
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":4479,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":4479,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":24576,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":724,
"max":[
3.9384336471557617,
1.069407343864441,
0.8153983950614929
],
"min":[
-7.350427150726318,
-11.600038528442383,
-1.1095283031463623
],
"type":"VEC3"
},
{
"bufferView":5,
"componentType":5126,
"count":724,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":724,
"type":"VEC2"
},
{
"bufferView":7,
"componentType":5123,
"count":3456,
"type":"SCALAR"
},
{
"bufferView":8,
"componentType":5126,
"count":975,
"max":[
6.169865131378174,
0.10589449852705002,
1.1446871757507324
],
"min":[
-6.169864654541016,
-0.939924955368042,
-1.0986886024475098
],
"type":"VEC3"
},
{
"bufferView":9,
"componentType":5126,
"count":975,
"type":"VEC3"
},
{
"bufferView":10,
"componentType":5126,
"count":975,
"type":"VEC2"
},
{
"bufferView":11,
"componentType":5123,
"count":4608,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":53748,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":53748,
"byteOffset":53748,
"target":34962
},
{
"buffer":0,
"byteLength":35832,
"byteOffset":107496,
"target":34962
},
{
"buffer":0,
"byteLength":49152,
"byteOffset":143328,
"target":34963
},
{
"buffer":0,
"byteLength":8688,
"byteOffset":192480,
"target":34962
},
{
"buffer":0,
"byteLength":8688,
"byteOffset":201168,
"target":34962
},
{
"buffer":0,
"byteLength":5792,
"byteOffset":209856,
"target":34962
},
{
"buffer":0,
"byteLength":6912,
"byteOffset":215648,
"target":34963
},
{
"buffer":0,
"byteLength":11700,
"byteOffset":222560,
"target":34962
},
{
"buffer":0,
"byteLength":11700,
"byteOffset":234260,
"target":34962
},
{
"buffer":0,
"byteLength":7800,
"byteOffset":245960,
"target":34962
},
{
"buffer":0,
"byteLength":9216,
"byteOffset":253760,
"target":34963
}
],
"samplers":[
{
"magFilter":9729,
"minFilter":9987
}
],
"buffers":[
{
"byteLength":262976,
"uri":"ar_bra.bin"
}
]
}

BIN
assets/models/ar_hoodie.bin Normal file

Binary file not shown.

View file

@ -0,0 +1,153 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.2.60",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube",
"rotation":[
0.26658907532691956,
0,
0,
0.963810384273529
],
"scale":[
0.29374659061431885,
0.29374659061431885,
0.15712739527225494
],
"translation":[
0.004196017049252987,
0.3071044087409973,
-0.12259834259748459
]
}
],
"materials":[
{
"doubleSided":true,
"name":"Denim",
"pbrMetallicRoughness":{
"baseColorTexture":{
"index":0
},
"metallicFactor":0.5158730149269104,
"roughnessFactor":0.841269850730896
}
}
],
"meshes":[
{
"name":"Mesh",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"textures":[
{
"sampler":0,
"source":0
}
],
"images":[
{
"mimeType":"image/jpeg",
"name":"denim",
"uri":"textures/denim.jpg"
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":1756,
"max":[
1.1458876132965088,
1.3344918489456177,
1.3661909103393555
],
"min":[
-1.1843910217285156,
-1.4032416343688965,
-2.3344597816467285
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":1756,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":1756,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":8448,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":21072,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":21072,
"byteOffset":21072,
"target":34962
},
{
"buffer":0,
"byteLength":14048,
"byteOffset":42144,
"target":34962
},
{
"buffer":0,
"byteLength":16896,
"byteOffset":56192,
"target":34963
}
],
"samplers":[
{
"magFilter":9729,
"minFilter":9987
}
],
"buffers":[
{
"byteLength":73088,
"uri":"ar_hoodie.bin"
}
]
}

Binary file not shown.

View file

@ -0,0 +1,153 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.2.60",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube",
"rotation":[
0.26658907532691956,
0,
0,
0.963810384273529
],
"scale":[
0.29374659061431885,
0.29374659061431885,
0.15712739527225494
],
"translation":[
0.004196017049252987,
0.3071044087409973,
-0.12259834259748459
]
}
],
"materials":[
{
"doubleSided":true,
"name":"Denim",
"pbrMetallicRoughness":{
"baseColorTexture":{
"index":0
},
"metallicFactor":0.5158730149269104,
"roughnessFactor":0.841269850730896
}
}
],
"meshes":[
{
"name":"Mesh",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"textures":[
{
"sampler":0,
"source":0
}
],
"images":[
{
"mimeType":"image/jpeg",
"name":"denim",
"uri":"textures/denim.jpg"
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":1952,
"max":[
1.2060117721557617,
2.471405267715454,
1.5074689388275146
],
"min":[
-1.22959566116333,
-1.5390512943267822,
-1.6484941244125366
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":1952,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":1952,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":9408,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":23424,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":23424,
"byteOffset":23424,
"target":34962
},
{
"buffer":0,
"byteLength":15616,
"byteOffset":46848,
"target":34962
},
{
"buffer":0,
"byteLength":18816,
"byteOffset":62464,
"target":34963
}
],
"samplers":[
{
"magFilter":9729,
"minFilter":9987
}
],
"buffers":[
{
"byteLength":81280,
"uri":"ar_hoodie_up.bin"
}
]
}

Binary file not shown.

File diff suppressed because it is too large Load diff

BIN
src/blender/ar_armor.blend Normal file

Binary file not shown.

BIN
src/blender/ar_bra.blend Normal file

Binary file not shown.

BIN
src/blender/ar_hoodie.blend Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -126,6 +126,7 @@ struct ParserState {
light_color: Option<Color>,
ar_model: Option<String>,
ar_model2: Option<String>,
ar_model3: Option<String>,
show_only_in_map_at_distance: Option<(f64, String)>,
}
impl Default for ParserState {
@ -188,6 +189,7 @@ impl Default for ParserState {
light_color: None,
ar_model: None,
ar_model2: None,
ar_model3: None,
show_only_in_map_at_distance: None,
}
}
@ -690,6 +692,9 @@ pub fn load_defs(mut ew_spawn: EventWriter<SpawnEvent>) {
["armodel_secondary", asset_name] => {
state.ar_model2 = Some(asset_name.to_string());
}
["armodel_tertiary", asset_name] => {
state.ar_model3 = Some(asset_name.to_string());
}
["targeted", "yes"] => {
state.is_targeted_on_startup = true;
}
@ -1205,6 +1210,23 @@ fn spawn_entities(
load_asset(ar_asset_name, &mut entitycmd, &*asset_server);
}
if let Some(ar_asset_name) = &state.ar_model3 {
let mut entitycmd = commands.spawn((
hud::AugmentedRealityOverlay {
owner: actor_entity,
scale: 1.0,
},
world::DespawnOnPlayerDeath,
SpatialBundle {
visibility: Visibility::Hidden,
..default()
},
NotShadowCaster,
NotShadowReceiver,
));
load_asset(ar_asset_name, &mut entitycmd, &*asset_server);
}
if state.is_point_of_interest || state.is_moon || state.is_planet {
let mut entitycmd = commands.spawn((
hud::PointOfInterestMarker(actor_entity),

View file

@ -334,6 +334,7 @@ actor 700 -100 -1100 suitv2
chatid Luna
armodel suit_ar_skirt
armodel_secondary suit_ar_nekomimi
armodel_tertiary suit_ar_bra
angularmomentum 0 0 0
wants maxrotation 0
wants maxvelocity none
@ -375,6 +376,7 @@ actor -55e3 31e3 0 suitv2
name "Yuni"
chatid Yuni
armodel suit_ar_skirt
armodel_secondary suit_ar_hoodie
rotationx 180
rotationy 90
wants matchvelocitywith thebe
@ -410,6 +412,7 @@ actor 13200 300 -3000 hollow_asteroid
name "River"
chatid River
armodel suit_ar_skirt
armodel_secondary suit_ar_bra
rotationy 54
rotationx -90
pronoun she

View file

@ -46,9 +46,13 @@ pub const DASHBOARD_DEF: &[(Dashboard, &str)] = &[
pub const PLAYER_AR_AVATARS: &[(Avatar, &str, f32, &str)] = &[
(Avatar::None, "", 1.0, "No Avatar"),
(Avatar::ChefHat, "suit_ar_chefhat", 1.0, "Chef Hat"),
(Avatar::Hoodie, "suit_ar_hoodie", 1.0, "Hoodie"),
(Avatar::HoodieUp, "suit_ar_hoodie_up", 1.0, "Hoodie Up"),
(Avatar::Skirt, "suit_ar_skirt", 1.0, "Skirt"),
(Avatar::Nekomimi, "suit_ar_nekomimi", 1.0, "Cat Ears"),
(Avatar::Wings, "suit_ar_wings", 1.0, "Wings"),
(Avatar::Bra, "suit_ar_bra", 1.0, "Bra"),
(Avatar::Armor, "suit_ar_armor", 1.0, "Armor"),
(Avatar::Asteroid, "metis", 1.3, "Asteroid"),
];
@ -179,9 +183,13 @@ pub enum Avatar {
None,
ChefHat,
Nekomimi,
Hoodie,
HoodieUp,
Skirt,
Wings,
Asteroid,
Bra,
Armor,
}
pub enum LogLevel {

View file

@ -29,8 +29,12 @@ impl Plugin for LoadPlugin {
pub fn asset_name_to_path(name: &str) -> &'static str {
match name {
"suitv2" => "models/suit_v2.gltf#Scene0",
"suit_ar_armor" => "models/ar_armor.gltf#Scene0",
"suit_ar_bra" => "models/ar_bra.gltf#Scene0",
"suit_ar_chefhat" => "models/suit_v2/ar_chefhat.glb#Scene0",
"suit_ar_nekomimi" => "models/ar_nekomimi.gltf#Scene0",
"suit_ar_hoodie" => "models/ar_hoodie.gltf#Scene0",
"suit_ar_hoodie_up" => "models/ar_hoodie_up.gltf#Scene0",
"suit_ar_skirt" => "models/ar_skirt.gltf#Scene0",
"suit_ar_wings" => "models/suit_v2/ar_wings.glb#Scene0",
"sus" => "models/sus.glb#Scene0",