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 |