mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add particle blend mode "clip" (#15444)
This lets modders avoid alpha blending rendering bugs as well as potential (future) performance issues. The appropriate blend modes are also used for node dig particles. --------- Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
f493e73aeb
commit
138052adfc
11 changed files with 93 additions and 33 deletions
|
@ -233,7 +233,8 @@ namespace ParticleParamTypes
|
|||
}
|
||||
|
||||
enum class AttractorKind : u8 { none, point, line, plane };
|
||||
enum class BlendMode : u8 { alpha, add, sub, screen };
|
||||
// Note: Allows at most 8 enum members (due to how this is serialized)
|
||||
enum class BlendMode : u8 { alpha, add, sub, screen, clip, BlendMode_END };
|
||||
|
||||
// these are consistently-named convenience aliases to make code more readable without `using ParticleParamTypes` declarations
|
||||
using v3fRange = RangedParameter<v3fParameter>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue