You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
699 B
17 lines
699 B
#pragma once
|
|
|
|
#include "bsp.h"
|
|
|
|
struct EdgeData
|
|
{
|
|
int edgeIndex = 0;
|
|
const edge_t* edge = nullptr;
|
|
std::vector<const face_t*> faces;
|
|
bool isSharpEdge = false;
|
|
};
|
|
|
|
unsigned char sample_lightmap(const world_t* world, const face_t* face, const BoundBox& bounds, const Vec3& point);
|
|
void export_lightmap(const world_t* world, const face_t* face, const BoundBox& bounds, int faceIdx);
|
|
|
|
std::unordered_map<const edge_t*, EdgeData> analyze_edges(const world_t* world);
|
|
unsigned char compute_faceVertex_light(const world_t* world, const face_t* face, unsigned short vertexIndex, const std::unordered_map<const face_t*, BoundBox> faceBounds, const std::unordered_map<const edge_t*, EdgeData>& edgeData);
|