| 925 | { |
| 926 | const RwRGBA* col = RpMaterialGetColor(material); |
| 927 | sMaterialAlpha[sMaterialIdx++] = col->alpha; |
| 928 | |
| 929 | RwRGBA new_col = *col; |
| 930 | new_col.alpha = *(U8*)data; |
| 931 | |
| 932 | RpMaterialSetColor(material, &new_col); |
| 933 | |
| 934 | return material; |
| 935 | } |
| 936 | |
| 937 | // sda scheduling |
| 938 | void iModelSetMaterialAlpha(RpAtomic* model, U8 alpha) |
| 939 | { |
| 940 | RpGeometry* geom = RpAtomicGetGeometry(model); |
| 941 | |
| 942 | if (model != sLastMaterial) |