Optimize which surfaces are passed to lightmapper
This commit is contained in:
parent
1d2427c146
commit
7cd33cc060
4 changed files with 9 additions and 1 deletions
|
|
@ -93,6 +93,10 @@ struct LevelMeshSurface
|
|||
int lightmapperAtlasY = -1;
|
||||
};
|
||||
|
||||
inline float IsInFrontOfPlane(const FVector4& plane, const FVector3& point)
|
||||
{
|
||||
return (plane.X * point.X + plane.Y * point.Y + plane.Z * point.Z) >= plane.W;
|
||||
}
|
||||
|
||||
struct LevelMeshSmoothingGroup
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue