/// Calculate tangents for the given mesh, based on normals and texture coordinates.
///
/// If zeroed is true, the normals will not be zeroed before hand.
Calculate tangents for the given mesh, based on normals and texture coordinates.
If zeroed is true, the normals will not be zeroed before hand.
Calculate tangents for the given mesh based on normals and texture coordinates . If zeroed is true the normals will not be zeroed before hand .
pub fn calculate_tangents(&mut self, zeroed: bool) {
        // SAFETY: The mesh unconditionally has a validation token, so it must be valid.
        unsafe {
            Self::calculate_tangents_for_buffers(
                &mut self.vertex_tangents,
                &self.vertex_positions,
                &self.vertex_normals,
                &self.vertex_uv0,
                &self.indices,
                zeroed,
            )
        };
    }
pub fn calculate_tangents ( & mut self , zeroed : bool ) { // SAFETY: The mesh unconditionally has a validation token, so it must be valid. unsafe { Self :: calculate_tangents_for_buffers ( & mut self . vertex_tangents , & self . vertex_positions , & self . vertex_normals , & self . vertex_uv0 , & self . indices , zeroed , ) } ; }
Calculate tangents for the given mesh, based on normals and texture coordinates.
Calculate tangents for the given mesh based on normals and texture coordinates .
&mut self
zeroed
bool