Enum RenderLevelStage
#[non_exhaustive]pub enum RenderLevelStage {
AfterSky,
AfterOpaqueBlocks,
AfterTranslucentBlocks,
AfterWeather,
AfterLevel,
}Expand description
Where in the world’s frame a stage’s geometry is drawn: NeoForge 26.3’s
RenderLevelStageEvent stages Horizon draws, in the order the frame reaches them.
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.
AfterSky
After the sky, sun, moon and stars, before any terrain (AfterSky): behind
everything else the world draws, for backdrops and atmosphere.
AfterOpaqueBlocks
After solid and cutout terrain, before entities and block entities
(AfterOpaqueBlocks).
AfterTranslucentBlocks
After translucent terrain such as water and stained glass, before translucent
particles (AfterTranslucentBlocks).
AfterWeather
After rain and snow, before the world border (AfterWeather).
AfterLevel
After the rest of the world, before the first-person hand (AfterLevel): where
submit_custom_geometry and the debug renderers draw.
Implementations§
§impl RenderLevelStage
impl RenderLevelStage
pub const ALL: [RenderLevelStage; 5]
pub const ALL: [RenderLevelStage; 5]
Every stage, in the order the frame reaches them.
Trait Implementations§
§impl Clone for RenderLevelStage
impl Clone for RenderLevelStage
§fn clone(&self) -> RenderLevelStage
fn clone(&self) -> RenderLevelStage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderLevelStage
§impl Debug for RenderLevelStage
impl Debug for RenderLevelStage
impl Eq for RenderLevelStage
§impl PartialEq for RenderLevelStage
impl PartialEq for RenderLevelStage
impl StructuralPartialEq for RenderLevelStage
Auto Trait Implementations§
impl Freeze for RenderLevelStage
impl RefUnwindSafe for RenderLevelStage
impl Send for RenderLevelStage
impl Sync for RenderLevelStage
impl Unpin for RenderLevelStage
impl UnsafeUnpin for RenderLevelStage
impl UnwindSafe for RenderLevelStage
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