376 lines
9.1 KiB
Plaintext
376 lines
9.1 KiB
Plaintext
{
|
|
"FormatVersion": 3,
|
|
"Id": "f97bfe16-dd7f-49b9-8238-cea1ee13a66f"/*CustomFaceShader*/,
|
|
"Description": "Manipulates mesh triangles with a short HLSL code fragment - each face gets its own unshared vertices, which allows faceting effects.\n\nModify the prepared vertices `v1`, `v2`, `v3`; `pos1`-`pos3` keep the original positions and `faceIndex` identifies the triangle. Helpers like SampleGradient(f), Biased(f), noise and hash functions are available, and a connected Field can drive displacement or color. Explore the presets for examples.\n\nFull documentation: https://help.tixl.app/advanced/UsingCustomShaders/",
|
|
"InputUis": [
|
|
{
|
|
"InputId": "043ef621-40fb-49dd-895b-ea8226d42d20"/*C*/,
|
|
"Position": {
|
|
"X": 888.22876,
|
|
"Y": 382.38416
|
|
}
|
|
},
|
|
{
|
|
"InputId": "0957ec56-8c74-4e72-aee3-c14abddcc655"/*ShaderCode*/,
|
|
"Position": {
|
|
"X": 355.98956,
|
|
"Y": 23.114166
|
|
},
|
|
"GroupTitle": "Shader",
|
|
"Usage": "Multiline"
|
|
},
|
|
{
|
|
"InputId": "13abde1f-3173-4614-a5d8-e2848e94236e"/*Image*/,
|
|
"Position": {
|
|
"X": 1390.2935,
|
|
"Y": 742.5802
|
|
},
|
|
"GroupTitle": "Additional resources"
|
|
},
|
|
{
|
|
"InputId": "1dc7a589-93f7-4e0b-acbd-02670c97ebf8"/*AdditionalDefines*/,
|
|
"Position": {
|
|
"X": 355.98956,
|
|
"Y": 93.11415
|
|
},
|
|
"GroupTitle": "Additional Options...",
|
|
"Usage": "Multiline"
|
|
},
|
|
{
|
|
"InputId": "495a3bac-394b-4f2d-a741-0cb923fc4ef3"/*Mesh*/,
|
|
"Position": {
|
|
"X": -152.55835,
|
|
"Y": 527.6345
|
|
}
|
|
},
|
|
{
|
|
"InputId": "54059d29-e8d9-457c-9dff-25b23753872d"/*RecomputeNormals*/,
|
|
"Position": {
|
|
"X": 1530.2935,
|
|
"Y": 1162.5802
|
|
}
|
|
},
|
|
{
|
|
"InputId": "63fcdf71-45ce-4abd-a0f4-28364939e065"/*SplitVertices*/,
|
|
"Position": {
|
|
"X": -292.55844,
|
|
"Y": 597.6346
|
|
}
|
|
},
|
|
{
|
|
"InputId": "6643b344-a69d-4142-85a6-f7c642a1e93a"/*D*/,
|
|
"Position": {
|
|
"X": 888.22876,
|
|
"Y": 417.38416
|
|
}
|
|
},
|
|
{
|
|
"InputId": "7dfcbc7a-d6ee-49bb-9ed0-caeade459702"/*Field*/,
|
|
"Position": {
|
|
"X": 355.9896,
|
|
"Y": -151.88585
|
|
}
|
|
},
|
|
{
|
|
"InputId": "a14d4ec8-33b8-487d-8855-a33088c8885b"/*ShaderTemplate*/,
|
|
"Position": {
|
|
"X": 355.98956,
|
|
"Y": -116.885864
|
|
},
|
|
"Usage": "FilePath",
|
|
"FileFilter": "hlsl"
|
|
},
|
|
{
|
|
"InputId": "c79b7cd6-ca23-4e3b-8eb7-3468e157f592"/*Gradient*/,
|
|
"Position": {
|
|
"X": 1250.2935,
|
|
"Y": 777.5802
|
|
}
|
|
},
|
|
{
|
|
"InputId": "cb9f9b0e-0486-400e-9fa1-5d2a997bb7d6"/*A*/,
|
|
"Position": {
|
|
"X": 888.22876,
|
|
"Y": 312.38416
|
|
},
|
|
"AddPadding": "True"
|
|
},
|
|
{
|
|
"InputId": "d23cbda2-0ac6-40ec-8600-590b1c50e0bd"/*GainAndBias*/,
|
|
"Position": {
|
|
"X": 748.22876,
|
|
"Y": 592.38416
|
|
},
|
|
"Min": 0.0,
|
|
"Max": 1.0,
|
|
"ClampMin": true,
|
|
"ClampMax": true,
|
|
"Format": "{0:0.000}",
|
|
"UseVec2Control": "GainAndBias"
|
|
},
|
|
{
|
|
"InputId": "e7f9c927-5d70-40d2-b5e3-43bd06731bf7"/*Offset*/,
|
|
"Position": {
|
|
"X": 748.22876,
|
|
"Y": 452.38416
|
|
},
|
|
"GroupTitle": "Parameters"
|
|
},
|
|
{
|
|
"InputId": "ee09aa68-6191-494f-9900-f0dff16df27d"/*B*/,
|
|
"Position": {
|
|
"X": 888.22876,
|
|
"Y": 347.38416
|
|
}
|
|
}
|
|
],
|
|
"SymbolChildUis": [
|
|
{
|
|
"ChildId": "045721a5-b2e4-4be6-8814-5719eb9a14ff"/*__padding*/,
|
|
"Position": {
|
|
"X": 888.22876,
|
|
"Y": 557.38416
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "0a51241e-82cc-4e7f-8dba-14b09d5fde7d"/*SearchAndReplace*/,
|
|
"Position": {
|
|
"X": 495.98956,
|
|
"Y": 58.11415
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "0b1b7b8e-96e6-46cd-a0ef-9bdf752156ac"/*GetBufferComponents*/,
|
|
"Position": {
|
|
"X": 1028.2288,
|
|
"Y": 902.1792
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "1b23a60a-ec90-46ee-9d2b-fc1c6774bcf2"/**3*/,
|
|
"Position": {
|
|
"X": 888.22876,
|
|
"Y": 832.1792
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "1c5a7452-2116-43bf-82b2-fcb705cd4505"/*BoolToInt*/,
|
|
"Position": {
|
|
"X": 1670.2935,
|
|
"Y": 1162.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "1cd47676-3f71-4b85-92dc-7ea4d3789ff6"/*PickMeshBuffer*/,
|
|
"Position": {
|
|
"X": -12.558411,
|
|
"Y": 527.6346
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "1db88aca-6875-4149-a848-466c418a7c9d"/*ComputeShaderStage*/,
|
|
"Position": {
|
|
"X": 1670.2935,
|
|
"Y": 532.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "25e0a278-7c58-4ecd-a5b6-faa6c5535ce6"/*GetBufferComponents*/,
|
|
"Position": {
|
|
"X": 392.0744,
|
|
"Y": 656.51605
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "2c4ed9d5-3fb9-4d18-9f74-7ff69aa554d0"/*ClampedSampler*/,
|
|
"Position": {
|
|
"X": 1530.2935,
|
|
"Y": 952.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "2e3f2080-fc1a-46d5-9495-f46d3bd9cc2c"/*PickMeshBuffer*/,
|
|
"Position": {
|
|
"X": 1810.2935,
|
|
"Y": 1092.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "2ff20e1a-68a4-4f87-aab4-1d5f25edad92"/*SplitMeshVertices*/,
|
|
"Position": {
|
|
"X": -152.55841,
|
|
"Y": 562.6346
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "60806960-ef46-4902-956c-7a443f274883"/*CalcDispatchCount*/,
|
|
"Position": {
|
|
"X": 635.9897,
|
|
"Y": 163.11415
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "60de44a0-bab5-40c9-8fbb-ecc010cfda1c"/*Vector3Components*/,
|
|
"Position": {
|
|
"X": 888.22876,
|
|
"Y": 452.38416
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "61688889-8a2c-4cef-8d2c-21693db38d0e"/*FloatsToBuffer*/,
|
|
"Style": "Resizable",
|
|
"Size": {
|
|
"X": 152.89519,
|
|
"Y": 118.55484
|
|
},
|
|
"Position": {
|
|
"X": 1028.2288,
|
|
"Y": 277.38416
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "64b19111-c536-442c-874b-9bda83a2245e"/*SearchAndReplace*/,
|
|
"Position": {
|
|
"X": 495.98956,
|
|
"Y": -11.885849
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "7bde21f4-82e3-4805-9230-19f62bedc933"/*BoolToInt*/,
|
|
"Position": {
|
|
"X": -152.55844,
|
|
"Y": 597.6346
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "7d5a1c78-55b1-4a03-b1a1-580f7bac3085"/*_MeshBufferComponents*/,
|
|
"Position": {
|
|
"X": 133.08041,
|
|
"Y": 696.2468
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "81a99287-63e9-4f78-a55d-3dcb26fbf400"/*NewVertices*/,
|
|
"Position": {
|
|
"X": 1028.2288,
|
|
"Y": 832.1792
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "89cbb801-a7da-42c6-a041-578049852182"/*GradientsToTexture*/,
|
|
"Position": {
|
|
"X": 1390.2935,
|
|
"Y": 777.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "8cbb6043-79a5-4542-8960-6f275872b73c"/*ExecuteBufferUpdate*/,
|
|
"Position": {
|
|
"X": 1670.2935,
|
|
"Y": 987.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "903510ec-753c-43d2-bf80-f21c2fcea8cf"/*GetBufferComponents*/,
|
|
"Position": {
|
|
"X": 392.07446,
|
|
"Y": 770.4151
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "986729a4-1141-436e-890d-86543475cfc8"/*SrvFromTexture2d*/,
|
|
"Position": {
|
|
"X": 1530.2935,
|
|
"Y": 742.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "993f2556-0f38-45f0-97da-574823077578"/*Vector2Components*/,
|
|
"Position": {
|
|
"X": 888.22876,
|
|
"Y": 592.38416
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "9e0f97a3-739a-4cbd-94c3-0b7570c58167"/*GenerateShaderGraphCode*/,
|
|
"Position": {
|
|
"X": 495.9896,
|
|
"Y": -151.88585
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "9f91dacf-78d5-44e1-8b58-0f1fc1c4ed53"/*NewFaceIndices*/,
|
|
"Position": {
|
|
"X": 1028.2288,
|
|
"Y": 995.55896
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "a2d98bb6-da17-48b5-96ee-8cabccdbb718"/*_AssembleMeshBuffers*/,
|
|
"Position": {
|
|
"X": 1670.2935,
|
|
"Y": 1057.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "a7bfc642-14f3-45ce-a39c-cebe669c8eec"/*ComputeShaderFromSource*/,
|
|
"Position": {
|
|
"X": 495.98956,
|
|
"Y": 128.11415
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "ab68edfa-4cb4-4d19-ae2c-34317a958cb8"/*GetBufferComponents*/,
|
|
"Position": {
|
|
"X": 1028.2288,
|
|
"Y": 1065.559
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "acdd88d2-353c-467b-9ca3-2feb8d6959d2"/*RecomputeNormals*/,
|
|
"Position": {
|
|
"X": 1670.2935,
|
|
"Y": 1127.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "cf536e06-e8b4-4059-aad2-efde90cfe011"/*SrvFromTexture2d*/,
|
|
"Position": {
|
|
"X": 1530.2935,
|
|
"Y": 777.5802
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "eeeb6448-5199-472d-a1d8-46baa6d833ce"/*LinearSampler*/,
|
|
"Position": {
|
|
"X": 1530.2935,
|
|
"Y": 917.5802
|
|
}
|
|
}
|
|
],
|
|
"OutputUis": [
|
|
{
|
|
"OutputId": "a4246b02-cacb-4c3d-9684-f34c9d7c07b5"/*MeshBuffers*/,
|
|
"Position": {
|
|
"X": 1810.2935,
|
|
"Y": 1197.5802
|
|
}
|
|
},
|
|
{
|
|
"OutputId": "f0663f25-ddaf-4e87-8a1e-086e923586be"/*GeneratedCode*/,
|
|
"Position": {
|
|
"X": 635.98956,
|
|
"Y": 58.11415
|
|
}
|
|
}
|
|
],
|
|
"Links": [
|
|
{
|
|
"Id": "ea006b0d-c1ef-4227-97da-ccffc1e67530",
|
|
"Title": "Using Custom Shaders",
|
|
"Description": "Documentation with required variables, helper functions and examples",
|
|
"LinkUrl": "https://help.tixl.app/advanced/UsingCustomShaders/",
|
|
"LinkType": "Documentation"
|
|
}
|
|
]
|
|
} |