G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FMeshBuildSettings Struct Reference

Settings applied when building a mesh. More...

Public Member Functions

Functions
bool GetbUseHighPrecisionTangentBasis () const
 If true, Tangents will be stored at 16 bit vs 8 bit precision.
bool GetbUseMikkTSpace () const
 If true, degenerate triangles will be removed.
void SetbUseMikkTSpace (bool Value)
 If true, degenerate triangles will be removed.
bool GetbRecomputeNormals () const
 If true, normals in the raw mesh are ignored and recomputed.
void SetbRecomputeNormals (bool Value)
 If true, normals in the raw mesh are ignored and recomputed.
bool GetbRecomputeTangents () const
 If true, tangents in the raw mesh are ignored and recomputed.
void SetbRecomputeTangents (bool Value)
 If true, tangents in the raw mesh are ignored and recomputed.
bool GetbComputeWeightedNormals () const
 If true, we will use the surface area and the corner angle of the triangle as a ratio when computing the normals.
void SetbComputeWeightedNormals (bool Value)
 If true, we will use the surface area and the corner angle of the triangle as a ratio when computing the normals.
bool GetbRemoveDegenerates () const
 If true, degenerate triangles will be removed.
void SetbRemoveDegenerates (bool Value)
 If true, degenerate triangles will be removed.
bool GetbBuildReversedIndexBuffer () const
 Required to optimize mesh in mirrored transform. Double index buffer size.
void SetbBuildReversedIndexBuffer (bool Value)
 Required to optimize mesh in mirrored transform. Double index buffer size.
FMeshBuildSettings & opAssign (FMeshBuildSettings Other)
void SetbUseHighPrecisionTangentBasis (bool Value)
 If true, Tangents will be stored at 16 bit vs 8 bit precision.
bool GetbUseFullPrecisionUVs () const
 If true, UVs will be stored at full floating point precision.
void SetbUseFullPrecisionUVs (bool Value)
 If true, UVs will be stored at full floating point precision.
bool GetbUseBackwardsCompatibleF16TruncUVs () const
 If true, UVs will use backwards-compatible F16 conversion with truncation for legacy meshes.
void SetbUseBackwardsCompatibleF16TruncUVs (bool Value)
 If true, UVs will use backwards-compatible F16 conversion with truncation for legacy meshes.
bool GetbGenerateLightmapUVs () const
void SetbGenerateLightmapUVs (bool Value)
bool GetbUseHalfPrecisionPosition () const
 If true, Vertex positions will be stored at half floating point precision.
void SetbUseHalfPrecisionPosition (bool Value)
 If true, Vertex positions will be stored at half floating point precision.
bool GetbGenerateDistanceFieldAsIfTwoSided () const
 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.
void SetbGenerateDistanceFieldAsIfTwoSided (bool Value)
 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.
bool GetbSupportFaceRemap () const
void SetbSupportFaceRemap (bool Value)

Public Attributes

BuildSettings
UStaticMesh DistanceFieldReplacementMesh
int SrcLightmapIndex
int DstLightmapIndex
FVector BuildScale3D
 The local scale applied when building the mesh.
float32 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.
int MinLightmapResolution
int MaxLumenMeshCards
 Max Lumen mesh cards to generate for this mesh. More cards means that surface will have better coverage, but will result in increased runtime overhead. Set to 0 in order to disable mesh card generation for this mesh. Default is 12.
Variables
bool bRecomputeNormals
bool bRecomputeTangents
bool bUseMikkTSpace
bool bComputeWeightedNormals
bool bRemoveDegenerates
bool bBuildReversedIndexBuffer
bool bUseHighPrecisionTangentBasis
bool bUseFullPrecisionUVs
bool bUseBackwardsCompatibleF16TruncUVs
bool bGenerateLightmapUVs
bool bUseHalfPrecisionPosition
bool bGenerateDistanceFieldAsIfTwoSided
bool bSupportFaceRemap

Detailed Description

Settings applied when building a mesh.

Member Function Documentation

◆ GetbBuildReversedIndexBuffer()

bool GetbBuildReversedIndexBuffer ( ) const

Required to optimize mesh in mirrored transform. Double index buffer size.

◆ GetbComputeWeightedNormals()

bool GetbComputeWeightedNormals ( ) const

If true, we will use the surface area and the corner angle of the triangle as a ratio when computing the normals.

◆ GetbGenerateDistanceFieldAsIfTwoSided()

bool GetbGenerateDistanceFieldAsIfTwoSided ( ) const

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.

◆ GetbGenerateLightmapUVs()

bool GetbGenerateLightmapUVs ( ) const

◆ GetbRecomputeNormals()

bool GetbRecomputeNormals ( ) const

If true, normals in the raw mesh are ignored and recomputed.

◆ GetbRecomputeTangents()

bool GetbRecomputeTangents ( ) const

If true, tangents in the raw mesh are ignored and recomputed.

◆ GetbRemoveDegenerates()

