Files
Z3D/include/geometry/normal_estimation.hpp
2024-12-10 13:50:21 +01:00

14 lines
366 B
C++

#pragma once
#include <vector>
#include <array>
#include <span>
#include "util/uix.hpp"
#include "assets/components/mesh_vertex_components.hpp"
void estimate_normals(
std::span<const components::mesh_vertex::position::value_type> vertices,
std::span<const std::array<ztu::u32, 3>> triangles,
std::vector<components::mesh_vertex::normal::value_type>& normals
);