#[non_exhaustive]pub enum Object3DScope {
Position,
Scale,
Direction,
ViewPosition,
Radius,
}Expand description
Object3DNode’s scopes other than WORLD_MATRIX, which has a uniform
source of its own (UniformSource::ModelWorldMatrix, or
UniformSource::Live for an explicit object).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Position
POSITION — setFromMatrixPosition( matrixWorld ), a vec3.
Scale
SCALE — setFromMatrixScale( matrixWorld ), a vec3.
Direction
DIRECTION — getWorldDirection(), the normalised +z column of
matrixWorld, a vec3.
ViewPosition
VIEW_POSITION — the world position through the rendering camera’s
matrixWorldInverse, a vec3.
Radius
RADIUS — the bounding sphere of the drawn object’s geometry,
through the scoped object’s matrixWorld, a float. three reads
frame.object.geometry even for an explicit object, and so does this.
Trait Implementations§
Source§impl Clone for Object3DScope
impl Clone for Object3DScope
impl Copy for Object3DScope
Source§impl Debug for Object3DScope
impl Debug for Object3DScope
impl Eq for Object3DScope
Source§impl Hash for Object3DScope
impl Hash for Object3DScope
Source§impl PartialEq for Object3DScope
impl PartialEq for Object3DScope
impl StructuralPartialEq for Object3DScope
Auto Trait Implementations§
impl Freeze for Object3DScope
impl RefUnwindSafe for Object3DScope
impl Send for Object3DScope
impl Sync for Object3DScope
impl Unpin for Object3DScope
impl UnsafeUnpin for Object3DScope
impl UnwindSafe for Object3DScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.