Struct three_d::PhongForwardPipeline [−][src]
Forward pipeline based on the phong reflection model supporting a very limited amount of lights with shadows. Supports colored, transparent, textured and instanced meshes.
NOTE: Forward rendering does not require a pipeline, so this is only necessary if you want a depth pre-pass.
Implementations
impl PhongForwardPipeline
[src]
pub fn new(context: &Context) -> Result<Self, Error>
[src]
pub fn depth_pass<F: FnOnce() -> Result<(), Error>>(
&mut self,
width: usize,
height: usize,
render_scene: F
) -> Result<(), Error>
[src]
&mut self,
width: usize,
height: usize,
render_scene: F
) -> Result<(), Error>
pub fn depth_texture(&self) -> &dyn Texture
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PhongForwardPipeline
impl !Send for PhongForwardPipeline
impl !Sync for PhongForwardPipeline
impl Unpin for PhongForwardPipeline
impl UnwindSafe for PhongForwardPipeline
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,