smallmodel
|
ccca958ec5
|
Get the grid1 on each iteration in case it has been reallocated
This fixes a very rare crash that would occur when loading a world map
|
2024-11-11 19:48:49 +01:00 |
|
smallmodel
|
772aad79d7
|
Disable cubemap-based lighting due to rendering artifacts/bugs occurring
|
2024-11-07 19:37:12 +01:00 |
|
smallmodel
|
9f728580b6
|
Fix Y normal for the output color from cube being mistakenly used twice
This improves the overall lighting from cubemap
|
2024-11-05 20:31:56 +01:00 |
|
smallmodel
|
4c057faf73
|
Add a newline for warnings
|
2024-11-02 21:51:19 +01:00 |
|
smallmodel
|
4d27a6daa3
|
Fix incorrect vert dist
|
2024-10-28 20:55:03 +01:00 |
|
smallmodel
|
991c8869d1
|
Properly draw circles
|
2024-10-23 20:10:34 +02:00 |
|
smallmodel
|
aef9dc1704
|
Add feature to show static models culling with r_showcull
|
2024-10-23 20:07:17 +02:00 |
|
smallmodel
|
b641a1040c
|
Fix incorrect cull point height (should be squared)
|
2024-10-22 22:25:59 +02:00 |
|
smallmodel
|
d2ed2f5e95
|
Correct the gamma with the proper destination resolution when resampling
|
2024-10-21 21:37:08 +02:00 |
|
smallmodel
|
863a6293e7
|
Don't draw the lensflare in UI
|
2024-10-20 19:12:42 +02:00 |
|
smallmodel
|
fd426926e9
|
Set all alpha color channel in the current static model to prevent vertices from hiding randomly
|
2024-10-19 21:54:08 +02:00 |
|
smallmodel
|
3a68ca7f4b
|
Handle static shader data and entity surface values for when deforming vertexes
|
2024-10-19 20:45:50 +02:00 |
|
smallmodel
|
8898919fd3
|
Correctly parse lightingSpecular parameters
|
2024-10-19 20:45:24 +02:00 |
|
smallmodel
|
18abf3854d
|
Use normals for deform vertexes
This fixes the issue where some ocean shaders would look inconsistent
|
2024-10-19 20:33:57 +02:00 |
|
smallmodel
|
02df233205
|
Refactor UploadCompressed
|
2024-10-17 15:17:20 +02:00 |
|
smallmodel
|
46a46a9536
|
Remove unnecessary code
|
2024-10-10 22:29:17 +02:00 |
|
smallmodel
|
be5deddc1d
|
Make indexes and coordinates 16-bytes aligned
|
2024-10-10 19:10:12 +02:00 |
|
smallmodel
|
36f9bdb88c
|
Use intptr_t instead of size_t because intptr_t can hold a pointer which is not always the case for size_t
|
2024-10-10 19:07:20 +02:00 |
|
Sébastien Noel
|
aa15b3ea7f
|
Allow to build against system libs instead of bundled copy
|
2024-10-07 20:51:23 +02:00 |
|
smallmodel
|
23e56e767f
|
Increase sphere light limit
Some servers have a lot of objects in maps, causing all spheres to be used
|
2024-10-02 12:18:58 +02:00 |
|
smallmodel
|
56f850b59d
|
Don't add the same world surface more than once
This fixes an issue where shaders like water, ocean would look strange or completely black, due to them blending against each other multiple times
|
2024-10-01 20:51:56 +02:00 |
|
smallmodel
|
020a6d8b66
|
Fix stupid compile error mistake
|
2024-09-30 22:39:33 +02:00 |
|
smallmodel
|
9dea8fc41e
|
Fix wrong pointer type passed to strncmp
|
2024-09-30 21:59:14 +02:00 |
|
smallmodel
|
c39bdd246a
|
Correctly load DDS file on bigendian architectures
|
2024-09-28 20:56:55 +02:00 |
|
smallmodel
|
9823af9159
|
Fix light grid offsets endianness
|
2024-09-28 20:45:04 +02:00 |
|
smallmodel
|
5403577642
|
Fix the return value of FS_Seek
It returns a negative value on failure, so handle that properly
|
2024-09-25 21:04:55 +02:00 |
|
smallmodel
|
f9d264058b
|
Use safe version of sprintf and strcpy
|
2024-09-20 23:08:53 +02:00 |
|
smallmodel
|
047a7bb949
|
Deprecate r_forceClampToEdge in favor of automatic detection
This avoids setting the variable manually to fix sky seams and weird graphical artifacts. Now, it's detected automatically
|
2024-09-19 21:00:22 +02:00 |
|
smallmodel
|
3e70a9fab8
|
Fix mistakes that lead to compilation errors
|
2024-09-19 19:19:58 +02:00 |
|
smallmodel
|
7c0f0672bd
|
Add r_vidmode1024 and r_vidmodemax so the display resolution can be changed in Spearhead and Breakthrough
|
2024-09-18 22:59:30 +02:00 |
|
smallmodel
|
f4c8b0c21f
|
Initialize the cube build info
This should fix lighting being too dark or incorrect in some places
|
2024-09-17 22:22:42 +02:00 |
|
smallmodel
|
bba7031f3d
|
Add more clarity to code
|
2024-09-17 22:20:20 +02:00 |
|
smallmodel
|
4785913e02
|
compare_light_intensities should compare intensity as integers directly
|
2024-09-17 21:31:50 +02:00 |
|
smallmodel
|
a6808d1f6a
|
Fix incorrect light color for point lights and spot lights, also handle negative point light intensity
This fixes lighting from sphere being computed incorrectly for entities, making entities often look black or having strange lighting color
|
2024-09-17 21:27:14 +02:00 |
|
smallmodel
|
7188e9832a
|
Fix leaf iteration
|
2024-09-17 20:51:00 +02:00 |
|
smallmodel
|
0cce0c81fb
|
Prevent world values from being overridden by entities
|
2024-09-17 20:32:39 +02:00 |
|
smallmodel
|
a60baa03e0
|
Add MAX_SPHERE_LIGHTS
|
2024-09-17 20:06:35 +02:00 |
|
smallmodel
|
b0c8dafb33
|
Correctly compute colors for static model in vertex lit texture
|
2024-09-17 20:02:37 +02:00 |
|
smallmodel
|
b672fc8b29
|
Add #if, #if_not and #else shader statements
|
2024-09-17 20:00:24 +02:00 |
|
smallmodel
|
eac69f659f
|
For dot/oneminusdot, shader needs normal
|
2024-09-17 20:00:00 +02:00 |
|
smallmodel
|
d9ab65154c
|
Fix incorrect lighting grid blend
|
2024-09-17 00:27:01 +02:00 |
|
smallmodel
|
c120aed8bb
|
Fix incorrect static model grid lighting
|
2024-09-16 22:11:58 +02:00 |
|
smallmodel
|
ecdbe3d959
|
Don't check lightmap for RB_StageIteratorVertexLitTextureUnfogged to be used
|
2024-09-16 22:01:04 +02:00 |
|
smallmodel
|
96d10fb8b0
|
Mark r_light_nolight as cheat
|
2024-09-16 20:50:02 +02: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
|
df53d35967
|
Fix real dynamic lighting algorithm for both terrain and patch
This fixes #356 where real dynamic lighting would look completely wrong, making it look like there are graphical artifacts on surfaces
|
2024-09-15 21:23:17 +02:00 |
|
smallmodel
|
e5e7421d3c
|
Fix terrain lightmap when there is a dynamic light map
This fixes terrain having a completely wrong lightmap texture coordinates for dynamic lighting
|
2024-09-15 21:21:38 +02:00 |
|
smallmodel
|
6ff25d00fc
|
Use lightmap offset for grid surface when a dlightmap is specified
|
2024-09-15 21:15:01 +02:00 |
|
smallmodel
|
4a5b0b3105
|
Fix y lightmap position when allocating a new lightmap block
See the issue with dynamic lights: #356
|
2024-09-15 19:39:22 +02:00 |
|
smallmodel
|
d05d964432
|
Fix NaN lmapStep for terrain patches
|
2024-09-15 19:34:25 +02:00 |
|