437 lines
11 KiB
Plaintext
437 lines
11 KiB
Plaintext
{
|
|
"FormatVersion": 3,
|
|
"Id": "46daab0e-e957-413e-826c-0699569d0e07"/*CustomPixelShader*/,
|
|
"Description": "Computes the output color for every pixel of a texture from a short HLSL code fragment.\n\nWrite the body of a pixel shader that sets the result color `c` (float4). Prepared variables include `uv`, `PixelCoord` and the images ImageA / ImageB; helpers like SampleGradient(f) and Biased(f) connect the code to the Gradient and GainAndBias parameters. Explore the presets for examples.\n\nFull documentation: https://help.tixl.app/advanced/UsingCustomShaders/\n\n\n```\nTesdf\najdfklsdf\n```",
|
|
"InputUis": [
|
|
{
|
|
"InputId": "1ed14f4d-3b1e-4f24-9d83-d96005217716"/*TemplateFile*/,
|
|
"Position": {
|
|
"X": 1899.3372,
|
|
"Y": 110.80954
|
|
},
|
|
"Usage": "FilePath",
|
|
"FileFilter": "hlsl"
|
|
},
|
|
{
|
|
"InputId": "2dc4d202-2ee5-4d4d-b1b2-234a0b21ab94"/*ConstantBuffers*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 430.8828
|
|
},
|
|
"Description": "Use FloatsToBuffer or Ints to buffer to pass additional input params, define in AdditionalCode for example:\n\n`cbuffer AdditionalIntParams: register(b2) { int Index; }`\n\n`cbuffer AdditionalFloatParams: register(b3) { float4 Color; }`"
|
|
},
|
|
{
|
|
"InputId": "3d84725a-594b-46d8-aa21-eec99026115d"/*A*/,
|
|
"Position": {
|
|
"X": 1231.8137,
|
|
"Y": 382.4334
|
|
},
|
|
"AddPadding": "True"
|
|
},
|
|
{
|
|
"InputId": "5f90f885-0ccc-4014-a921-dc710257835a"/*ImageA*/,
|
|
"Position": {
|
|
"X": 1380.1267,
|
|
"Y": 628.32
|
|
},
|
|
"AddPadding": "True"
|
|
},
|
|
{
|
|
"InputId": "60bdd684-8005-4576-b09b-1b5d6124da1d"/*C*/,
|
|
"Position": {
|
|
"X": 1231.8137,
|
|
"Y": 452.4334
|
|
}
|
|
},
|
|
{
|
|
"InputId": "674cabbd-cf31-46ac-9a1a-4f6bd727c977"/*Offset*/,
|
|
"Position": {
|
|
"X": 1091.8137,
|
|
"Y": 312.4334
|
|
},
|
|
"GroupTitle": "Settings",
|
|
"Min": -2.0,
|
|
"Max": 2.0,
|
|
"UseVec2Control": "Position"
|
|
},
|
|
{
|
|
"InputId": "83e06d04-02bd-40cc-8666-d5dd62a9e63e"/*Resolution*/,
|
|
"Position": {
|
|
"X": 1439.4065,
|
|
"Y": 896.5569
|
|
},
|
|
"AddPadding": "True"
|
|
},
|
|
{
|
|
"InputId": "8c3ffefe-8721-4dde-b252-22eb8be02d3f"/*ShaderCode*/,
|
|
"Position": {
|
|
"X": 1759.3374,
|
|
"Y": 285.80954
|
|
},
|
|
"Usage": "Multiline"
|
|
},
|
|
{
|
|
"InputId": "8ea35e89-137a-4cb3-b26d-ba6bd9e5ce12"/*CustomSampler*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 675.8828
|
|
},
|
|
"Description": "Use SamplerState node to add custom sampler(s); first sampler input is defined in template as CustomSampler.\nsamplers coming after that will need to be defined in AdditionalCode, for example:\n\n`sampler Sampler2 : register(s2);`"
|
|
},
|
|
{
|
|
"InputId": "92fdfa08-e7da-4a71-9145-277b74c93729"/*GenerateMips*/,
|
|
"Position": {
|
|
"X": 2477.35,
|
|
"Y": 1025.8828
|
|
}
|
|
},
|
|
{
|
|
"InputId": "a965b7d3-c78f-4da7-ae70-c461cc9b173c"/*Clear*/,
|
|
"Position": {
|
|
"X": 2004.532,
|
|
"Y": 1000.41077
|
|
},
|
|
"Description": "Clearing RenderTarget\nsetting it to false also enables blending mode, so that result is blended on top of backbuffer"
|
|
},
|
|
{
|
|
"InputId": "b4895a95-5ff4-4583-9ec3-befcf0f7b18b"/*B*/,
|
|
"Position": {
|
|
"X": 1231.8137,
|
|
"Y": 417.4334
|
|
}
|
|
},
|
|
{
|
|
"InputId": "b4914d9d-7a39-46e1-8b45-803e1449039a"/*GainAndBias*/,
|
|
"Position": {
|
|
"X": 1091.8137,
|
|
"Y": 522.4334
|
|
},
|
|
"Min": 0.0,
|
|
"Max": 1.0,
|
|
"ClampMin": true,
|
|
"ClampMax": true,
|
|
"Format": "{0:0.000}",
|
|
"UseVec2Control": "GainAndBias"
|
|
},
|
|
{
|
|
"InputId": "b898c5a9-1c4b-4958-a7c1-01c27da10f6a"/*ShaderResources*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 570.8828
|
|
},
|
|
"Description": "Use SrvFromTexutre2d for additional texture inputs. They will need to be defined in AdditionalCode, for example:\n\n`Texture2D<float4> Image3 : register(t2);`"
|
|
},
|
|
{
|
|
"InputId": "c9a801ec-13fb-4ad4-b0cd-d125b5db500a"/*AdditionalCode*/,
|
|
"Position": {
|
|
"X": 1759.3374,
|
|
"Y": 215.80954
|
|
},
|
|
"GroupTitle": "Additional Options...",
|
|
"Usage": "Multiline"
|
|
},
|
|
{
|
|
"InputId": "db522fd4-5cfc-49f6-9983-02ec0dd6090a"/*D*/,
|
|
"Position": {
|
|
"X": 1231.8137,
|
|
"Y": 487.4334
|
|
}
|
|
},
|
|
{
|
|
"InputId": "e0d05b9c-d433-4b9d-8e70-db2f7993d628"/*TextureFormat*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 990.8829
|
|
}
|
|
},
|
|
{
|
|
"InputId": "e1c50230-8821-4109-8119-fd8b66b43e7f"/*Gradient*/,
|
|
"Position": {
|
|
"X": 2337.3499,
|
|
"Y": 535.8828
|
|
}
|
|
},
|
|
{
|
|
"InputId": "e63cf24c-0e01-47d4-9532-18261310315e"/*ImageB*/,
|
|
"Position": {
|
|
"X": 1376.6069,
|
|
"Y": 1029.4377
|
|
}
|
|
}
|
|
],
|
|
"SymbolChildUis": [
|
|
{
|
|
"ChildId": "01b16346-da3d-44c7-b016-58e2149e71e1"/*Rasterizer*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 780.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "18c31c73-446a-4d56-9e84-70d93618a312"/*Vector2Components*/,
|
|
"Position": {
|
|
"X": 1231.8137,
|
|
"Y": 312.4334
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "1a620eb5-8a78-4f99-98b3-9777068a4a9b"/*Vector2Components*/,
|
|
"Position": {
|
|
"X": 1231.8137,
|
|
"Y": 522.4334
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "22c8a39d-1eb6-4f50-a675-fe441d8955ae"/*Int2Components*/,
|
|
"Position": {
|
|
"X": 1759.3374,
|
|
"Y": 378.00604
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "237490cb-db7b-4154-a672-35ab594b3e93"/*SrvFromTexture2d*/,
|
|
"Position": {
|
|
"X": 1376.6069,
|
|
"Y": 1134.4373
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "25de290b-67e4-49f0-9bc1-ed881ce14976"/*SamplerState*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 605.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "26d9f768-118f-4cfe-bec6-ffd2596d8877"/*Draw*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 850.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "2f16d7a1-5339-4072-8cc8-d07c818a2468"/*LoadImage*/,
|
|
"Position": {
|
|
"X": 1132.6564,
|
|
"Y": 861.69354
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "3b71d7ec-4c5b-4243-8d78-057e7268191b"/*BlendEnabled*/,
|
|
"Position": {
|
|
"X": 2256.2815,
|
|
"Y": 741.3519
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "4c5573bf-ea90-446a-937d-9ca327d4ee2c"/*ClampedSampler*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 640.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "4c7fe29c-09f1-496b-8ca1-a18d44e13c0f"/*SearchAndReplace*/,
|
|
"Position": {
|
|
"X": 1899.3372,
|
|
"Y": 180.80954
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "58c4b01a-3060-4336-a6da-337701ecb6ed"/*ReadFile*/,
|
|
"Position": {
|
|
"X": 1899.3372,
|
|
"Y": 145.80954
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "594b32cf-aaad-4785-90ad-6bfe9425f8ab"/*BlendState*/,
|
|
"Position": {
|
|
"X": 2256.2815,
|
|
"Y": 811.3519
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "5a420498-2b15-4a33-b652-a749055f2397"/*SrvFromTexture2d*/,
|
|
"Position": {
|
|
"X": 1380.1267,
|
|
"Y": 733.32
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "5b491344-ca0d-4c29-aef3-bcf89c8c45d3"/*InputAssemblerStage*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 745.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "5e6d5cb9-df8f-494d-b50e-31499b257f34"/*PixelShaderFromSource*/,
|
|
"Position": {
|
|
"X": 1899.3372,
|
|
"Y": 320.80954
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "8435d04a-724f-4886-97ee-480691ce219d"/*RenderTarget*/,
|
|
"Position": {
|
|
"X": 2757.35,
|
|
"Y": 885.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "8b59a194-c280-41cf-b38a-f52b24e8b134"/*UseFallbackTexture*/,
|
|
"Position": {
|
|
"X": 1380.1267,
|
|
"Y": 663.32
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "a1385a98-e07a-4433-975c-b1e6ac12fa41"/*RasterizerState*/,
|
|
"Position": {
|
|
"X": 2477.35,
|
|
"Y": 780.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "a21a6b5b-bc5d-4126-8710-dee6264a9be1"/*SrvFromTexture2d*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 535.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "bb40096e-696c-43e9-af55-40ba0451bfb4"/*Clear*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 955.8829
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "c4ab0bb6-bc1a-405a-9730-f89fa9618962"/*FloatsToBuffer*/,
|
|
"Style": "Resizable",
|
|
"Size": {
|
|
"X": 142.91595,
|
|
"Y": 459.8296
|
|
},
|
|
"Position": {
|
|
"X": 1371.8137,
|
|
"Y": 277.4334
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "c6acc8b3-9278-41f8-8c15-1c89dfa29d4a"/*Execute*/,
|
|
"Style": "Resizable",
|
|
"Size": {
|
|
"X": 153.01604,
|
|
"Y": 422.9334
|
|
},
|
|
"Position": {
|
|
"X": 2757.35,
|
|
"Y": 710.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "c7bcc51b-7a42-43eb-9391-4c25a26b9478"/*RenderTargetBlendDescription*/,
|
|
"Position": {
|
|
"X": 2256.2815,
|
|
"Y": 776.3519
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "c7f79a6d-f308-4368-9319-f58bb24b379e"/*UseFallbackTexture*/,
|
|
"Position": {
|
|
"X": 1376.6069,
|
|
"Y": 1064.438
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "cbdcc3e1-0e6e-46fc-8b12-977546c4e13e"/*IntsToBuffer*/,
|
|
"Position": {
|
|
"X": 1899.3372,
|
|
"Y": 378.00604
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "d37bc20e-bf0b-46d7-b160-ed428523af78"/*GradientsToTexture*/,
|
|
"Position": {
|
|
"X": 2477.35,
|
|
"Y": 535.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "dfaabd73-b111-4eb6-a273-3a2db3cd3833"/*OutputMergerStage*/,
|
|
"Position": {
|
|
"X": 2396.2815,
|
|
"Y": 811.3519
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "e2cd7180-4b98-46a0-b5d3-c6c769674434"/*VertexShader*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 290.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "e45d926c-4208-4305-91da-2fe427be6dc1"/*Not*/,
|
|
"Position": {
|
|
"X": 2256.2815,
|
|
"Y": 706.3519
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "ece44113-bc25-4b4a-b8f4-23f6037d1ad0"/*SearchAndReplace*/,
|
|
"Position": {
|
|
"X": 1899.3372,
|
|
"Y": 250.80954
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "efd3aeb9-2f4a-4297-a015-01e78f9521cb"/*GetTextureSize*/,
|
|
"Position": {
|
|
"X": 1579.4066,
|
|
"Y": 861.5569
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "f48034f0-8911-493d-93e7-32631c436b41"/*SetPixelAndVertexShaderStage*/,
|
|
"Position": {
|
|
"X": 2757.35,
|
|
"Y": 290.8828
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "f8db1d5e-bf8f-4d55-89ea-ded2def3e1d7"/*GenerateMips*/,
|
|
"Position": {
|
|
"X": 2617.35,
|
|
"Y": 1025.8828
|
|
}
|
|
}
|
|
],
|
|
"OutputUis": [
|
|
{
|
|
"OutputId": "12fcfd9e-1c2f-46fc-b570-83b93ec7d101"/*TextureOutput*/,
|
|
"Position": {
|
|
"X": 2757.35,
|
|
"Y": 1060.8826
|
|
}
|
|
},
|
|
{
|
|
"OutputId": "163afb2e-2c9d-46b6-8959-a7736912d3f5"/*ShaderCode_*/,
|
|
"Position": {
|
|
"X": 2039.3372,
|
|
"Y": 250.80954
|
|
}
|
|
}
|
|
],
|
|
"Links": [
|
|
{
|
|
"Id": "a3c1f9d2-8b47-4e6a-9d1c-2f5e8a7b6c01",
|
|
"Title": "Using Custom Shaders",
|
|
"Description": "Documentation with required variables, helper functions and examples",
|
|
"LinkUrl": "https://help.tixl.app/advanced/UsingCustomShaders/",
|
|
"LinkType": "Documentation"
|
|
}
|
|
]
|
|
} |