pub struct BladeType {
pub root_color: [f32; 3],
pub tip_color: [f32; 3],
pub height: f32,
pub half_width: f32,
pub height_spread: f32,
pub width_spread: f32,
pub look: BladeLook,
pub style: BladeStyle,
pub shape: BladeShape,
pub clumping: Clumping,
}Expand description
One row of the blade table — decision 3’s “one blade description”, drawn as
its BladeType::look says.
Fields§
§root_color: [f32; 3]The colour at the blade’s root. Decision 4’s root-occlusion lever: a darker root is what makes a field read as having depth.
tip_color: [f32; 3]The colour at its tip.
height: f32The tallest a blade of this row stands, in metres.
half_width: f32The widest half a card of this row is, in metres.
height_spread: f32The fraction of BladeType::height a blade may lose to its own hash,
in 0..1.
width_spread: f32The same for BladeType::half_width.
A shell strand’s root is this half-width too, bounded by half a
placement cell — see grass.slang’s grass_strand_reach.
look: BladeLookThe geometry the row is drawn with.
style: BladeStyleDecision 4’s levers.
shape: BladeShapeA mesh blade’s shape, read only where BladeType::look is
BladeLook::Blades.
clumping: ClumpingDecision 2’s clumping, for every look.
Implementations§
Trait Implementations§
impl Copy for BladeType
impl StructuralPartialEq for BladeType
Auto Trait Implementations§
impl Forget for BladeType
impl Freeze for BladeType
impl Move for BladeType
impl RefUnwindSafe for BladeType
impl Send for BladeType
impl Sync for BladeType
impl Unpin for BladeType
impl UnsafeUnpin for BladeType
impl UnwindSafe for BladeType
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