pub type PbrBundle = MaterialMeshBundle<StandardMaterial>;
Expand description
A component bundle for PBR entities with a Mesh
and a StandardMaterial
.
Aliased Type§
struct PbrBundle {
pub mesh: Handle<Mesh>,
pub material: Handle<StandardMaterial>,
pub transform: Transform,
pub global_transform: GlobalTransform,
pub visibility: Visibility,
pub inherited_visibility: InheritedVisibility,
pub view_visibility: ViewVisibility,
}
Fields§
§mesh: Handle<Mesh>
§material: Handle<StandardMaterial>
§transform: Transform
§global_transform: GlobalTransform
§visibility: Visibility
User indication of whether an entity is visible
inherited_visibility: InheritedVisibility
Inherited visibility of an entity.
view_visibility: ViewVisibility
Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering
Trait Implementations§
§impl<M> Clone for MaterialMeshBundle<M>where
M: Clone + Material,
impl<M> Clone for MaterialMeshBundle<M>where M: Clone + Material,
§fn clone(&self) -> MaterialMeshBundle<M>
fn clone(&self) -> MaterialMeshBundle<M>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<M> Default for MaterialMeshBundle<M>where
M: Material,
impl<M> Default for MaterialMeshBundle<M>where M: Material,
§fn default() -> MaterialMeshBundle<M>
fn default() -> MaterialMeshBundle<M>
Returns the “default value” for a type. Read more