TODO: once again, fix after RW implementation
| 973 | } |
| 974 | if (sMaterialFlags & 0x1) |
| 975 | { |
| 976 | RwRGBA newColor = *RpMaterialGetColor(material); |
| 977 | newColor.alpha = sMaterialAlpha[sMaterialIdx]; |
| 978 | RpMaterialSetColor(material, &newColor); |
| 979 | } |
| 980 | } |
| 981 | |
| 982 | if (sMaterialFlags & 0x4) |
| 983 | { |
| 984 | RpMaterialSetTexture(material, sMaterialTexture[sMaterialIdx]); |
| 985 | } |
| 986 | |
| 987 | sMaterialIdx++; |
| 988 | return material; |
| 989 | } |
| 990 | |
| 991 | void iModelResetMaterial(RpAtomic* model) |
| 992 | { |
| 993 | RpAtomic* material = sLastMaterial; |
| 994 | RpGeometry* geom; |
| 995 | |
| 996 | if (model != material) |
| 997 | { |
| 998 | sMaterialFlags = 0; |
no outgoing calls
no test coverage detected