82 lines
2.5 KiB
Plaintext
82 lines
2.5 KiB
Plaintext
{
|
|
"FormatVersion": 3,
|
|
"Id": "637d00e4-ab63-4fe3-8e63-1e206c728841"/*CustomSDF*/,
|
|
"Description": "Creates a custom distance field (SDF) from a short HLSL code fragment.\n\nWrite the body of a distance function: `p` is the sample position; return the signed distance to the surface. Offset, A, B and C are available as parameters, and a GLSL-style mod() is predefined. The default code generates a sphere; explore the presets for many fractal examples.\n\nRender the result with [RaymarchField], visualize it with [VisualizeFieldDistance], and modify it with [BendField], [TransformField], [PolarRepeat] and more. For an interactive tutorial see [HowToRaymarchField].\n\nSimilar nodes: [BoxSDF], [CapsuleLineSDF], [FractalSDF].\n\nFull documentation: https://help.tixl.app/advanced/UsingCustomShaders/",
|
|
"SymbolTags": "1",
|
|
"InputUis": [
|
|
{
|
|
"InputId": "3c366d34-c398-410e-972b-d8cc2baffddb"/*A*/,
|
|
"Position": {
|
|
"X": -200.0,
|
|
"Y": 0.0
|
|
},
|
|
"AddPadding": "True",
|
|
"Min": -1.0,
|
|
"Max": 1.0,
|
|
"Scale": 0.001
|
|
},
|
|
{
|
|
"InputId": "48a0699d-1207-4e18-ab9b-4da7f77cc7aa"/*AdditionalDefines*/,
|
|
"Position": {
|
|
"X": -200.0,
|
|
"Y": 225.0
|
|
},
|
|
"Usage": "Multiline"
|
|
},
|
|
{
|
|
"InputId": "56e5d5ec-ec59-4ea0-85c1-1eca3dcb5790"/*C*/,
|
|
"Position": {
|
|
"X": -200.0,
|
|
"Y": 150.0
|
|
},
|
|
"Min": -1.0,
|
|
"Max": 1.0,
|
|
"Scale": 0.001
|
|
},
|
|
{
|
|
"InputId": "64f1812f-7ebd-4231-8a6a-0bbc302bfaff"/*Offset*/,
|
|
"Position": {
|
|
"X": -200.0,
|
|
"Y": 0.0
|
|
},
|
|
"GroupTitle": "Optional Parameters"
|
|
},
|
|
{
|
|
"InputId": "874ae9c8-5835-4d0c-9bef-253ac75d19b2"/*B*/,
|
|
"Position": {
|
|
"X": -200.0,
|
|
"Y": 75.0
|
|
},
|
|
"Max": 1.0,
|
|
"Scale": 0.001
|
|
},
|
|
{
|
|
"InputId": "bde89b93-224c-4a3f-85ab-d85b0401c02a"/*DistanceFunction*/,
|
|
"Position": {
|
|
"X": -200.0,
|
|
"Y": 0.0
|
|
},
|
|
"GroupTitle": " FUNC(p, Offset, A,B,C) { ... }",
|
|
"Usage": "Multiline"
|
|
}
|
|
],
|
|
"SymbolChildUis": [],
|
|
"OutputUis": [
|
|
{
|
|
"OutputId": "1aaaf637-a2f1-4706-909e-fa4fb102619d"/*Result*/,
|
|
"Position": {
|
|
"X": 0.0,
|
|
"Y": 0.0
|
|
}
|
|
}
|
|
],
|
|
"Links": [
|
|
{
|
|
"Id": "e8a4c2d6-7b15-4f9e-a3c8-1d6b9e2f5a37",
|
|
"Title": "Using Custom Shaders",
|
|
"Description": "Documentation with required variables, helper functions and examples",
|
|
"LinkUrl": "https://help.tixl.app/advanced/UsingCustomShaders/",
|
|
"LinkType": "Documentation"
|
|
}
|
|
]
|
|
} |