|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Turns the MeshRenderer beside it to face each view that draws it. More...
#include <Billboard.hpp>
Public Member Functions | |
| Billboard ()=default | |
Public Attributes | |
| i32 | mode {static_cast<i32>(BillboardMode::ViewPlane)} |
| bool | enabled {true} |
Turns the MeshRenderer beside it to face each view that draws it.
The rotation is the VIEW's, worked out while the view collects what it draws, so two cameras each see the card face on and the entity's own Transform is never written: scripts, physics and the editor read the rotation that was authored. The mesh's +Z is turned toward the viewer and its +Y up, which is how a builtin quad stands; position and scale are the entity's. A shadow map is a view too, so a card turns to the light there and casts its whole outline.
Definition at line 37 of file Billboard.hpp.
|
default |
| bool esengine::ecs::Billboard::enabled {true} |
Definition at line 42 of file Billboard.hpp.
Referenced by esengine::MeshPlugin::collect(), and EMSCRIPTEN_BINDINGS().
| i32 esengine::ecs::Billboard::mode {static_cast<i32>(BillboardMode::ViewPlane)} |
Definition at line 39 of file Billboard.hpp.
Referenced by esengine::MeshPlugin::collect(), and EMSCRIPTEN_BINDINGS().