pub struct BorderParams {
pub outer_size: f32,
pub outer_color: [f32; 4],
pub inner_size: f32,
pub inner_color: [f32; 4],
}Expand description
Outer + inner border parameters mirrored from a MilkPreset every
frame.
The renderer paints two rectangular rings just after the custom
shapes pass, before the blur pyramid, so the rings both feed back
next frame (a high-decay preset will trail them inward) and
contribute to GetBlur*.
Sizes are in MD2 preset units — a fraction of the shorter screen
dimension, identical to the MD2 reference renderer. outer_size /
inner_size past 0.5 clamp at half because the rings would
otherwise overlap themselves; that’s a no-op visually since the
inner ring is drawn just inboard of the outer.
Fields§
§outer_size: f32Outer ring thickness in [0, 0.5] (fraction of the shorter
screen dimension).
outer_color: [f32; 4]Outer ring RGBA. Skipping the pass when outer_color.a == 0.0
matches MD2’s default behaviour of an invisible outer border.
inner_size: f32Inner ring thickness in [0, 0.5].
inner_color: [f32; 4]Inner ring RGBA. Skipping the pass when inner_color.a == 0.0.
Trait Implementations§
Source§impl Clone for BorderParams
impl Clone for BorderParams
Source§fn clone(&self) -> BorderParams
fn clone(&self) -> BorderParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BorderParams
impl Debug for BorderParams
Source§impl Default for BorderParams
impl Default for BorderParams
impl Copy for BorderParams
Auto Trait Implementations§
impl Freeze for BorderParams
impl RefUnwindSafe for BorderParams
impl Send for BorderParams
impl Sync for BorderParams
impl Unpin for BorderParams
impl UnwindSafe for BorderParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().