mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-02-16 17:35:39 +00:00
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:
parent
9aa3f13777
commit
b1bd877b82
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue