pub struct SortContext {
pub camera_far: f64,
pub transparent: bool,
pub max_instance_count: usize,
}Expand description
What the page’s sortFunction reads off this and camera. three.js calls
the custom sort with this bound to the mesh and the camera as the second
argument; the port hands it only the two values any sort on the ladder uses.
Fields§
§camera_far: f64camera.far.
transparent: boolthis.material.transparent, which the page uses as options.reversed.
max_instance_count: usizethis.maxInstanceCount, the page’s options.aux length.
Trait Implementations§
Source§impl Clone for SortContext
impl Clone for SortContext
impl Copy for SortContext
Auto Trait Implementations§
impl Freeze for SortContext
impl RefUnwindSafe for SortContext
impl Send for SortContext
impl Sync for SortContext
impl Unpin for SortContext
impl UnsafeUnpin for SortContext
impl UnwindSafe for SortContext
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