mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 18:51:16 +00:00
70.93 % on LEGO1
This commit is contained in:
parent
c59574254e
commit
07d9c902e5
@ -123,9 +123,12 @@ LegoResult LegoLOD::Read(Tgl::Renderer* p_renderer, LegoTextureContainer* p_text
|
|||||||
LegoU32(*polyIndices)[3] = NULL;
|
LegoU32(*polyIndices)[3] = NULL;
|
||||||
LegoU32(*textureIndices)[3] = NULL;
|
LegoU32(*textureIndices)[3] = NULL;
|
||||||
LegoTextureInfo* textureInfo = NULL;
|
LegoTextureInfo* textureInfo = NULL;
|
||||||
|
|
||||||
LegoU32 i, indexBackwards, indexForwards, tempNumVertsAndNormals;
|
|
||||||
LegoU8 local4c = 0; // BETA10 only, only written, never read
|
LegoU8 local4c = 0; // BETA10 only, only written, never read
|
||||||
|
LegoU32 numPolys, numVertices, numTextureIndices, meshIndex;
|
||||||
|
LegoU32 i, indexBackwards, indexForwards, tempNumVertsAndNormals;
|
||||||
|
LegoFloat red, green, blue, alpha;
|
||||||
|
IDirect3DRMMesh* mesh2;
|
||||||
|
D3DRMGROUPINDEX index;
|
||||||
|
|
||||||
unsigned char paletteEntries[256];
|
unsigned char paletteEntries[256];
|
||||||
|
|
||||||
@ -211,7 +214,6 @@ LegoResult LegoLOD::Read(Tgl::Renderer* p_renderer, LegoTextureContainer* p_text
|
|||||||
|
|
||||||
for (i = 0; i < m_numMeshes; i++) {
|
for (i = 0; i < m_numMeshes; i++) {
|
||||||
local4c = 0;
|
local4c = 0;
|
||||||
LegoU32 numPolys, numVertices, numTextureIndices, meshIndex;
|
|
||||||
const LegoChar *textureName, *materialName;
|
const LegoChar *textureName, *materialName;
|
||||||
Tgl::ShadingModel shadingModel;
|
Tgl::ShadingModel shadingModel;
|
||||||
|
|
||||||
@ -299,6 +301,7 @@ LegoResult LegoLOD::Read(Tgl::Renderer* p_renderer, LegoTextureContainer* p_text
|
|||||||
polyIndices,
|
polyIndices,
|
||||||
textureIndices,
|
textureIndices,
|
||||||
shadingModel
|
shadingModel
|
||||||
|
// LINE: LEGO1 0x100aa88b
|
||||||
);
|
);
|
||||||
|
|
||||||
if (m_melems[meshIndex].m_tglMesh == NULL) {
|
if (m_melems[meshIndex].m_tglMesh == NULL) {
|
||||||
@ -343,10 +346,11 @@ LegoResult LegoLOD::Read(Tgl::Renderer* p_renderer, LegoTextureContainer* p_text
|
|||||||
m_melems[meshIndex].m_textured = TRUE;
|
m_melems[meshIndex].m_textured = TRUE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LegoFloat red = 1.0F;
|
red = 1.0F;
|
||||||
LegoFloat green = 0.0F;
|
// LINE: BETA10 0x1018db2d
|
||||||
LegoFloat blue = 1.0F;
|
green = 0.0F;
|
||||||
LegoFloat alpha = 0.0F;
|
blue = 1.0F;
|
||||||
|
alpha = 0.0F;
|
||||||
|
|
||||||
if (mesh->GetUseAlias()) {
|
if (mesh->GetUseAlias()) {
|
||||||
LegoROI::GetRGBAColor(materialName, red, green, blue, alpha);
|
LegoROI::GetRGBAColor(materialName, red, green, blue, alpha);
|
||||||
@ -366,10 +370,8 @@ LegoResult LegoLOD::Read(Tgl::Renderer* p_renderer, LegoTextureContainer* p_text
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mesh->GetUnknown0x0d() > 0) {
|
if (mesh->GetUnknown0x0d() > 0) {
|
||||||
IDirect3DRMMesh* mesh;
|
GetMeshData(mesh2, index, m_melems[meshIndex].m_tglMesh);
|
||||||
D3DRMGROUPINDEX index;
|
mesh2->SetGroupMaterial(index, g_unk0x101013d4);
|
||||||
GetMeshData(mesh, index, m_melems[meshIndex].m_tglMesh);
|
|
||||||
mesh->SetGroupMaterial(index, g_unk0x101013d4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mesh != NULL) {
|
if (mesh != NULL) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user