mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-29 17:15:40 +00:00
fix microtexture colours
This commit is contained in:
parent
89e75a9803
commit
f355e2d062
|
@ -1089,12 +1089,6 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data)
|
||||||
|
|
||||||
p.faceColour[3] = ph.Transparency() / 255.f;
|
p.faceColour[3] = ph.Transparency() / 255.f;
|
||||||
|
|
||||||
if (ph.MicroTexture()) {
|
|
||||||
p.faceColour[0] = 1.0f;
|
|
||||||
p.faceColour[1] = 1.0f;
|
|
||||||
p.faceColour[2] = 1.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
// if we have flat shading, we can't re-use normals from shared vertices
|
// if we have flat shading, we can't re-use normals from shared vertices
|
||||||
for (i = 0; i < p.number && !ph.SmoothShading(); i++) {
|
for (i = 0; i < p.number && !ph.SmoothShading(); i++) {
|
||||||
p.v[i].normal[0] = p.faceNormal[0];
|
p.v[i].normal[0] = p.faceNormal[0];
|
||||||
|
|
Loading…
Reference in a new issue