Skip to content

Commit

Permalink
Heretic: Reworked y-offets for translucency
Browse files Browse the repository at this point in the history
Using FRACUNIT and doing a 1px correction for HROD_F1.
  • Loading branch information
Noseey committed Jan 2, 2025
1 parent b974d88 commit 94f29f4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/heretic/r_things.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ const char *spritename;

// [crispy] Y-Offsets for various sprite frames used for weapon fire translucency
spriteoffset_t spriteoffsets[NUMSOFFSETS] = {
{SPR_GWND_F1, 0x0},
{SPR_GWND_F2, 0x80000},
{SPR_GWND_F3, 0x40000},
{SPR_BLSR_F1, 0x0},
{SPR_BLSR_F2, 0x10000},
{SPR_BLSR_F3, 0x40000},
{SPR_HROD_F1, 0x60000},
{SPR_HROD_F2_5, 0x0},
{SPR_HROD_F6, 0x40000},
{SPR_PHNX_F1, 0x0},
{SPR_PHNX_F2, 0xC0000},
{SPR_PHNX_F3, 0x60000}
{SPR_GWND_F1, 0 * FRACUNIT},
{SPR_GWND_F2, 8 * FRACUNIT},
{SPR_GWND_F3, 4 * FRACUNIT},
{SPR_BLSR_F1, 0 * FRACUNIT},
{SPR_BLSR_F2, 1 * FRACUNIT},
{SPR_BLSR_F3, 4 * FRACUNIT},
{SPR_HROD_F1, 5 * FRACUNIT},
{SPR_HROD_F2_5, 0 * FRACUNIT},
{SPR_HROD_F6, 4 * FRACUNIT},
{SPR_PHNX_F1, 0 * FRACUNIT},
{SPR_PHNX_F2, 12 * FRACUNIT},
{SPR_PHNX_F3, 6 * FRACUNIT}
};

/*
Expand Down

0 comments on commit 94f29f4

Please sign in to comment.