pub struct SceneNode {
pub id: SceneNodeId,
pub name: String,
pub parent: SceneNodeId,
pub mesh: SceneMeshId,
pub material: Option<MaterialId>,
pub local_transform: Transform,
pub visible: bool,
}Expand description
One hierarchy node that optionally instances a mesh.
local_transform is the donor oa::Transform localTransform — a TRS
semantic value, not a raw matrix.
material overrides the renderer’s default material for this node.
None falls back to FlatColor { color: [0.8, 0.8, 0.8, 1.0] } at draw
time.
Fields§
§id: SceneNodeId§name: String§parent: SceneNodeId§mesh: SceneMeshId§material: Option<MaterialId>Optional material override. References a SceneMaterial in the same
Scene by identity.
local_transform: Transform§visible: boolTrait Implementations§
impl StructuralPartialEq for SceneNode
Auto Trait Implementations§
impl Forget for SceneNode
impl Freeze for SceneNode
impl Move for SceneNode
impl RefUnwindSafe for SceneNode
impl Send for SceneNode
impl Sync for SceneNode
impl Unpin for SceneNode
impl UnsafeUnpin for SceneNode
impl UnwindSafe for SceneNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more