engine/include/gen_tangents.h
2024-06-01 23:03:39 +01:00

23 lines
517 B
C++

#pragma once
#include <cstdint> // uint32_t
#include <vector>
namespace engine {
struct Vertex; // resources/mesh.h
}
namespace engine::util {
/*
* Generate tangents for a given list of vertices.
* The provided vertices must be in proper order.
* Parameters:
* vertices (in/out) - vertices to modify with generated tangents (size can change)
* Returns:
* index list for the provided vertices
*/
std::vector<uint32_t> GenTangents(std::vector<engine::Vertex>& vertices);
} // namespace engine::util