Commit graph

283 commits

Author SHA1 Message Date
smallmodel
28c6e3b398
Properly swap terrain patches for rendering on big-endian architectures 2024-06-08 12:48:36 +02:00
smallmodel
74ccb03e54
Reduced compilation warnings 2024-06-07 20:34:13 +02:00
smallmodel
50264c4968
Make sure to cast the float number to int when using it in the format specifier 2024-06-07 20:25:47 +02:00
smallmodel
be222b64a1
Fixed one tiny instruction mistake that could cause issues with dynamic lights on terrains 2024-06-07 20:20:19 +02:00
smallmodel
1d887b4655
Fixed leaf light being incorrectly reassigned 2024-06-05 21:21:35 +02:00
smallmodel
31ea951357
Fixed SkelMorphGetXyz implementation 2024-06-05 00:43:08 +02:00
smallmodel
77de0b78ba
First test if the entity has morphs before proceeding to loop through vertices 2024-06-04 20:20:40 +02:00
smallmodel
0181fbcfa0
Use the weight's bone index if there is no morph 2024-06-04 19:52:32 +02:00
smallmodel
e1f2433c36
Fixed sky portal rendering
This fixes #260
2024-06-03 21:36:58 +02:00
smallmodel
c753dcafd8
SurfIsOffscreen: use raw surface values rather than tess values 2024-06-03 21:36:35 +02:00
smallmodel
85c8769512
Fixed incorrect usage of the grid lighting
This fixes some entities being invisible when `r_fastentlight` is set to 1, due to the alpha color being 0 (cast from int to char for each color value). Fixes #299
2024-05-20 13:11:48 +02:00
smallmodel
c3abbd9014
Added assertion checks 2024-05-20 13:10:12 +02:00
smallmodel
56dce21538
Fixed an invalid access to lighting sphere leaves
It was causing crashes on some occasions
2024-04-22 23:39:07 +02:00
smallmodel
6fdc756b59
Set terrain rendering settings to max detail by default 2024-03-17 22:38:44 +01:00
smallmodel
5fa1b98d34
Fixed vert Z coord not matching average height
This caused issue where verts would never be merged. This should fix #232
2024-03-03 17:52:29 +01:00
smallmodel
bebe117487
Formatted document 2024-03-03 17:34:01 +01:00
smallmodel
26495fe0f8
Refactored R_TerraTriNeighbor 2024-03-03 17:33:35 +01:00
smallmodel
4c4ac9f90e
Added more assertions for consistency 2024-03-03 16:24:09 +01:00
smallmodel
b77af7fced
Implemented R_GetLightingForDecal 2024-03-01 22:59:06 +01:00
smallmodel
52c89f1de3
Fixed comparison operator 2024-03-01 22:31:33 +01:00
smallmodel
593982d586
Added assertion test 2024-02-23 23:53:18 +01:00
smallmodel
51ba1e2951
Properly use identity / identitylighting when cgen isn't explicitly specified 2024-02-12 23:47:07 +01:00
smallmodel
0b16d599d5
Added UseCount for image_t 2024-02-12 22:11:15 +01:00
smallmodel
3b2223ad22
image validity check 2024-02-12 22:11:00 +01:00
smallmodel
186583148a
Use proper values for GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T 2024-02-12 22:10:00 +01:00
smallmodel
5475624b7f
Added DDS support + handle compressed textures correctly 2024-02-12 20:19:33 +01:00
smallmodel
d5be69239a
Added GL 1.3 functions 2024-02-12 20:18:52 +01:00
smallmodel
304645d720
Ignore CGEN_BAD stages 2024-02-12 19:50:32 +01:00
smallmodel
0591152f99
Added ifCvar / ifCvarnot support 2024-02-12 17:18:51 +01:00
smallmodel
5aa70d91f3
Fixed patch subdivisions 2024-02-07 23:44:59 +01:00
smallmodel
c5dcf96717
Implemented all RB_Calc functions 2024-02-06 22:54:48 +01:00
smallmodel
84791c42bc
Implemented RB_CalcSunReflectionTexCoords 2024-02-06 22:23:26 +01:00
smallmodel
e032a1a627
Implemented all tcMod values 2024-02-06 22:16:20 +01:00
smallmodel
1f2b5dcc86
Added and fixed all missing tcMod parameters 2024-02-06 20:07:39 +01:00
smallmodel
8bd30ffb22
Added rate tmod variable 2024-02-06 19:59:14 +01:00
smallmodel
fbf67fccc3
Added TMOD enum values from AA 1.11 2024-02-06 19:55:21 +01:00
smallmodel
b848ee0fac
Added rotateStart and rotateCoef for rotate tcMod 2024-02-06 19:48:55 +01:00
smallmodel
23a866f6f8
Implemented R_GetInlineModelBounds 2024-01-27 20:53:17 +01:00
smallmodel
4487113c58
Fixed dlight image name 2024-01-01 23:52:38 +01:00
smallmodel
13612d3de9
r_fastdlights is not a cheat-protected cvar 2024-01-01 22:52:08 +01:00
smallmodel
9c8ca98e68
Added anisotropic filtering 2024-01-01 14:25:02 +01:00
smallmodel
072ba0a38f
Fixed fullbright light not setting the colors correctly 2023-12-31 22:15:19 +01:00
smallmodel
0cd217b484
Fixed RB_Sphere_SetupGlobals() setting up sphere in leafs when there is no world loaded 2023-12-31 21:53:13 +01:00
smallmodel
4ae091be4b
Added a slash at the end of the scripts folder name 2023-12-29 19:56:34 +01:00
smallmodel
d62242d653
use PRINT_WARNING instead of PRINT_DEVELOPER when an image couldn't be found 2023-12-28 17:25:51 +01:00
smallmodel
ea1b411cc0
Forward-declare skelHeaderGame_s and skelAnimFrame_s to omit some warnings 2023-11-14 01:02:27 +01:00
smallmodel
786d72575e
Fixed buggy sky rendering 2023-11-06 19:32:49 +01:00
smallmodel
6d9a794aaf
Fixed assertion failed when numskins equals MAX_TIKI_SHADER 2023-11-06 19:17:03 +01:00
smallmodel
faf351a496
SurfIsOffScreen must only process faces + removed assertion 2023-10-01 11:36:54 +02:00
smallmodel
b3371b2d63
Fixed static models collapse array being wrong
This would cause static models to disappear
2023-09-09 17:56:47 +02:00