mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-03-06 14:27:44 +00:00
Legacy engine: expanded color index to 12 bits from 11. Does this affect any games?
This commit is contained in:
parent
5c1a240565
commit
1a908dd414
|
@ -511,8 +511,8 @@ void CLegacy3D::InsertVertex(ModelCache *Cache, const Vertex *V, const Poly *P,
|
|||
GLfloat b = 1.0;
|
||||
if ((P->header[1]&2) == 0)
|
||||
{
|
||||
//size_t sensorColorIdx = ((P->header[4]>>20)&0x7FF);
|
||||
size_t colorIdx = ((P->header[4]>>8)&0x7FF);
|
||||
//size_t sensorColorIdx = ((P->header[4]>>20)&0xFFF);
|
||||
size_t colorIdx = ((P->header[4]>>8)&0xFFF);
|
||||
b = (GLfloat) (polyRAM[m_colorTableAddr+colorIdx]&0xFF) * (1.0f/255.0f);
|
||||
g = (GLfloat) ((polyRAM[m_colorTableAddr+colorIdx]>>8)&0xFF) * (1.0f/255.0f);
|
||||
r = (GLfloat) ((polyRAM[m_colorTableAddr+colorIdx]>>16)&0xFF) * (1.0f/255.0f);
|
||||
|
|
Loading…
Reference in a new issue