Search Results for

    Show / Hide Table of Contents

    Class ModelBase.SDFData

    The Sign Distant Field (SDF) data for the model.

    Inheritance
    System.Object
    ModelBase.SDFData
    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

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat