Class ModelBase.SDFData
The Sign Distant Field (SDF) data for the model.
Inheritance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class SDFData : ValueType
Fields
LocalBoundsMax
The bounding box of the SDF texture in the model local-space.
Declaration
public Float3 LocalBoundsMax
Field Value
Float3
|
LocalBoundsMin
The bounding box of the SDF texture in the model local-space.
Declaration
public Float3 LocalBoundsMin
Field Value
Float3
|
LocalToUVWAdd
The transformation offset from model local-space to the generated SDF texture space (local-space -> uv).
Declaration
public Float3 LocalToUVWAdd
Field Value
Float3
|
LocalToUVWMul
The transformation scale from model local-space to the generated SDF texture space (local-space -> uv).
Declaration
public Float3 LocalToUVWMul
Field Value
Float3
|
LOD
The model LOD index used for the building.
Declaration
public int LOD
Field Value
System.Int32
|
MaxDistance
The maximum distance stored in the SDF texture. Used to rescale normalized SDF into world-units (in model local space).
Declaration
public float MaxDistance
Field Value
System.Single
|
ResolutionScale
The SDF texture resolution scale used for building texture.
Declaration
public float ResolutionScale
Field Value
System.Single
|
Texture
The SDF volume texture (merged all meshes).
Declaration
public GPUTexture Texture
Field Value
GPUTexture
|
WorldUnitsPerVoxel
Amount of world-units per SDF texture voxel.
Declaration
public float WorldUnitsPerVoxel
Field Value
System.Single
|
Properties
Default
The default ModelBase.SDFData.
Declaration
public static ModelBase.SDFData Default { get; }
Property Value
ModelBase.SDFData
|