Commit graph

1642 commits

Author SHA1 Message Date
wehrlia
05d47fd06b hw_draw.c: Don't draw anything if alphalevel > 12 2024-08-21 16:59:04 -03:00
bitten2up
cfacbd91be Fix implicit casts of int expecting 4-byte width
This fixes the issue with certain compilers that have int set to
different sizes by either explicitly casting or setting templates
manually
2024-05-03 17:53:53 +00:00
toaster
03e37d1996 HWR_DrawFadeFill, HWR_DrawDiag: Adjust x and y with V_ snap flags
Fixes Challenge Board in opengl nongreen resolution
2024-04-26 16:06:13 +01:00
toaster
db9d9059b9 HWR_ProjectSprite: Fix messed up encore remap check (resolves #1224) 2024-04-14 20:27:22 +01:00
toaster
1765e270d1 V_DrawCustomFadeScreen fallback behaviour for Legacy GL 2024-04-11 22:12:21 +01:00
Eidolon
3c881597c9 gl: Treat PF_Masked as lower priority than other modes 2024-04-09 13:41:32 -05:00
Sally Coolatta
8f88c29387 SRB2 -> DRRR copyright in hardware folder 2024-04-05 10:00:33 -04:00
Oni
4d0b02413d Merge branch 'gl-no-resend-load' into 'master'
Don't draw OpenGL loading screen when resynching the gamestate

See merge request KartKrew/Kart!2209
2024-04-03 01:06:56 +00:00
James R
01135e1940 Force FOV to 90 during Podium and Title Screen 2024-04-01 19:07:37 -07:00
SteelT
75b7d4bc42 Don't draw OpenGL loading screen when resynching the gamestate 2024-04-01 18:04:19 -04:00
Oni
b8e37bff2f Merge branch 'fix-ogl-clip-rect' into 'master'
Legacy GL: fix cliprect in top/left (fix stretched Kart Krew text for intro)

See merge request KartKrew/Kart!2167
2024-03-29 19:43:04 +00:00
Oni
3694f1b2a2 Merge branch 'gl-no-titlemap-loading' into 'master'
Don't draw OpenGL loading screen on titlemap or credits attract demos

See merge request KartKrew/Kart!2166
2024-03-27 22:38:49 +00:00
James R
a43436d469 Legacy GL: fix cliprect in top/left
- UV were not adjusted correctly when clipped in the
  top/left.
- Code is more plainly written.
2024-03-25 17:34:56 -07:00
James R
8387b5e2cd Don't draw OpenGL loading screen for credits attract demos 2024-03-25 17:01:18 -07:00
SteelT
5b4b31a354 Don't draw OpenGL loading screen on titlemap
As it looks kinda jarring seeing it appear on the title screen for a split second.
2024-03-25 13:29:30 -04:00
James R
c0c1400f98 Legacy GL: sprites support demo skin silhouettes
Code more closely matches R_GetSpriteTranslation
2024-03-25 04:04:01 -07:00
James R
1be8e6a762 Legacy GL: models support demo skin silhouettes
Code more closely matches R_GetSpriteTranslation
2024-03-25 04:03:57 -07:00
James R
30b3199e28 Legacy GL: models support TC_BLINK 2024-03-25 04:03:27 -07:00
Lach
8d7cc11346 Typo correction: Lightning -> Lighting 2024-03-09 19:25:43 +11:00
Lach
dd52fb7620 Disable directional lighting on Ark Arrow models 2024-03-09 17:37:54 +11:00
toaster
7f0df71558 R_SkinAvailableEX
- Most R_SkinAvailable calls should be returning index into demo.skinlist (same numerical value as when demo was recorded), for demo sync
- A handful of general things permit exception for this
- Expose `replaynumskins` (calculated as `(demo.playback ? demo.numskins : numskins)`) to Lua
    - There's *always* more that can be done for this, but this is the minimum spec that can at least be somewhat stable
2024-03-05 13:21:38 -08:00
James R
c6bdf4eae3 Remove RANGECHECK, replace with devmode prints
- All code that would I_Error behind RANGECHECK, simply
  return
- Add debug prints under devmode render
2024-03-03 17:31:33 -08:00
Sal
16f021d7a5 Merge branch 'legacy-gl-is-unsupported' into 'master'
Bring back OpenGL "USE AT ROBOTNIK'S RISK" warning screen

See merge request KartKrew/Kart!1987
2024-03-03 01:31:50 +00:00
AJ Martinez
47a9cce133 Add shittysigns cheat 2024-03-02 04:27:41 -07:00
James R
1e44088373 Bring back OpenGL "USE AT ROBOTNIK'S RISK" warning screen 2024-03-01 18:38:16 -08:00
AJ Martinez
25ea0bf743 Exclude all "3D Geometry" sprites from sprite-clip hack 2024-02-14 04:14:28 -07:00
AJ Martinez
77617c9d31 GL: Don't pull papersprites towards camera 2024-02-13 18:19:52 -07:00
SteelT
488386db68 Check for SPR2_SIGN, SPR2_SIGL and SPR2_TALK as well 2024-01-22 22:40:38 -05:00
SteelT
626d39870b Don't allow model rendering on Ring Shooter face overlay 2024-01-22 22:19:13 -05:00
AJ Martinez
fb20f7b036 Merge branch 'opengl-brightmaps' into 'master'
OpenGL BRIGHTMAPs + sprite/model directional lighting

See merge request KartKrew/Kart!1485
2024-01-19 05:14:41 +00:00
James R
014cbdb3bb OpenGL: fix BRIGHTMAP sneaking into textures where it doesn't belong and creating artifacts 2024-01-17 18:21:46 -08:00
Sal
9382031337 OpenGL sprite+model directional light 2024-01-17 12:05:12 -08:00
Sally Coolatta
83e3401806 Don't use colormap tint on OGL brightmap 2024-01-17 12:05:12 -08:00
Sally Coolatta
d03eb9e9cd Add batching support to OGL brightmaps 2024-01-17 12:05:12 -08:00
James R.
e4a2461faf WIP - brightmaps in opengl, artifacts may occur, batching is super broken 2024-01-17 12:05:11 -08:00
Sally Coolatta
0f695e203f Use old faster luminance calc for HWR blends
Not accurate to Software's look but can't be assed to fuck around with legacy HWR to implement this as shader.
2024-01-17 13:27:32 -05:00
SteelT
7eb4d7fff1 Fix could not implicitly convert operands to arithmetic operator
idk why my shader compiler trips up on this but not others
2024-01-12 19:14:51 -05:00
AJ Martinez
3378a03d79 Offset sprites towards camera in Legacy GL 2024-01-12 16:41:04 -07:00
James R
dae4454055 Use untranslated texture for checking R_TextureCanRemap
- Handles animated textures correctly
2023-12-22 19:02:07 -08:00
James R
73e032573d TERRAIN: add 'remap' boolean, toggles ENCOREMAP/TWEAKMAP
- Software* + OpenGL support
- *Not supported: R_DrawColumnShadowed_8
  - This has something to do with walls and FOF lights.
    However, I don't see an easy code solution and I don't
    know how to even test this.
2023-12-22 19:02:06 -08:00
Eidolon
baad413cc3 Remove unneeded memcpy in HWR_CacheTextureAsFlat 2023-12-16 19:10:23 -06:00
Eidolon
5e8da61e5e Encore colormap textures-as-flats in GL 2023-12-16 17:37:40 -06:00
Eidolon
016cc1e95f Work around pointer-integer comparison in hw_cache 2023-12-15 11:19:34 -06:00
Eidolon
4654bb43bb Workaround encore crash in HWR_GetMappedPatch 2023-12-14 23:05:17 -06:00
Eidolon
9147aeaac7 Add encoremap to textures-as-flats 2023-12-14 23:03:42 -06:00
Eidolon
b2b03ecbb5 Fix GLENCORE memory leak, re-enable 2023-12-14 23:03:42 -06:00
VelocitOni
0081c5427f semi-bright increase & semi-bright spikes, no encore remap on spikes
Semi-bright is 192 instead of 128 now, an average of half-to-max brightness. We don't make really dark maps in RR, this makes sense
2023-11-17 22:27:39 -05:00
James R.
7b3010c93d Fix many instances of splitscreen view number if there are duplicate displayplayers
- Avoid iterating displayplayers to find view number and
  prefer R_GetViewNumber.
- Iterate over all matching displayplayers if necessary,
  instead of stopping at the first match.
2023-10-03 21:28:33 -07:00
James R.
afeba341c0 Remove translucenthud cvar, let V_HUDTRANS fade in like V_SLIDEIN
- V_HUDTRANS does not fade if combined with V_SLIDEIN
  (since sliding elements are not supposed to fade).
- If not V_SPLITSCREEN, uses most opaque fade value among
  splitscreen players (since Tally will fade back out for
  specific players).
2023-09-11 18:30:40 -07:00
James R
6c0b042eed Refactor cvar definitions completely, move everything to cvars.cpp
- No need to call CV_RegisterVar
- Cvar definitions live in only one file, easier to locate
- Organized into sections -- netvars, cheats, etc.
- Use builder pattern to initialize cvars
- Still need to extern if you want to read the cvar value
2023-08-25 17:22:40 -07:00