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
+481
View File
@@ -0,0 +1,481 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "63cee03910b949fd9be3ab1d8c503696",
"m_Properties": [
{
"m_Id": "5bbf1e30f7fb46de997987d03099ac7b"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "eea5570635f04746968cef24bfe51169"
}
],
"m_Nodes": [
{
"m_Id": "5a633deb092645faa360aec12678fe6c"
},
{
"m_Id": "d27a7324e1fa4bd487adda31554bae5b"
},
{
"m_Id": "5028a5ada0f04d75a2436b56c83b1ea0"
},
{
"m_Id": "79cbf0caa6c24802b2b92e4571b4ad9e"
},
{
"m_Id": "c6cad99c3ffc4a358167fe096e2577ec"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c6cad99c3ffc4a358167fe096e2577ec"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "79cbf0caa6c24802b2b92e4571b4ad9e"
},
"m_SlotId": 0
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": [
{
"m_Id": "5a633deb092645faa360aec12678fe6c"
},
{
"m_Id": "d27a7324e1fa4bd487adda31554bae5b"
},
{
"m_Id": "5028a5ada0f04d75a2436b56c83b1ea0"
}
]
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 200.0
},
"m_Blocks": [
{
"m_Id": "79cbf0caa6c24802b2b92e4571b4ad9e"
}
]
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Coiriergraphics",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": ""
},
"m_SubDatas": [],
"m_ActiveTargets": [
{
"m_Id": "311baa4e6cf646d48d9eb0ddc61bac38"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot",
"m_ObjectId": "2af0850678c145a9a58466c78baf2ff9",
"m_Id": 0,
"m_DisplayName": "Position",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Position",
"m_StageCapability": 1,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_Space": 0
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget",
"m_ObjectId": "311baa4e6cf646d48d9eb0ddc61bac38",
"m_Datas": [],
"m_ActiveSubTarget": {
"m_Id": "e80aa5a21468408a8b1802688dcdfb91"
},
"m_AllowMaterialOverride": false,
"m_SurfaceType": 0,
"m_ZTestMode": 4,
"m_ZWriteControl": 0,
"m_AlphaMode": 0,
"m_RenderFace": 0,
"m_AlphaClip": false,
"m_CastShadows": true,
"m_ReceiveShadows": true,
"m_DisableTint": false,
"m_Sort3DAs2DCompatible": false,
"m_AdditionalMotionVectorMode": 0,
"m_AlembicMotionVectors": false,
"m_SupportsLODCrossFade": false,
"m_CustomEditorGUI": "",
"m_SupportVFX": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot",
"m_ObjectId": "414d8b3dd2ab465dba25bc973ad162a4",
"m_Id": 0,
"m_DisplayName": "Normal",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Normal",
"m_StageCapability": 1,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_Space": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "5028a5ada0f04d75a2436b56c83b1ea0",
"m_Group": {
"m_Id": ""
},
"m_Name": "VertexDescription.Tangent",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "6d40d079e4094d8aa0cab6208d7630b5"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "VertexDescription.Tangent"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "5a633deb092645faa360aec12678fe6c",
"m_Group": {
"m_Id": ""
},
"m_Name": "VertexDescription.Position",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "2af0850678c145a9a58466c78baf2ff9"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "VertexDescription.Position"
}
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty",
"m_ObjectId": "5bbf1e30f7fb46de997987d03099ac7b",
"m_Guid": {
"m_GuidSerialized": "c5ca0c47-b437-4a0c-b474-65e4f47d398a"
},
"promotedFromAssetID": "",
"promotedFromCategoryName": "",
"promotedOrdering": -1,
"m_Name": "Color",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Color",
"m_DefaultReferenceName": "_Color",
"m_OverrideReferenceName": "",
"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": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 1.0
},
"isMainColor": false,
"m_ColorMode": 1
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot",
"m_ObjectId": "6d40d079e4094d8aa0cab6208d7630b5",
"m_Id": 0,
"m_DisplayName": "Tangent",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Tangent",
"m_StageCapability": 1,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_Space": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "79cbf0caa6c24802b2b92e4571b4ad9e",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.BaseColor",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "9354af68c71549edb287c96a1d0f402f"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.BaseColor"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
"m_ObjectId": "9354af68c71549edb287c96a1d0f402f",
"m_Id": 0,
"m_DisplayName": "Base Color",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "BaseColor",
"m_StageCapability": 2,
"m_Value": {
"x": 0.5,
"y": 0.5,
"z": 0.5
},
"m_DefaultValue": {
"x": 0.5,
"y": 0.5,
"z": 0.5
},
"m_Labels": [],
"m_ColorMode": 0,
"m_DefaultColor": {
"r": 0.5,
"g": 0.5,
"b": 0.5,
"a": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "bcd1f2d014da40ae84bd753f56d18926",
"m_Id": 0,
"m_DisplayName": "Color",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "c6cad99c3ffc4a358167fe096e2577ec",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -191.0,
"y": 228.0,
"width": 105.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "bcd1f2d014da40ae84bd753f56d18926"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "5bbf1e30f7fb46de997987d03099ac7b"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "d27a7324e1fa4bd487adda31554bae5b",
"m_Group": {
"m_Id": ""
},
"m_Name": "VertexDescription.Normal",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "414d8b3dd2ab465dba25bc973ad162a4"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "VertexDescription.Normal"
}
{
"m_SGVersion": 2,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget",
"m_ObjectId": "e80aa5a21468408a8b1802688dcdfb91",
"m_KeepLightingVariants": false,
"m_DefaultDecalBlending": true,
"m_DefaultSSAO": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "eea5570635f04746968cef24bfe51169",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "5bbf1e30f7fb46de997987d03099ac7b"
}
]
}
@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: fa4d764e268832040b5a9b5371bd8978
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
useAsTemplate: 0
exposeTemplateAsShader: 0
template:
name:
category:
description:
icon: {instanceID: 0}
thumbnail: {instanceID: 0}