pub struct Surface {
pub albedo: [f32; 3],
pub metallic: f32,
pub roughness: f32,
pub normal: Vec3,
pub material_id: u8,
pub velocity: [f32; 2],
}Expand description
Oberflächen-Daten eines Pixels — was der Geometrie-Pass schreibt und
der Lighting-Pass über GBufferLayout::unpack liest.
Fields§
§albedo: [f32; 3]Lineare Albedo 0..1.
metallic: f32§roughness: f32§normal: Vec3Einheitsnormale; wird oktaedrisch kodiert.
material_id: u8§velocity: [f32; 2]Bewegungsvektor in Pixeln/Frame (für TAA und Upscaler).
Trait Implementations§
impl Copy for Surface
impl StructuralPartialEq for Surface
Auto Trait Implementations§
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
impl UnwindSafe for Surface
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