I was researching how to apply a mask texture for apparels. I was able to give mask to its on-ground graphic and worn graphic with
and
respectively. However, the icon in the Gear Tab would not apply the mask because it renders with essentially only the thing from graphicPath
Therefore when the Gear tab applies color from for example graphicData.color or CompColorable.color, it will paint over the whole thing.
Is this intended?
Code Select
<graphicData>
<shaderType>CutoutComplex</shaderType>
</graphicData>
and
Code Select
<apparel>
<useWornGraphicMask>true</useWornGraphicMask>
</apparel>
respectively. However, the icon in the Gear Tab would not apply the mask because it renders with essentially only the thing from graphicPath
Code Select
// in Verse.Widget.ThingIcon
resolvedIcon = thing.Graphic.ExtractInnerGraphicFor(thing).MatAt(thing.def.defaultPlacingRot, null).mainTexture; // mainTexture doesn't include mask
Therefore when the Gear tab applies color from for example graphicData.color or CompColorable.color, it will paint over the whole thing.
Is this intended?