Skip to content
Snippets Groups Projects

Add 'alpha' field to objects

Merged 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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading