Template:ItemBox: Difference between revisionsGive feedback
Add optional wearMask, iconMask and texture parameters so callers rendering many cards can drop per-card mask passes and the backdrop read (with help from vergir-bot LLM) |
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) |
||
| 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 | wearMask=no keeps the tier tint on the card stock but loses the worn edge; | ||
-->{{#vardefine:lite|{{# | wearMask=ramp instead fades the tint in from the card's edges. | ||
-->{{#vardefine:lite|{{#switch:{{{wearMask|}}}|no=itembox-flat-wear|ramp=itembox-ramp-wear}} {{#ifeq:{{{iconMask|}}}|no|itembox-flat-icon}} {{#ifeq:{{{texture|}}}|no|itembox-no-texture}}}}<!-- | |||
Links. | Links. | ||