Added a low poly brick model and changed their ingame scale

This commit is contained in:
tleety
2015-09-15 18:20:26 +02:00
parent 4891a4d939
commit 5e39ac3629
5 changed files with 15384 additions and 15324 deletions
+6 -6
View File
@@ -1,14 +1,14 @@
# Blender MTL File: 'Brick.blend' # Blender MTL File: 'None'
# Material Count: 1 # Material Count: 1
newmtl Brick newmtl Material
Ns 17.647059 Ns 96.078431
Ka 0.000000 0.000000 0.000000 Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.154050 0.039202 Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000 Ks 0.500000 0.500000 0.500000
Ni 1.000000 Ni 1.000000
d 1.000000 d 1.000000
illum 1 illum 2
map_Kd Brick_d.png map_Kd Brick_d.png
map_Bump Brick_n.png map_Bump Brick_n.png
map_Ks Brick_s.png map_Ks Brick_s.png
File diff suppressed because it is too large Load Diff
+14
View File
@@ -0,0 +1,14 @@
# Blender MTL File: 'Brick.blend'
# Material Count: 1
newmtl Brick
Ns 17.647059
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.154050 0.039202
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd Brick_d.png
map_Bump Brick_n.png
map_Ks Brick_s.png
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -55,7 +55,7 @@ void dd::Systems::LevelSystem::CreateBrick(int row, int line, glm::vec2 spacesBe
model->ModelFile = "Models/Test/Brick/Brick.obj"; model->ModelFile = "Models/Test/Brick/Brick.obj";
float x = spaceToEdge + line * spacesBetweenBricks.x; float x = spaceToEdge + line * spacesBetweenBricks.x;
float y = spaceToEdge + row * spacesBetweenBricks.y; float y = spaceToEdge + row * spacesBetweenBricks.y;
transform->Scale = glm::vec3(1, 0.4, 0.2); transform->Scale = glm::vec3(1.6, 0.2, 0.5);
transform->Position = glm::vec3(x - 7, y + 1, -10.f); transform->Position = glm::vec3(x - 7, y + 1, -10.f);
//sprite->Color = glm::vec4(1.f, 1.f, 1.f, 1.f); //sprite->Color = glm::vec4(1.f, 1.f, 1.f, 1.f);
m_World->CommitEntity(brick); m_World->CommitEntity(brick);