• Scripting API
Search Results for

    Show / Hide Table of Contents
    • MudBun
      • MudBrushBase
      • MudDistortion
      • MudModifier
      • MudRenderer
      • MudRenderer.MeshGenerated
      • MudSolid
      • RegisterSdfBrushEvalFuncAttribute
      • Sdf
      • Sdf.Contact
      • Sdf.EvalJobHandle
      • Sdf.Ray
      • Sdf.Result
      • Sdf.SdfBrushEvalFunc
      • SdfBrush
      • SdfBrushMaterial

    Delegate Sdf.SdfBrushEvalFunc

    Signature for static methods meant to be tagged with RegisterSdfBrushEvalFuncAttribute for CPU-based SDF brush computation.

    Namespace: MudBun
    Assembly: cs.temp.dll.dll
    Syntax
    public delegate float SdfBrushEvalFunc(float res, ref Sdf.float3 p, in Sdf.float3 pRel, SdfBrush*aBrush, int iBrush);
    Parameters
    Type Name Description
    Single res

    SDF value.

    MudBun.Sdf.float3 p

    Sample position.

    MudBun.Sdf.float3 pRel

    Relative sample position to brush.

    SdfBrush* aBrush

    Array of brush compute data.

    Int32 iBrush

    Index of the current brush's first compute data element in the array.

    Returns
    Type Description
    Single
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