smallmodel
8b5074b6ac
Fix Dot/Texcoords calc
...
This caused some shaders such as headlights beam on the opeltruck being weirdly rendered
2024-08-27 01:07:51 +02:00
smallmodel
7023184892
Fix subdivisions endianness
...
See #332
2024-08-26 00:45:21 +02:00
smallmodel
5134aed352
Mark the functions as inline to optimize function calls
2024-08-24 17:35:02 +02:00
smallmodel
6506577787
Add shader flags with tcMod rotate
...
This fixes vehicle wheels rotating forever. Wheels now rotate consistently depending on the vehicle speed
2024-08-24 00:35:39 +02:00
smallmodel
679bfb90ea
Fix accessing 8th leaves element before finishing the loop
...
This caused the 8th element to be taken into account when enabling optimizations with GCC (invalid pointer to the leaf)
2024-08-13 20:41:53 +02:00
smallmodel
9150d1cc44
Fix lighting grid being incorrect
...
It fixes #321 where impacts like bullets would have an incorrect color (like red, green...)
2024-08-08 20:31:19 +02:00
smallmodel
e19b72647e
Use qglGenTextures to guarantee the uniqueness of the texture number
2024-08-08 19:07:09 +02:00
smallmodel
d809975882
Use Q_snprintf because itoa is non-standard
2024-08-07 22:27:02 +02:00
smallmodel
b463c905cf
Free up unused images
...
This fixes #93 where the game would hit `MAX_DRAWIMAGES` after loading a few maps
2024-08-07 21:11:16 +02:00
smallmodel
7f8a0c9931
Fix the image texture number not properly matching the image
...
It caused issues with textures being messed up sometimes, after multiple maps were loaded
2024-08-07 21:10:04 +02:00
smallmodel
7b59f07181
Allow precaching image manually with r_precacheimages
2024-08-07 20:01:38 +02:00
smallmodel
d22dea5e8e
Count renderer memory
2024-08-07 19:57:09 +02:00
smallmodel
1d60405eaa
Fix heap corruption when taking screenshots with non-standard resolutions like 1366x768
2024-08-05 19:48:23 +02:00
smallmodel
1d4fe357c8
Fix ShaderForShaderNum
incorrectly swapping the shader num
2024-07-29 21:39:24 +02:00
smallmodel
c7900b6048
Fix static model index endianness
2024-07-29 21:13:18 +02:00
smallmodel
6e3f959684
Fix header version incorrectly parsed
2024-07-29 20:32:21 +02:00
smallmodel
eb9a3b1bbf
R_UnpackTerraPatch: no need to get little-endian values as values are already swapped by R_SwapTerraPatch
...
See #332
2024-07-29 19:04:29 +02:00
smallmodel
391450f090
Swap bsp header on big-endian architectures
...
See #332 where the lump's offset and length are incorrect on big-endian architectures
2024-07-29 19:03:26 +02:00
smallmodel
60e4fa7005
Handle shader picmip and fix shaders not rendered properly with force32bit (alpha channel was ignored)
2024-07-28 19:25:24 +02:00
smallmodel
c13f9dc9a8
Increase MAX_IMAGE_ANIMATIONS
...
This fixes emitters not playing correctly
2024-07-28 19:12:08 +02:00
smallmodel
f213943b2d
Fix RB_SetGL2D
2024-07-28 19:02:06 +02:00
smallmodel
5159a534bb
Fix animated images playing at the same time for all entities
2024-07-28 19:01:34 +02:00
smallmodel
89eae68318
Fixed parameter mistake
...
(Why didn't you tell anything about that, MSVC?)
2024-07-20 22:09:03 +02:00
smallmodel
fc0a995c66
Added code to save image with custom resolution to a file
2024-07-20 16:04:04 +02:00
smallmodel
d6571820fe
Fixes g_pVert/g_pTris being freed even when they are NULL
2024-07-02 18:46:27 +02:00
smallmodel
87baa69d7c
Fixes incorrect lighting color normalization
...
This fixes #314 where mark colors would have their values warped back to 0, making holes blue
2024-07-01 00:20:33 +02:00
smallmodel
d709dda87a
Use shader's distance range instead of the portal range
2024-06-30 23:57:32 +02:00
smallmodel
d9dc34f06d
Checks for AGEN_TIKI_DIST_FADE
and AGEN_ONE_MINUS_TIKI_DIST_FADE
for static models
2024-06-21 22:02:59 +02:00
smallmodel
907ff36018
Fixes r_showstaticbboxes
freezing the game
2024-06-21 21:49:13 +02:00
smallmodel
64626a767c
Fixes entities not being rendered after number 1023
...
This fixes #310 where some static models would not be rendered, making it look like there are invisible walls.
2024-06-21 21:48:55 +02:00
smallmodel
a7df73073d
Adds a condition to check if static model poly can be rendered
2024-06-21 20:54:14 +02:00
smallmodel
ca4b1ebdee
Don't render terrain when refdef.render_terrain
is set to false
2024-06-11 23:37:45 +02:00
smallmodel
42c20ac008
Portal sky mustn't cause entity surface to be r-eadded
...
This fixes an issue where an entity would get re-added with a really lower LOD. Fixes #307
2024-06-11 23:35:18 +02:00
smallmodel
4d231fbc50
Call LocalChannel
instead of GetLocalFromGlobal
2024-06-11 00:05:28 +02:00
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