Shaped Glass

Shaped Glass is a new item in Risk of Rain 2. Upon pickup, it doubles your base damage and halves your total health. This item is unique in that all of its effects stack exponentially, meaning that all effects are applied on top of the effects of any other Shaped Glass' the player has in their inventory. For example, if the player has 100 health and 50 damage, picking up one shaped glass will change those values to 50 health and 100 damage. With another, it would apply the same stat boosts and debuffs to the existing boosts and debuffs, giving the player a maximum of 25 health and 200 damage. The player can keep grabbing shaped glass' until they reach a maximum of 127. Upon collecting their 128th glass, the player will be instantly killed due to the limits of the floating point system.

Being killed with Shaped Glass equipped results in a unique death animation. When dead, the game plays an animation where the player's survivor disappears into shards of glass, with the death message "You have shattered into innumerable pieces."

Math
The damage is determined by the formula

The maximum health is determined by the formula