Commit graph

24 commits

Author SHA1 Message Date
smallmodel
4493b2c42e
Prevent integer overflow when interpolating verts 2024-11-24 15:58:18 +01:00
smallmodel
eb938c872d
Make varnode endian-independant
This fixes terrain rendering incorrectly on big-endian architectures by using bit operation. The `flags` field in the union always matched the first byte of the variance float value instead of the least significant byte
2024-11-18 19:44:00 +01:00
smallmodel
a72da9b73e
Fix incorrect terrain height for poly
This caused decals to float in the air when they were placed on the terrain
2024-09-15 23:49:42 +02:00
smallmodel
a136cccbe1
Implement R_CraterTerrain 2024-09-12 21:02:04 +02:00
smallmodel
c0d37c504a
Fix infinite loop in R_TerrainHeightForPoly 2024-09-04 20:46:10 +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
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
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
593982d586
Added assertion test 2024-02-23 23:53:18 +01:00
pryon
adc6a6579f
Implement R_TerrainHeightForPoly (#45)
* Implement R_TerrainHeightForPoly

* Add back the original assert messages using the && va trick
2023-06-25 00:09:35 +02:00
OM
7b79877516 made renderer (original quake III) work with SDL 2023-05-27 22:23:03 +02:00
OM
c4aca55b1a Minor fixes 2023-05-22 02:38:43 +02:00
OM
7b9835a118 Corrected terrain lightmap 2023-05-20 19:31:51 +02:00
OM
d6fd337a07 Terrain crash fix 2023-05-20 14:57:14 +02:00
OM
1207b46937 Fixed terrains vertices being wrongly rendered 2023-05-18 17:15:52 +02:00
OM
a1d581df39 Introducing full LOD terrain support 2023-05-18 14:41:37 +02:00
OM
2b6bd8c8d2 Fixed dynamic light issues 2023-05-15 14:21:16 +02:00
OM
4824f8a3b3 MOHAA BSP implementation 2023-05-09 20:49:04 +02:00
L
53c1c94dac Using Quake 3 renderer 2023-05-08 14:33:37 +02:00