mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-02-16 17:35:39 +00:00
remove WIP code
This commit is contained in:
parent
ec3872d108
commit
9e9a549283
|
@ -1186,12 +1186,9 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data)
|
|||
else {
|
||||
if (ph.SpecularEnabled()) {
|
||||
shade = (ix & 0xFF) / 255.f; // Star wars is the only game to use unsigned fixed shaded values. It's also the only game to set the specular flag on these polys
|
||||
shade += m_vpAmbient;
|
||||
shade = std::min(shade, 1.0f);
|
||||
}
|
||||
else {
|
||||
shade = (((ix + 128) & 0xFF) / 255.f); // Step 2+ uses signed or unsigned values for lighting 0-255. Todo finish this logic
|
||||
shade = std::max(1 - m_vpAmbient, shade);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue