Skip to content

Add 'alpha' field to objects

MIDIMan requested to merge MIDIMan/SRB2:mobj-alpha into next

Adds a new object field that can be used to set an object's transparency without messing with frame flags. Range is 0 to FRACUNIT.

srb20004

The FF_TRANS frame flags and the alpha field can be used simultaneously, with both affecting each other. For example, an object with FF_TRANS50 and an alpha of FRACUNIT/2 will be roughly 25% opaque.

Example Lua: MobjAlphaTesting.lua

Merge request reports

Loading