wip: tvHead

This commit is contained in:
Alexandre Coirier
2026-06-05 22:29:51 +02:00
parent 2199870593
commit ecb6f94a55
32 changed files with 2667 additions and 9654 deletions
@@ -53,6 +53,9 @@
},
{
"m_Id": "75a4774b8d99493cb8fa3a9d5e279999"
},
{
"m_Id": "287122d43b5442328279ba172d9f035f"
}
],
"m_Keywords": [],
@@ -197,6 +200,9 @@
},
{
"m_Id": "5d10e456431f4dd1b75dfd8d7f5d2d67"
},
{
"m_Id": "669d3deb37c84ae484edecd241a15524"
}
],
"m_GroupDatas": [],
@@ -356,6 +362,20 @@
"m_SlotId": 13
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "669d3deb37c84ae484edecd241a15524"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c5d342277052409f87283f2c60ccf3a1"
},
"m_SlotId": 18
}
},
{
"m_OutputSlot": {
"m_Node": {
@@ -1123,10 +1143,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 905.9999389648438,
"y": 1075.0,
"width": 116.00006103515625,
"height": 33.9998779296875
"x": 848.0,
"y": 1114.0,
"width": 116.0,
"height": 34.0
}
},
"m_Slots": [
@@ -1263,6 +1283,34 @@
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.BooleanShaderProperty",
"m_ObjectId": "287122d43b5442328279ba172d9f035f",
"m_Guid": {
"m_GuidSerialized": "5bc46b70-c941-46ce-b6cb-f7e8ebf2c933"
},
"promotedFromAssetID": "",
"promotedFromCategoryName": "",
"promotedOrdering": -1,
"m_Name": "FogUse",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "FogUse",
"m_DefaultReferenceName": "_FogUse",
"m_OverrideReferenceName": "_FogUse",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_PerRendererData": false,
"m_customAttributes": [],
"m_Value": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
@@ -1341,10 +1389,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 1063.0,
"y": 991.9999389648438,
"x": 1005.0,
"y": 1031.0,
"width": 185.0,
"height": 189.99993896484376
"height": 190.0
}
},
"m_Slots": [
@@ -1385,6 +1433,20 @@
"m_FunctionBody": "Enter function body here..."
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
"m_ObjectId": "35257c465e464eb5a82a0c2e515e1ba2",
"m_Id": 0,
"m_DisplayName": "FogUse",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": false,
"m_DefaultValue": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
@@ -2377,6 +2439,42 @@
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "669d3deb37c84ae484edecd241a15524",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 583.0,
"y": 1097.0,
"width": 117.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "35257c465e464eb5a82a0c2e515e1ba2"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "287122d43b5442328279ba172d9f035f"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
@@ -2537,6 +2635,9 @@
"m_ObjectId": "71a76904d2c7441096e1ea97290cea15",
"m_Name": "Fog",
"m_ChildObjectList": [
{
"m_Id": "287122d43b5442328279ba172d9f035f"
},
{
"m_Id": "4d1b5e4632d84153a3a55ead37696b1d"
},
@@ -2591,8 +2692,8 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 905.9999389648438,
"y": 1108.9998779296875,
"x": 848.0,
"y": 1148.0,
"width": 115.0,
"height": 34.0
}
@@ -2802,10 +2903,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 904.9999389648438,
"y": 1142.9998779296875,
"x": 847.0,
"y": 1182.0,
"width": 116.0,
"height": 34.0001220703125
"height": 34.0
}
},
"m_Slots": [
@@ -3498,7 +3599,7 @@
"m_Position": {
"serializedVersion": "2",
"x": 583.0,
"y": 1160.0,
"y": 1199.0,
"width": 117.0,
"height": 34.0
}
@@ -3558,10 +3659,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 901.9999389648438,
"y": 1040.9998779296875,
"width": 114.00006103515625,
"height": 34.0001220703125
"x": 844.0,
"y": 1080.0,
"width": 114.0,
"height": 34.0
}
},
"m_Slots": [
@@ -3838,10 +3939,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 575.0000610351563,
"y": 1092.0,
"width": 124.99993896484375,
"height": 34.0001220703125
"x": 575.0,
"y": 1131.0,
"width": 125.0,
"height": 34.0
}
},
"m_Slots": [
@@ -4070,6 +4171,9 @@
{
"m_Id": "a34a1ccc27e94fc8890ea8c79a176430"
},
{
"m_Id": "e233b7c79bac436fa1cd754c41001c8a"
},
{
"m_Id": "b4699b259f0d4db78cc8b1ab43fc2abb"
},
@@ -4253,9 +4357,9 @@
"m_Position": {
"serializedVersion": "2",
"x": 586.0,
"y": 1126.0001220703125,
"y": 1165.0,
"width": 114.0,
"height": 33.9998779296875
"height": 34.0
}
},
"m_Slots": [
@@ -4439,6 +4543,20 @@
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
"m_ObjectId": "e233b7c79bac436fa1cd754c41001c8a",
"m_Id": 18,
"m_DisplayName": "FogUse",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "FogUse",
"m_StageCapability": 3,
"m_Value": false,
"m_DefaultValue": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
@@ -4705,7 +4823,7 @@
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "f566194b3c684ca385bfeeafe3ab1550",
"m_Id": 0,
"m_DisplayName": "NormaStrength",
"m_DisplayName": "Strength",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
@@ -267,6 +267,7 @@ void EnkiBillal_float
float3 NormalWS,
float ProjectionsBlend,
float DetailSize,
uint FogUse,
float4 FogColor,
float FogMin,
float FogMax,
@@ -311,7 +312,11 @@ void EnkiBillal_float
Output = Color.rgb;
Output = lerp(Output.rgb, detail.rgb, detailMask);
Output = lerp(Output.rgb, FogColor.rgb, smoothstep(FogMin, FogMax, depth) * FogColor.a);
if (FogUse)
{
Output = lerp(Output.rgb, FogColor.rgb, smoothstep(FogMin, FogMax, depth) * FogColor.a);
}
}
#endif