engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FMeshBuildSettings结构体 参考

Settings applied when building a mesh. 更多...

#include <EngineTypes.h>

Public 成员函数

 FMeshBuildSettings ()
 Default settings.
 
bool operator!= (const FMeshBuildSettings &Other) const
 Inequality.
 
bool operator== (const FMeshBuildSettings &Other) const
 Equality operator.
 

Public 属性

uint8 bBuildAdjacencyBuffer:1
 Required for PNT tessellation but can be slow. 更多...
 
uint8 bBuildReversedIndexBuffer:1
 Required to optimize mesh in mirrored transform. 更多...
 
uint8 bComputeWeightedNormals: 1
 If true, we will use the surface area and the corner angle of the triangle as a ratio when computing the normals.
 
uint8 bGenerateDistanceFieldAsIfTwoSided:1
 Whether to generate the distance field treating every triangle hit as a front face. 更多...
 
uint8 bRecomputeNormals:1
 If true, normals in the raw mesh are ignored and recomputed.
 
uint8 bRecomputeTangents:1
 If true, tangents in the raw mesh are ignored and recomputed.
 
uint8 bRemoveDegenerates:1
 If true, degenerate triangles will be removed.
 
FVector BuildScale3D
 The local scale applied when building the mesh
 
uint8 bUseFullPrecisionUVs:1
 If true, UVs will be stored at full floating point precision.
 
uint8 bUseHighPrecisionTangentBasis:1
 If true, Tangents will be stored at 16 bit vs 8 bit precision.
 
uint8 bUseMikkTSpace:1
 If true, degenerate triangles will be removed.
 
float DistanceFieldResolutionScale
 Scale to apply to the mesh when allocating the distance field volume texture. 更多...
 

详细描述

Settings applied when building a mesh.

类成员变量说明

◆ bBuildAdjacencyBuffer

uint8 FMeshBuildSettings::bBuildAdjacencyBuffer

Required for PNT tessellation but can be slow.

Recommend disabling for larger meshes.

◆ bBuildReversedIndexBuffer

uint8 FMeshBuildSettings::bBuildReversedIndexBuffer

Required to optimize mesh in mirrored transform.

Double index buffer size.

◆ bGenerateDistanceFieldAsIfTwoSided

uint8 FMeshBuildSettings::bGenerateDistanceFieldAsIfTwoSided

Whether to generate the distance field treating every triangle hit as a front face.


When enabled prevents the distance field from being discarded due to the mesh being open, but also lowers Distance Field AO quality.

◆ DistanceFieldResolutionScale

float FMeshBuildSettings::DistanceFieldResolutionScale

Scale to apply to the mesh when allocating the distance field volume texture.

The default scale is 1, which is assuming that the mesh will be placed unscaled in the world.


该结构体的文档由以下文件生成: