sfan5
4e9aa7dc77
Make itemdef.h safe to include anywhere
2024-10-16 19:39:59 +02:00
Lars Mueller
7e4919c6ed
Refactor matrix4.h
...
Sets the surprising row-major conventions used here straight.
Renames rotateVect to rotateAndScaleVect:
If the matrix also scales, that is applied as well by the method.
Obsolete rotateVect variants are removed.
The inverseRotateVect method is also renamed accordingly.
Note that this applies the transpose of the product
of the scale and rotation matrices, which inverts just the rotation.
2024-10-10 17:40:31 +02:00
grorp
70e169f165
Drop fixed pipeline lighting stuff ( #15165 )
2024-09-18 12:18:28 +02:00
SmallJoker
670bb32b2c
Particles: fix crash caused by absent texture
...
Introduced in commit f8bff34
. The related code does already expect that
'texture.ref' may be nullptr.
2024-05-29 19:46:24 +02:00
sfan5
f8bff346f4
Batched rendering of particles ( #14489 )
...
Co-authored-by: x2048 <codeforsmile@gmail.com>
Co-authored-by: Desour <ds.desour@proton.me>
2024-04-03 13:56:49 +02:00
David Heidelberg
eb52a149a0
Enable IPO/LTO by default except for debug builds ( #14198 )
...
Test case:
```
$ cmake . -DRUN_IN_PLACE=TRUE -DCMAKE_BUILD_TYPE=Release -DBUILD_SERVER=TRUE -DENABLE_TOUCH=FALSE
minetest minetestserver
W/o LTO: 13M 7.3M
W/ LTO: 11M 5.9M
difference: 15% 19%
```
Also fixes various compiler warnings resulting from compilation using LTO.
---------
Signed-off-by: David Heidelberg <david@ixit.cz>
2024-02-09 00:01:12 +01:00
DS
12e98678f6
Particle cleanup ( #13394 )
2023-10-11 17:07:30 +02:00
Gregor Parzefall
6f0d36c41a
Fixes and improvements
2023-07-20 22:15:47 +02:00
Gregor Parzefall
7473e4cafd
Expose all OpenGL filtering modes, use OpenGL names for them
...
Because of a review comment on the Irrlicht PR by numberZero.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
9bef3c136a
Split up texture filtering properties of SMaterialLayer into MinFilter and MagFilter
...
You can now set the filter used when scaling textures down and the filter used when scaling textures up separately.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
307e380f30
Refactor the way you set material properties
...
Instead of using SMaterial::setFlag, you now set them directly on SMaterial or SMaterialLayer.
2023-07-20 22:15:47 +02:00
Jude Melton-Houghton
9676364c1f
Optimize lighting calculation ( #12797 )
2022-10-09 10:50:26 -04:00
Lars Müller
1317cd12d7
Fix formula used for acceleration ( #12353 )
2022-09-20 10:55:51 +02:00
sfan5
c607bee19e
Allow looped animation to be used safely with old clients
...
fixes #12657
2022-09-10 12:21:29 +02:00
SmallJoker
c8ee755c05
Physics overrides: Move values to a common struct ( #12591 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-08-12 10:17:02 +01:00
Dmitry Kostenko
6df69f9b5b
Make BlendMode::alpha the fallback for unknown future blend modes
2022-07-13 22:45:05 +02:00
Lexi Hale
20bd6bdb68
Animated particlespawners and more ( #11545 )
...
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Dmitry Kostenko <codeforsmile@gmail.com>
2022-07-13 11:57:12 +02:00
Loic Blot
5a02c376ea
refacto: RenderingEngine::get_scene_manager() is now not callable from singleton
...
This permits to make evidence that we have some bad object passing on various code parts. I fixed majority of them to reduce the scope of passed objects
Unfortunately, for some edge cases i should have to expose ISceneManager from client, this should be fixed in the future when our POO will be cleaner client side (we have a mix of rendering and processing in majority of the client objects, it works but it's not clean)
2021-05-03 19:49:19 +02:00
SmallJoker
57df895cf9
ParticleSpawner: Fix crash when attaching to invisible entity
2020-06-19 19:29:47 +02:00
sfan5
9d6e7e48d6
Implement spawning particles with node texture appearance
2020-05-23 22:52:21 +02:00
sfan5
1357ea1da2
Cleanup of particle & particlespawner structures and code ( #9893 )
2020-05-22 13:23:25 +02:00
ANAND
095f26a4f8
particles.cpp: Fix code-style
...
Mainly spacing and pointer placement
2019-08-31 19:05:53 +02:00
Pedro Gimeno
9543b84970
Fix rotation of attached particlespawner
...
Co-authored-by: ANAND <ClobberXD@gmail.com>
2019-08-31 19:05:53 +02:00
Jozef Behran
86d7f84b89
Merge pull request #8776 from osjc/FixGetNode
...
Finish getNode cleanup
2019-08-10 19:45:44 +02:00
Loïc Blot
170dd409cb
Fix particle spawners not visible since CSM spawner implementation ( #8289 )
...
* Drop the ID mapper, use a big u64 instead. This will permit to resync server ids properly with the manager code
* Modernize some code parts (std::unordered_map, auto)
* generate id on client part on U32_MAX + 1 ids, lower are for server ids
2019-03-01 20:16:11 +01:00
Quentin Bazin
5f1cd555cd
Move client-specific files to 'src/client' ( #7902 )
...
Update Android.mk
Remove 'src/client' from include_directories
2018-11-28 20:01:49 +01:00