Ski champ for some reason is passing denormalised numbers for the modelscale. This is causing a NaN in our shader killing the lighting for these models, so we simply skip these, since they are essentially zero anyway. Thanks to Harry for finding this bug :)

This commit is contained in:
Ian Curtis 2017-08-01 23:48:53 +00:00
parent 9aa3f13777
commit b1bd877b82

View file

@ -466,7 +466,7 @@ void CNew3D::DescendCullingNode(UINT32 addr)
if (!m_offset) { // Step 1.5+
float modelScale = *(float *)&node[1];
if (modelScale) {
if (modelScale > std::numeric_limits<float>::min()) {
m_nodeAttribs.currentModelScale = modelScale;
}