Template:ItemBox: Difference between revisions

Vergir (talk | contribs)
wearMask now takes no or ramp, for the two ways of dropping the wear mask without washing out the card (with help from vergir-bot LLM)
Vergir (talk | contribs)
wearMask also accepts soft (with help from vergir-bot LLM)
Line 24: Line 24:
     masked layer costs the GPU an extra render pass per card and the texture
     masked layer costs the GPU an extra render pass per card and the texture
     costs a backdrop read, so dropping them buys frames at the cost of detail.
     costs a backdrop read, so dropping them buys frames at the cost of detail.
     wearMask=no keeps the tier tint on the card stock but loses the worn edge;
     wearMask drops the mask from the wear tint three different ways:
     wearMask=ramp instead fades the tint in from the card's edges.
    no   - tint moves behind the artwork, so only the card stock is coloured
-->{{#vardefine:lite|{{#switch:{{{wearMask|}}}|no=itembox-flat-wear|ramp=itembox-ramp-wear}} {{#ifeq:{{{iconMask|}}}|no|itembox-flat-icon}} {{#ifeq:{{{texture|}}}|no|itembox-no-texture}}}}<!--
     ramp - tint stays on top, fading in from the card's edges
    soft - tint stays on top but uniform and lighter, with the name lifted clear
-->{{#vardefine:lite|{{#switch:{{{wearMask|}}}|no=itembox-flat-wear|ramp=itembox-ramp-wear|soft=itembox-soft-wear}} {{#ifeq:{{{iconMask|}}}|no|itembox-flat-icon}} {{#ifeq:{{{texture|}}}|no|itembox-no-texture}}}}<!--


     Links.
     Links.