bool GetbRemoveDegenerates ( ) const

If true, degenerate triangles will be removed.

◆ GetbSupportFaceRemap()

bool GetbSupportFaceRemap ( ) const

◆ GetbUseBackwardsCompatibleF16TruncUVs()

bool GetbUseBackwardsCompatibleF16TruncUVs ( ) const

If true, UVs will use backwards-compatible F16 conversion with truncation for legacy meshes.

◆ GetbUseFullPrecisionUVs()

bool GetbUseFullPrecisionUVs ( ) const

If true, UVs will be stored at full floating point precision.

◆ GetbUseHalfPrecisionPosition()

bool GetbUseHalfPrecisionPosition ( ) const

If true, Vertex positions will be stored at half floating point precision.

◆ GetbUseHighPrecisionTangentBasis()

bool GetbUseHighPrecisionTangentBasis ( ) const

If true, Tangents will be stored at 16 bit vs 8 bit precision.

◆ GetbUseMikkTSpace()

bool GetbUseMikkTSpace ( ) const

If true, degenerate triangles will be removed.

◆ opAssign()

◆ SetbBuildReversedIndexBuffer()

void SetbBuildReversedIndexBuffer ( bool Value)

Required to optimize mesh in mirrored transform. Double index buffer size.

◆ SetbComputeWeightedNormals()

void SetbComputeWeightedNormals ( bool Value)

If true, we will use the surface area and the corner angle of the triangle as a ratio when computing the normals.

◆ SetbGenerateDistanceFieldAsIfTwoSided()

void SetbGenerateDistanceFieldAsIfTwoSided ( bool Value)

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.

◆ SetbGenerateLightmapUVs()

void SetbGenerateLightmapUVs ( bool Value)

◆ SetbRecomputeNormals()

void SetbRecomputeNormals ( bool Value)

If true, normals in the raw mesh are ignored and recomputed.

◆ SetbRecomputeTangents()

void SetbRecomputeTangents ( bool Value)

If true, tangents in the raw mesh are ignored and recomputed.

◆ SetbRemoveDegenerates()

void SetbRemoveDegenerates ( bool Value)

If true, degenerate triangles will be removed.

◆ SetbSupportFaceRemap()

void SetbSupportFaceRemap ( bool Value)

◆ SetbUseBackwardsCompatibleF16TruncUVs()

void SetbUseBackwardsCompatibleF16TruncUVs ( bool Value)

If true, UVs will use backwards-compatible F16 conversion with truncation for legacy meshes.

◆ SetbUseFullPrecisionUVs()

void SetbUseFullPrecisionUVs ( bool Value)

If true, UVs will be stored at full floating point precision.

◆ SetbUseHalfPrecisionPosition()

void SetbUseHalfPrecisionPosition ( bool Value)

If true, Vertex positions will be stored at half floating point precision.

◆ SetbUseHighPrecisionTangentBasis()

void SetbUseHighPrecisionTangentBasis ( bool Value)

If true, Tangents will be stored at 16 bit vs 8 bit precision.

◆ SetbUseMikkTSpace()

void SetbUseMikkTSpace ( bool Value)

If true, degenerate triangles will be removed.

Member Data Documentation

◆ bBuildReversedIndexBuffer

bool bBuildReversedIndexBuffer

◆ bComputeWeightedNormals

bool bComputeWeightedNormals

◆ bGenerateDistanceFieldAsIfTwoSided

bool bGenerateDistanceFieldAsIfTwoSided

◆ bGenerateLightmapUVs

bool bGenerateLightmapUVs

◆ bRecomputeNormals

bool bRecomputeNormals

◆ bRecomputeTangents

bool bRecomputeTangents

◆ bRemoveDegenerates

bool bRemoveDegenerates

◆ bSupportFaceRemap

bool bSupportFaceRemap

◆ BuildScale3D

FVector BuildScale3D

The local scale applied when building the mesh.

◆ bUseBackwardsCompatibleF16TruncUVs

bool bUseBackwardsCompatibleF16TruncUVs

◆ bUseFullPrecisionUVs

bool bUseFullPrecisionUVs

◆ bUseHalfPrecisionPosition

bool bUseHalfPrecisionPosition

◆ bUseHighPrecisionTangentBasis

bool bUseHighPrecisionTangentBasis

◆ bUseMikkTSpace

bool bUseMikkTSpace

◆ DistanceFieldReplacementMesh

UStaticMesh DistanceFieldReplacementMesh

◆ DistanceFieldResolutionScale

float32 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.

◆ DstLightmapIndex

int DstLightmapIndex

◆ MaxLumenMeshCards

int MaxLumenMeshCards

Max Lumen mesh cards to generate for this mesh. More cards means that surface will have better coverage, but will result in increased runtime overhead. Set to 0 in order to disable mesh card generation for this mesh. Default is 12.

◆ MinLightmapResolution

int MinLightmapResolution

◆ SrcLightmapIndex

int SrcLightmapIndex