Skip to content

Texture Transparency Library

Olexandr edited this page Aug 23, 2026 · 11 revisions

Example

[TextureOverrideCharacterComponentPart]
hash = 0a1b2c3d
match_first_index = 0
match_index_count = 123

ib = ResourceCharacterComponentPartIB

; Regular part
DrawIndexed = 123, 0, 0

; Transparent part
; DrawIndexed = 321, 123, 0
$\TTL\_1 = 321
$\TTL\_2 = 123
run = CommandList\TTL\Draw

Required

  • run = CommandList\TTL\Draw
    • replaces DrawIndexed call, aka DrawIndexed = <indices count>, <indices offset>, <vertex offset>
  • $\TTL\_1 - indices count
  • $\TTL\_2 - indices offset

Optional

  • $\TTL\_3 - vertex offset
    • by default: 0
  • Resource\TTL\TransparencyTex - mask, determine what parts will be affected
  • $\TTL\alpha - determines how transparent shoudl be
    • by default: 0.5
    • valid value range: 0.0 -> 1.0
  • $\TTL\mask_channel - determines which channel of mask will be used
    • by default: 0 == Red channel
    • valid values are: 0,1,2,3 == R,G,B,A
  • $mask_invert - inverts color channel logic
    • 0 - default, 1 - inverted
    • default: 0 -> 255 increases transparency

Clone this wiki locally