Wuzzy
7f4fc6f8a7
Show unknown node in debug screen ( #12230 )
2022-04-28 18:51:46 +02:00
Lars Müller
fccf1e2eac
Support CSS Color Module Level 4 ( #12204 )
2022-04-27 17:00:02 -04:00
Giuseppe Bilotta
b55d7cd45a
Fix worldaligned textures
...
As reported in #12197 , b0b9732359d43325c8bd820abeb8417353365a0c
introduces a regression in worldalign textures.
The specific change that seems to be responsible for this issue is the
change in order between the computation of the cuboid texture
coordinates and the box edge correction.
Fix #12197 by moving the box edge correction back to before the cuboid
texture coordinates, as it used to be.
2022-04-24 21:11:24 +02:00
Giuseppe Bilotta
23f981c458
Fix some textures not being sent correctly to older clients
...
Since b2eb44afc50976dc0954c868977b5829f3ff8a19, a texture defined as
`[combine:16x512:0,0=some_file.png;etc`
will not be sent correctly from a 5.5 server to a 5.4 client due to the
overeager detection of unsupported base modifier `[` introducing a
spurious `blank.png^` before the modifier.
Fix this by whitelisting which base modifiers can be passed through
unchanged to the client, and prefix `blank.png` for the others
(which at the moment is just [png:, but the list may grow larger
as new base modifiers are added.)
2022-04-24 21:10:23 +02:00
Lars Müller
4558793caf
Fix some debug info showing despite being disabled in the UI ( #12205 )
2022-04-21 21:45:47 +02:00
paradust7
7cea688a1c
Fix '[combine' when EVDF_TEXTURE_NPOT is disabled. ( #12187 )
...
Stop scaling images to POT immediately when loaded. The 'combine'
modifier hardcodes X and Y coordinates, and so behaves incorrectly
if applied to a scaled image. Images emitted by generateImage()
are already scaled to POT before being used as a texture, so
nothing should break.
2022-04-16 18:50:59 +02:00
SmallJoker
1d07a36552
upright_sprite: Fix walk animation in first person ( #12194 )
2022-04-15 18:55:08 +02:00
x2048
a5d29fa1d4
Implement shadow offsets for the new SM distortion function ( #12191 )
...
* Move shadow position calculation to vertex shaders
* Animate entire scene before rendering shadows to prevent lagging of shadows
* Remove unnecessary use of PolygonOffsetFactor
* Apply normal offset to both nodes and objects
* Rename getPerspectiveFactor -> applyPerspectiveDistortion
* Remove perspective distortion from fragment shaders
2022-04-14 22:49:30 +02:00
Lars Müller
1f27bf6380
Remove unneeded ObjectRef setter return values ( #12179 )
2022-04-10 23:20:51 +02:00
ShadowNinja
2d8eac4e0a
Don't test overflow behavior for VoxelArea extents
2022-04-08 14:55:21 +01:00
ShadowNinja
80db8804c7
Fix typo and update settings files
2022-04-08 14:55:21 +01:00
ShadowNinja
f5e54cd398
Fix OOB read in trim("")
2022-04-08 14:55:21 +01:00
ShadowNinja
c9317a16c5
Remove duplicate test for trim
2022-04-08 14:55:21 +01:00
ShadowNinja
dae6fe91a1
Update directory name sanitization
...
Only ASCII spaces have to be handles specially, and leading spaces are
also disallowed.
2022-04-08 14:55:21 +01:00
ShadowNinja
65fdc7ae50
Add tests for sanitizeDirName
2022-04-08 14:55:21 +01:00
ShadowNinja
00ebedad93
Add additional reserved directory names
2022-04-08 14:55:21 +01:00
ShadowNinja
8af332c9a7
Remove duplication in config.h
2022-04-08 14:55:21 +01:00
ShadowNinja
7993909fab
Spacing fixes
2022-04-08 14:55:21 +01:00
ShadowNinja
88b21a72f1
Treat empty XDG_CACHE_HOME same as unset
...
This matches the XDG base directory spec.
2022-04-08 14:55:21 +01:00
ShadowNinja
5683bb76cc
Fix compiler warnings
2022-04-08 14:55:21 +01:00
Dmitry Kostenko
23516acd0b
Remove obsolete commented code (follow up to #12166 )
2022-04-07 22:38:01 +02:00
x2048
48f7c5603e
Adjust shadowmap distortion to use entire SM texture ( #12166 )
2022-04-07 22:13:50 +02:00
Jude Melton-Houghton
0b5b2b2633
Disentangle map implementations ( #12148 )
...
Fixes violation of Liskov substitution principle
Fixes #12144
2022-04-07 21:58:04 +02:00
Jude Melton-Houghton
21f17e871e
Compile Lua as C++ ( #11683 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-04-07 15:54:17 +01:00
sfan5
837cea6b4a
Fix -mwindows flag not being applied anymore
...
closes #12165
2022-04-03 21:44:22 +02:00
x2048
b0b9732359
Add depth sorting for node faces ( #11696 )
...
Use BSP tree to order transparent triangles
https://en.wikipedia.org/wiki/Binary_space_partitioning
2022-04-02 10:42:27 +02:00
Dmitry Kostenko
26c046a563
Increase the ratio between shadow range and viewing range
2022-04-02 10:39:43 +02:00
x2048
3dd7d7867b
Limit shadow map to the viewing range ( #12158 )
2022-03-31 22:40:59 +02:00
x2048
31578303a4
Tune shadow perspective distortion ( #12146 )
...
* Pass perspective distortion parameters as uniforms
* Set all perspective bias parameters via ShadowRenderer
* Recalibrate perspective distortion and shadow range to render less shadow geometry with the same quality and observed shadow distance
2022-03-31 22:40:06 +02:00
Jude Melton-Houghton
06d197cdd0
Store vector metatable in registry
2022-03-29 18:07:00 +02:00
Jude Melton-Houghton
11aab4198b
Optimize swapping nodes with equivalent lighting
2022-03-29 18:06:44 +02:00
DS
8d387433b1
Fix the documentation of InvRef:get_lists() and clean up code ( #12150 )
2022-03-29 18:06:16 +02:00
x2048
0f25fa7af6
Add API to control shadow intensity from the game/mod ( #11944 )
...
* Also Disable shadows when sun/moon is hidden. Fixes #11972 .
2022-03-26 16:58:26 +01:00
Daroc Alden
e54f5e544f
Fix memory leak in EmergeManager
...
EmergeManager keeps a copy of the BiomeGen that it creates, but
never deletes it.
2022-03-14 21:01:36 +01:00
Gregor Parzefall
289c3ff377
Fix footsteps for players whose collision box min y != 0 ( #12110 )
2022-03-14 21:01:18 +01:00
Daroc Alden
11f3f72f1c
Fix undefined behavior in TileLayer ( #12125 )
...
Initialize the values properly
2022-03-11 21:22:49 +01:00
sfan5
ad7c72c164
Remove direct OpenGL(ES) dependency
...
IrrlichtMt now provides this for us (see last commit)
fixes #12041
2022-03-09 22:37:34 +01:00
sfan5
51294163bb
Use Irrlicht bindings for GL call
2022-03-09 22:37:34 +01:00
Daroc Alden
598efbf7f9
Fix memory leak from SpatialAreaStore ( #12120 )
2022-03-09 19:28:12 +01:00
Dmitry Kostenko
4801bdf45a
Correct normal bias for entities
...
Remove use of magic constants.
Apply cameraOffset
Calculate distance projected on SM plane
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
8f652f4e31
Fix shadows for upright sprite nodes
...
Avoid using read only materials in mesh scene node, as
it confuses shadow renderer.
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
d2a3bed240
Avoid possible buffer overflow when checking face normals
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
e4583cb9b7
Use correct indexes when checking mesh normals
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
1175f48d05
Detect 'insane' normals in checkMeshNormals.
...
Detect non-zero normals which point in the opposite direction from the
face plane normal.
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
54dccc480e
Improve lighting of entities.
...
Pass correct natural & artificial light to the shaders
Use natural/artificial light ratio for correct rendering of shadows
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
4e39cdef94
Apply shadow texture to wield-based entities
...
For example, dropped nodes and items.
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
2bba53b2c3
Render shadows on entities.
...
Fixes problem with mod 'drawers'.
2022-03-07 23:45:26 +01:00
Lars Müller
b9e886726c
Readd basic_debug as a HUD flag ( #12020 )
2022-03-05 22:16:17 +01:00
Zughy
44fc888bd6
Allow get_sky to return a table ( #11963 )
2022-03-05 22:15:41 +01:00
sfan5
f2d1295fe6
Fix segfault with autoscale_mode (again)
...
closes #12100
This time add some asserts so there is no misunderstanding about the NULL-ness of layer->texture.
2022-03-02 17:49:45 +01:00