Commit graph

216 commits

Author SHA1 Message Date
smallmodel
194d53569f
Added foliage AFunc 2023-08-28 00:51:43 +02:00
smallmodel
5e8b54be7e
Added new cvars from mohaas/mohaab 2023-08-27 23:24:06 +02:00
smallmodel
8dc91e413e
Commented out GLS_MULTITEXTURE_ENV since it was removed in mohaas 2023-08-27 23:18:48 +02:00
smallmodel
57cf513b39
Added $bumpmap and normalmap (from mohaab) 2023-08-27 23:18:32 +02:00
smallmodel
bb1326860b
Added normalmap fields 2023-08-27 23:18:21 +02:00
smallmodel
136838e40b
Fixed R_ColorShiftLightingBytes()
The lighting bytes must use tr.overbrightShift instead of tr.overbrightBits.
This makes the rendering more colorful
2023-08-27 22:18:09 +02:00
smallmodel
30d9483504
Decreased SHADERNUM and STATICMODEL shift values
When the number of shaders reached >1023, some surfaces started to be have random shaders started on them
The number of sorted shaders in a single game can now be up to 2048
2023-08-27 22:17:16 +02:00
smallmodel
05d3c50866
Stage fixes
Initialize animation phase to 0
Made CollapseMultitexture() work for more shaders
2023-08-27 22:15:08 +02:00
smallmodel
2785a72789
Fixed R_GatherLightSources crash 2023-08-27 17:01:53 +02:00
smallmodel
c1ee0332e3
Fixed parameter of Draw_StretchPic2 2023-08-16 00:45:26 +02:00
smallmodel
5343949254
Implemented Draw_StretchPic2 2023-08-15 23:52:22 +02:00
smallmodel
0fea47bb69
Added Draw_StretchPic2 2023-08-15 22:44:37 +02:00
smallmodel
078223c1b6
Centerprint when screenshotting 2023-07-30 11:40:33 +02:00
smallmodel
3fe7cbf725
Fixed vertex colors spam 2023-07-30 11:38:59 +02:00
smallmodel
ae4ea14b35
Fixed crash related to backEnd.currentEntity being null 2023-07-29 19:56:36 +02:00
smallmodel
15633626fe
Implemented R_GatherLightSources, R_CheckAddLightToList and R_InsertLightIntoList 2023-07-25 22:01:28 +02:00
smallmodel
fc9cf41557
Implemented R_GetLightingGridValue (better lighting) 2023-07-25 20:03:07 +02:00
smallmodel
527131e513
R_LoadLightGrid: Set light grid size depending on the map version 2023-07-25 20:02:56 +02:00
smallmodel
b79163f998
Fixed sqrt non-constant expression 2023-07-25 18:46:05 +02:00
smallmodel
121aaa164a
Implemented sphere light 2023-07-24 20:18:14 +02:00
smallmodel
2522559a04
Implemented R_SphereInLeafs 2023-07-24 20:14:23 +02:00
smallmodel
cf61471b2d
Added MAX_REAL_LIGHTS 2023-07-24 20:14:16 +02:00
smallmodel
9ebdc6a238
Replaced 2 with RDF_HUD 2023-07-24 20:13:43 +02:00
smallmodel
087d0047b3
Implemented AGEN_DIST_FADE, AGEN_ONE_MINUS_DIST_FADE, AGEN_TIKI_DIST_FADE, AGEN_ONE_MINUS_TIKI_DIST_FADE and AGEN_HEIGHT_FADE 2023-07-23 19:08:57 +02:00
smallmodel
d6952b8915
Implemented RB_CalcAlphaFromHeightFade 2023-07-23 18:43:35 +02:00
smallmodel
396e543b74
Removed tess.numVertexes check from RB_CheckOverflow 2023-07-23 18:21:09 +02:00
smallmodel
cd3e9bec03
Don't draw NODRAW surface 2023-07-23 15:07:20 +02:00
smallmodel
a6c7f7d4e0
Fixed animation map 2023-07-23 13:44:30 +02:00
smallmodel
c2cc57fa6b
Made model check case-insensitive (this fixes thing like recaching, and this fixes cgame crashing with m_spawnthing being null during model parsing) 2023-07-22 21:27:56 +02:00
smallmodel
783cefacf9
Fixed surfaces crash 2023-07-21 23:42:09 +02:00
smallmodel
832067d967
Fixed (a little bit) R_RealDlightPatch 2023-07-21 23:36:02 +02:00
smallmodel
d3bda17814
Fixed vertice steps 2023-07-21 20:30:44 +02:00
smallmodel
7106396b3e
Implemented R_RecursiveDlightPatch, R_RealDlightPatch and R_RealDlightTerrain 2023-07-20 23:59:52 +02:00
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