using glb model forexplosion

This commit is contained in:
arthur.jamet
2021-06-09 12:48:20 +02:00
parent 54bc9ce5ac
commit 9c1190be30
4 changed files with 1 additions and 2084 deletions
Binary file not shown.
-12
View File
@@ -1,12 +0,0 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl Matériau
Ns 323.999994
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
File diff suppressed because it is too large Load Diff
@@ -38,7 +38,7 @@ namespace BBM
.addComponent<TimerComponent>(1s, [](WAL::Entity &explosion, WAL::Wal &wal) {
explosion.scheduleDeletion();
})
.addComponent<Drawable3DComponent, RAY3D::Model>("assets/bombs/explosion/explosion.obj",
.addComponent<Drawable3DComponent, RAY3D::Model>("assets/bombs/explosion/explosion.glb",
std::make_pair(MAP_DIFFUSE, "assets/bombs/explosion/explosion.png"));
// TODO do a raycast here to only remove health to entities that are not behind others.
health->takeDmg(1);