-Fixed objects of variable width and length from being positioned incorrectly on the map.

-Renamed LocationKey to ModelKey and added another field so that cached values are correct for objects using the same models.
-Implemented shading to the scene.
-Implement full SceneTilePaint with variable colors and textures.
-Implement textures while rendering SceneTileModel
-Enable maps to be loaded by their region id instead of just their coordinates.
-Implement full object model creation (replacement colors, replacement textures, resizing, translation)
-Added two new methods to ModelDefinition used in object model creation.
This commit is contained in:
Qatell
2018-07-08 10:35:06 +08:00
committed by Adam
parent 86754bccbe
commit 49ace3f7c7
6 changed files with 361 additions and 125 deletions

View File

@@ -601,4 +601,15 @@ public class ModelDefinition
}
}
public void move(int xOffset, int yOffset, int zOffset)
{
for (int i = 0; i < this.vertexCount; i++)
{
this.vertexPositionsX[i] += xOffset;
this.vertexPositionsY[i] += yOffset;
this.vertexPositionsZ[i] += zOffset;
}
this.reset();
}
}