mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 09:18:00 +03:00
Merge branch 'DiagonalCollisions' into NoShifts
This commit is contained in:
commit
c9724c46c4
3 changed files with 5 additions and 6 deletions
|
@ -189,7 +189,7 @@ typedef struct ROOM_INFO
|
|||
short xSize;
|
||||
short ySize;
|
||||
std::vector<FLOOR_INFO> floor;
|
||||
CVECTOR ambient;
|
||||
Vector3 ambient;
|
||||
std::vector<ROOM_LIGHT> lights;
|
||||
std::vector<MESH_INFO> mesh;
|
||||
short flippedRoom;
|
||||
|
|
|
@ -162,7 +162,7 @@ bool Renderer11::PrepareDataForTheRenderer()
|
|||
RendererRoom& r = m_rooms[i];
|
||||
r.RoomNumber = i;
|
||||
r.Room = room;
|
||||
r.AmbientLight = Vector4(room->ambient.b / 255.0f, room->ambient.g / 255.0f, room->ambient.r / 255.0f, 1.0f);
|
||||
r.AmbientLight = Vector4(room->ambient.x, room->ambient.y, room->ambient.z, 1.0f);
|
||||
r.LightsToDraw = vector<RendererLight*>(MAX_LIGHTS);
|
||||
r.Statics.resize(room->mesh.size());
|
||||
|
||||
|
|
|
@ -518,10 +518,9 @@ void ReadRooms()
|
|||
room.floor.push_back(floor);
|
||||
}
|
||||
|
||||
room.ambient.r = ReadInt8();
|
||||
room.ambient.g = ReadInt8();
|
||||
room.ambient.b = ReadInt8();
|
||||
ReadInt8();
|
||||
room.ambient.x = ReadFloat();
|
||||
room.ambient.y = ReadFloat();
|
||||
room.ambient.z = ReadFloat();
|
||||
|
||||
short numLights = ReadInt16();
|
||||
room.lights.reserve(numLights);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue