|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Fades an entity and everything under it, the way UINode.opacity fades a UI subtree. More...
#include <GroupOpacity.hpp>
Public Attributes | |
| f32 | opacity {1.0f} |
| bool | enabled {true} |
Fades an entity and everything under it, the way UINode.opacity fades a UI subtree.
The opacities multiply down the hierarchy into each descendant's own alpha. It is not a composited layer: where children overlap they show through one another mid-fade, which is the cheap behaviour every group alpha makes. It reaches the world content that draws a colour — sprites, text, shapes, trails; a UI node answers to its own opacity instead.
Definition at line 18 of file GroupOpacity.hpp.
| bool esengine::ecs::GroupOpacity::enabled {true} |
Definition at line 23 of file GroupOpacity.hpp.
Referenced by EMSCRIPTEN_BINDINGS(), and esengine::ecs::GroupOpacityLookup::of().
| f32 esengine::ecs::GroupOpacity::opacity {1.0f} |
Definition at line 20 of file GroupOpacity.hpp.
Referenced by EMSCRIPTEN_BINDINGS().