Commit graph

98 commits

Author SHA1 Message Date
yamamama
402b48342b Translucent affine functions
Up next is... column splitting. Dear god.
2026-03-05 23:38:46 -05:00
yamamama
e802de23df Move affine pixel lookups to R_DrawColumnAffinePixel
Turns out the secret sauce is a... recursive function
Colormap translations work, jury's still out on if translucency and brightmaps do
2026-03-05 23:38:46 -05:00
yamamama
05508fbb58 Fix spryscale alignment 2026-03-05 23:38:46 -05:00
yamamama
48ec1c977d Mostly fix vertical alignment
spryscale still has alignment issues
2026-03-05 23:38:46 -05:00
yamamama
f3287a8e38 Fixed alignment 2026-03-05 23:38:45 -05:00
yamamama
b86e3416e5 Draw area system works, need to fix alignment 2026-03-05 23:38:45 -05:00
yamamama
3c961033ca patrick_mouth 2026-03-05 23:38:45 -05:00
yamamama
1996395de8 Affine sprite drawing
Kudos to Generic
2026-03-05 23:38:45 -05:00
Alug
dd016e9e86 dont apply thing distance fade if viewplayer is spectating
fixes https://codeberg.org/NepDisk/blankart/issues/219

this probably should be rewritten to be camera based not player based instead
2026-02-26 19:52:13 +01:00
yamamama
d5ca5516de Split Classic and Alt. Invincibility
- It's what the people want, why bother to complain?
- Alt is now its own separate item titled the S-Monitor
- Several variables, macros, functions, and comments have been renamed to fit this change
2026-02-16 18:40:48 -05:00
NepDisk
75483f92e8 Kill off most of HWRAPI
Based on 25f1e504c9
2026-02-03 18:15:51 -05:00
NepDisk
300ffd94ea Also don't fade other players in freecam 2026-01-29 23:30:19 -05:00
NepDisk
b49a210e85 disable playerfade after crossing the line 2026-01-29 22:50:01 -05:00
NepDisk
2279180d5c Remove extra branch from R_GetThingFade 2026-01-24 19:50:49 -05:00
NepDisk
533d3b0ce6 Use a switch statement for this check 2026-01-24 16:08:53 -05:00
NepDisk
96e81b1807 Also apply player fading to followers 2026-01-24 15:26:55 -05:00
NepDisk
48fb58d4fb Port player fading from saturn and fix up RR GL renderer nonsense
Thanks so much to Alug for helping me fix this!
2026-01-24 15:07:45 -05:00
Alug
526a8390f5 fix few more implicit double/float conversions 2026-01-24 12:12:16 -05:00
Alug
2e7111d2c8 software: fix drawseg xrange item coord type being too small
both sprite and drawseg coords are int32
might fix some clipping issues
2026-01-24 12:04:12 -05:00
NepDisk
bd6b529b01 Global init
these were found by alug
2026-01-17 02:04:31 -05:00
GenericHeroGuy
3d942226a5 Update hashes, fix floating item spriteroll 2026-01-03 00:48:23 +01:00
NepDisk
7249273ca3 Revert "Kill Alt. Invin."
This reverts commit f414006e66.
2025-12-22 20:23:45 -05:00
yamamama
f414006e66 Kill Alt. Invin. 2025-12-22 20:05:13 -05:00
NepDisk
09bfc6506a Update shadow code
Thing brings over scale based on object height and interp amoung other things.
2025-12-07 20:37:07 -05:00
Zwip-Zwap Zapony
9a8b5b37bc Interpolate radius/height when scaling mobjs 2025-12-07 19:27:22 -05:00
NepDisk
c6167030f0 Show shadow patch cache message in software 2025-12-07 17:32:01 -05:00
NepDisk
6682f1df69 R_ProjectSprite: move fakeflat clipping before light maths
c81cd48552
2025-11-29 17:12:10 -05:00
NepDisk
9b99d2fd91 R_ProjectSprite: make sprite clipping work with sloped fake floors/ceilings
1849d5aade
2025-11-29 17:00:27 -05:00
NepDisk
5f6c7e2127 Fix oversight in software plane and sprite secbright handling
c54aaf1cdb
2025-11-19 19:19:32 -05:00
chromaticpipe
fdf2464ccf Configurable sector brightness in software 2025-11-16 13:54:10 -05:00
yamamama
edbcfe3af8 Read baked offsets from the interpolation target 2025-11-16 00:51:44 -05:00
GenericHeroGuy
911c454fa8 Fix graphics replacements, fix altitem flag not being synced 2025-11-13 16:04:45 +01:00
GenericHeroGuy
2546729b0c Custom item papersprites 2025-11-08 23:46:16 +01:00
NepDisk
d7ed03fab9 Remove M_Memcpy
Was quite literally a wrapper that did nothing.
2025-11-08 02:00:30 -05:00
NepDisk
df581ae69f Remove dead renderer code
based on 0eeacaf51e

remove
- broken viewborder code (if we really want it back for some reason, we should rather port RR´s fixed version of it)
- remove console clipping code for software (this was broken eiherway)
- remove hud message clearing stuff
- remove renderscreen and linesize variables (they just pointed to vid.screen and vid.widht)
2025-10-19 16:34:38 -04:00
Alug
a06aa1590f add allocation failure case in R_DrawMasked 2025-10-19 15:29:30 -04:00
Alug
bad7b9f980 remove unused hires variable from drawcolumndata 2025-10-19 20:40:51 +02:00
Alug
e8e72db32f fix columnbuf crashes
-our buffered uhh buffer needs to be only advanced per column not per screenwidth, caused the buffer to advance beyond its boundaries

-brightmap drawers get the DC_DIRECT flag to make sure they never attempt to draw buffered

removed tempbuffer alignment for now as reported by ubsan
2025-10-19 20:38:22 +02:00
NepDisk
659aa667eb Software Renderer: Implement Column buffering system
A port of https://github.com/Indev450/SRB2Kart-Saturn/pull/205, currently doesn't work
2025-10-19 12:12:33 -04:00
NepDisk
39e17bce4b remove ylookup, columnofs and topleft lookups
based on 2da89f1946
move screens array to vid struct
remove a bunch of unused stuff

this speeds up 4 player splitscreen ever so slighty
mostly just alot cleaner than the mess it was before
2025-10-18 13:04:39 -04:00
NepDisk
f7378caf66 Use more vars for multireads to vid.height and vid.width 2025-10-17 10:53:45 -04:00
NepDisk
ff467c676c port over most fixes from srb2classics clang-tidy pr
Based on 939354f483
2025-10-17 10:32:21 -04:00
NepDisk
d6d0377f6b inline R_ThingLightLevel
b3106d55d1
2025-10-13 11:10:04 -04:00
Alug
ca3ddf744d speed up masked sprites a bit
thx eternity engine!
2025-10-13 11:08:02 -04:00
Oni
0fad3c882b Merge branch 'increase-minz' into 'master'
Increase MINZ from 4 fracunits to 16

See merge request KartKrew/Kart!1122
2025-10-03 21:09:18 -04:00
NepDisk
9e648d859d Fix saltyhop being broken in software 2025-09-29 21:02:02 -04:00
NepDisk
f29ba22cc8 Make mobj spritex/yoffsets consistant with highresscale
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2722
2025-09-29 01:13:06 -04:00
Anonimus
93a4824549 Fix mis-scaling of rolling offsets 2025-09-12 20:21:57 -04:00
Anonimus
04dd587ef4 Add legacy drifting for RR characters
Imitates V1 drifts using baked offsets; perfectly netsafe
2025-09-12 15:01:45 -04:00
Anonimus
b702e17547 Rolling offsets, add interp to offset rotation code 2025-09-12 14:56:39 -04:00