remove WIP code

This commit is contained in:
Ian Curtis 2017-06-25 20:09:45 +00:00
parent ec3872d108
commit 9e9a549283

View file

@ -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);
}
}