Commit graph

283 commits

Author SHA1 Message Date
smallmodel
ea7ee996a0
Make sure to zero out value at index 3 of static normal and xyz 2023-07-20 23:59:27 +02:00
smallmodel
a2808a0dbf
Fixed dlightmap being wrong 2023-07-20 23:58:33 +02:00
smallmodel
d0a8ac91a7
ParseFace: skip if surface shader has nodraw flags 2023-07-20 23:58:17 +02:00
smallmodel
58b88201dd
Using LIGHTMAP_SIZE instead of a constant value 2023-07-19 22:41:14 +02:00
smallmodel
eceef48267
Made lightmap_buffer access self-explanatory 2023-07-19 22:40:58 +02:00
smallmodel
f32d32f720
Made lightmap_buffer variable 1D 2023-07-19 22:40:40 +02:00
smallmodel
c269a4f034
Fixed missing semicolon 2023-07-19 20:59:04 +02:00
smallmodel
9189538410
Fixed LIGHTMAP_SIZE usage 2023-07-19 20:37:05 +02:00
smallmodel
00b028b381
Fixed texture env
Fixed wrong dlight image being used
2023-07-19 20:30:43 +02:00
smallmodel
7d309553cc
Fixed dlight byte 2023-07-19 20:30:22 +02:00
smallmodel
8c7dd5fad6
Set DLIGHT_SIZE to 32 instead of 16 2023-07-19 20:21:06 +02:00
smallmodel
a5ff63cd01
Fixed env values 2023-07-19 20:20:16 +02:00
smallmodel
5e55e72b5c
Set tess.dlightMap to 0 in RB_AddQuadStampExt
Clear dynamic light bits when surface is a sky or has nodlight set
2023-07-19 20:19:54 +02:00
smallmodel
01fbba74ef
Code cleanup 2023-07-19 00:40:25 +02:00
smallmodel
c7de9048e5
Fixed index mistake 2023-07-19 00:40:14 +02:00
smallmodel
6faded773c
Removed (int) useless cast 2023-07-19 00:39:54 +02:00
smallmodel
ca4e55fad8
Using LIGHTMAP_SIZE 2023-07-19 00:08:49 +02:00
smallmodel
bcf58f90d6
Implemented R_RealDlightFace and R_DlightSample 2023-07-18 22:31:55 +02:00
smallmodel
3f8db539af
Fixed lightmap vecs loading 2023-07-18 22:31:45 +02:00
smallmodel
e181e00807
Added R_FastDlightTerrain
implemented R_DlightTerrain
Fixed R_DlightSurface (this fixes issues with dynamic lighting)
2023-07-18 21:39:14 +02:00
smallmodel
22fdf36cc6
Added reallight functions, unimplemented 2023-07-18 21:19:16 +02:00
smallmodel
8489059ea8
Implemented R_TessellateMarkFragments, and R_AddMarkFragmentsToTerrain 2023-07-17 23:28:06 +02:00
smallmodel
2866bfdd04
Fix for DrawStretchRaw and const params 2023-07-17 20:44:09 +02:00
smallmodel
52f60e647d
Implemented R_MarkFragmentsForInlineModel and R_BoxSurfacesForBModel_r 2023-07-17 20:09:00 +02:00
smallmodel
b07784d884
Merge branch 'main' of github.com:openmoh/openmohaa 2023-07-17 00:25:21 +02:00
pryon
6891d297d2
Implement R_CountTikiLodTris (#48)
* Implement R_CountTikiLodTris

* Fix several bugs in R_DrawDebugNumber and a buffer overrun in R_DebugLine
2023-07-17 00:24:56 +02:00
smallmodel
69c2ea4614
Using font system from SH/BT to support different code pages 2023-07-17 00:24:04 +02:00
smallmodel
70463db037
Fixed normals being corrupted/uninitialized and causing weird artifacts, such as strange water lines in some maps 2023-07-15 21:21:27 +02:00
smallmodel
2015fbda4d
Initialize fragment iIndex to 0 2023-07-15 20:50:58 +02:00
smallmodel
4e4e82c874
Fixed bad fog 2023-07-09 20:12:45 +02:00
smallmodel
0c57ec27e6
Added nodepthwrite, nodepthmask, nocolorwrite and nocolormask
Removed FixRenderCommandList from SortNewShader
Fixed shader.sort being wrongly SS_BLEND0 (this fixes issues when seeing through translucent textures like water)
2023-07-09 19:40:12 +02:00
smallmodel
bc249844bf
Added GLS_COLOR_NOMASK 2023-07-09 19:39:00 +02:00
smallmodel
7da3432b8c
Implemented RE_RefreshShaderNoMip 2023-07-09 18:15:21 +02:00
smallmodel
e8ecd1ca9e
Implemented R_RefreshImageFile 2023-07-09 18:15:04 +02:00
smallmodel
ec21e2e4d0
Added flags parameter for DrawTris 2023-07-09 17:48:31 +02:00
smallmodel
83d8fcb0e6
Reimplemented Autosprite2Deform, this fixes trees sprite rendering 2023-07-09 16:36:35 +02:00
smallmodel
dc2b99fb58
Fixed fog extrafrustums above 1 (caused issues with culling) 2023-07-09 15:37:24 +02:00
smallmodel
0f05f8356f
Support r_showcull debugging, as well as r_showstaticlod and r_showstaticbboxes 2023-07-09 15:14:11 +02:00
smallmodel
34a426adf1
Implemented R_DrawDebugNumber 2023-07-09 15:13:39 +02:00
smallmodel
f4790a0e50
Added R_CountTikiLodTris (unimplemented) 2023-07-09 15:13:24 +02:00
smallmodel
e943b95025
Implemented R_DrawDebugLines and R_DrawDebugStrings 2023-07-09 14:38:22 +02:00
smallmodel
981610b13f
Declared R_DrawFloatingString 2023-07-09 14:37:57 +02:00
smallmodel
50098b3aed
Implemented R_DebugRotatedBBox 2023-07-09 14:37:43 +02:00
smallmodel
e3f1705065
Implemented RB_CalcFlapVertexes and RB_CalcEnvironmentTexCoords2 2023-07-09 13:47:42 +02:00
smallmodel
25d526ade5
Moved "flap" above "normal" 2023-07-09 13:47:05 +02:00
OM
b5dd79287a Fixed colors segmentation fault (because it was grabbing 4 bytes instead of 3 thanks to unsigned int*) 2023-07-02 21:22:15 +02:00
pryon
ca468b9407
Implement RB_SurfaceMarkFragment (#47)
Looks good
Btw it won't be possible to make a common function, because like others `RB_Surface*`, both functions use a different struct (even if some of the fields have the same name between structures)
2023-07-01 20:51:14 +02: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
5b97245dd1 Reworked CMakeLists 2023-06-17 01:44:38 +02:00
OM
59ce9cb349 Added **TCGEN_ENVIRONMENT_MAPPED2** and **TCGEN_SUN_REFLECTION** (unimplemented) 2023-05-30 01:08:34 +02:00