add fakeshadow
This commit is contained in:
parent
2d834cf06a
commit
ed2954890d
@ -21697,6 +21697,136 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 599465214307944399, guid: 95cf80858ee0c4940b72f62b17aefd41, type: 3}
|
||||
m_PrefabInstance: {fileID: 1401996525}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1415788260
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1415788265}
|
||||
- component: {fileID: 1415788264}
|
||||
- component: {fileID: 1415788263}
|
||||
- component: {fileID: 1415788262}
|
||||
- component: {fileID: 1415788261}
|
||||
m_Layer: 0
|
||||
m_Name: Cube (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!114 &1415788261
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1415788260}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f80696f542aa2a64eb1d2f6b1f016045, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
lightData:
|
||||
- {x: -1.915, y: -1.697, z: -122.668, w: 1}
|
||||
- {x: -1.915, y: -1.697, z: -122.668, w: 1}
|
||||
- {x: 0, y: 0, z: 0, w: 0}
|
||||
- {x: 0, y: 0, z: 0, w: 0}
|
||||
lightCfg:
|
||||
- lightRange: 1
|
||||
position: {fileID: 1465685105}
|
||||
- lightRange: 1
|
||||
position: {fileID: 1636389359}
|
||||
--- !u!65 &1415788262
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1415788260}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 1
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 1, y: 1, z: 1}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!23 &1415788263
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1415788260}
|
||||
m_Enabled: 0
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!33 &1415788264
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1415788260}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &1415788265
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1415788260}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -1.915, y: -1.697, z: -122.668}
|
||||
m_LocalScale: {x: 11.736976, y: 3.9665344, z: 5.256461}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1465685105}
|
||||
- {fileID: 1636389359}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &1416703641
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -21981,6 +22111,37 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 599465214307944399, guid: 8214c23069502ab4da3d9555497ea658, type: 3}
|
||||
m_PrefabInstance: {fileID: 1459160047}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1465685104
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1465685105}
|
||||
m_Layer: 0
|
||||
m_Name: GameObject
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1465685105
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1465685104}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1415788265}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1479054984
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -23028,7 +23189,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6692523532005034147, guid: 46addc99141466049b9b07650ad329c5, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6692523533159023508, guid: 46addc99141466049b9b07650ad329c5, type: 3}
|
||||
propertyPath: m_CurrentVolume
|
||||
@ -24463,6 +24624,37 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7548273142197716425, guid: 0789421bfb938644babec4c8798c163c, type: 3}
|
||||
m_PrefabInstance: {fileID: 1636010228}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1636389358
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1636389359}
|
||||
m_Layer: 0
|
||||
m_Name: GameObject (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1636389359
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1636389358}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1415788265}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1641590532
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -34132,3 +34324,4 @@ SceneRoots:
|
||||
- {fileID: 1215335451}
|
||||
- {fileID: 915045435}
|
||||
- {fileID: 1641590535}
|
||||
- {fileID: 1415788265}
|
||||
|
||||
@ -81,23 +81,23 @@ MonoBehaviour:
|
||||
m_OverrideState: 0
|
||||
m_Value: {x: 50, y: 95}
|
||||
minLuminance:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
m_OverrideState: 1
|
||||
m_Value: -5
|
||||
maxLuminance:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
exposureCompensation:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
eyeAdaptation:
|
||||
m_OverrideState: 0
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
speedUp:
|
||||
m_OverrideState: 0
|
||||
m_Value: 2
|
||||
speedDown:
|
||||
m_OverrideState: 0
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
speedDown:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.5
|
||||
--- !u!114 &5935297997615179469
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
|
||||
@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 0b2db86121404754db890f4c8dfe81b2, type: 3}
|
||||
m_Name: Bloom
|
||||
m_EditorClassIdentifier:
|
||||
active: 0
|
||||
active: 1
|
||||
skipIterations:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
@ -75,7 +75,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 5a00a63fdd6bd2a45ab1f2d869305ffd, type: 3}
|
||||
m_Name: OasisFogVolumeComponent
|
||||
m_EditorClassIdentifier:
|
||||
active: 0
|
||||
active: 1
|
||||
Density:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.002
|
||||
@ -103,19 +103,19 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 66f335fb1ffd8684294ad653bf1c7564, type: 3}
|
||||
m_Name: ColorAdjustments
|
||||
m_EditorClassIdentifier:
|
||||
active: 0
|
||||
active: 1
|
||||
postExposure:
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
contrast:
|
||||
m_OverrideState: 0
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
colorFilter:
|
||||
m_OverrideState: 0
|
||||
m_OverrideState: 1
|
||||
m_Value: {r: 1, g: 1, b: 1, a: 1}
|
||||
hueShift:
|
||||
m_OverrideState: 0
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
saturation:
|
||||
m_OverrideState: 0
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
|
||||
@ -41,6 +41,12 @@
|
||||
},
|
||||
{
|
||||
"m_Id": "2078140736f941f0b717f86b137c3c53"
|
||||
},
|
||||
{
|
||||
"m_Id": "cb5e4d8a5ef841c3be09e62ace1cc9f6"
|
||||
},
|
||||
{
|
||||
"m_Id": "7a19753f64784d3786837f43ed0fe08b"
|
||||
}
|
||||
],
|
||||
"m_Keywords": [
|
||||
@ -67,6 +73,9 @@
|
||||
},
|
||||
{
|
||||
"m_Id": "2649d00b2a184ffabf87810bb1a1591b"
|
||||
},
|
||||
{
|
||||
"m_Id": "1ce48008b522454e964f867f71d37548"
|
||||
}
|
||||
],
|
||||
"m_Nodes": [
|
||||
@ -306,6 +315,21 @@
|
||||
},
|
||||
{
|
||||
"m_Id": "99a4c47de52c4e7097646c8c05434e47"
|
||||
},
|
||||
{
|
||||
"m_Id": "1ea6a740a4ce40d2989ed8b1c271091f"
|
||||
},
|
||||
{
|
||||
"m_Id": "40d886d2875443b0af11ad24b82f7c9a"
|
||||
},
|
||||
{
|
||||
"m_Id": "79c976cdf7824a15899c308571d8037b"
|
||||
},
|
||||
{
|
||||
"m_Id": "955fe20d87c94afead018e1d42d1b2d7"
|
||||
},
|
||||
{
|
||||
"m_Id": "36ef66303ab74b009e1eb0a3b114bc4a"
|
||||
}
|
||||
],
|
||||
"m_GroupDatas": [
|
||||
@ -577,6 +601,20 @@
|
||||
"m_SlotId": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "1ea6a740a4ce40d2989ed8b1c271091f"
|
||||
},
|
||||
"m_SlotId": 3
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "36ef66303ab74b009e1eb0a3b114bc4a"
|
||||
},
|
||||
"m_SlotId": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
@ -731,6 +769,20 @@
|
||||
"m_SlotId": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "36ef66303ab74b009e1eb0a3b114bc4a"
|
||||
},
|
||||
"m_SlotId": 2
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "efb96da78fbb48f4b6f7096d0a6ebf0e"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
@ -745,6 +797,20 @@
|
||||
"m_SlotId": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "40d886d2875443b0af11ad24b82f7c9a"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "1ea6a740a4ce40d2989ed8b1c271091f"
|
||||
},
|
||||
"m_SlotId": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
@ -955,6 +1021,20 @@
|
||||
"m_SlotId": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "79c976cdf7824a15899c308571d8037b"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "1ea6a740a4ce40d2989ed8b1c271091f"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
@ -1062,7 +1142,7 @@
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "97af776edada4a9db23f653dbb2ee668"
|
||||
"m_Id": "36ef66303ab74b009e1eb0a3b114bc4a"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
}
|
||||
@ -1076,11 +1156,25 @@
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "efb96da78fbb48f4b6f7096d0a6ebf0e"
|
||||
"m_Id": "97af776edada4a9db23f653dbb2ee668"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "955fe20d87c94afead018e1d42d1b2d7"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "1ea6a740a4ce40d2989ed8b1c271091f"
|
||||
},
|
||||
"m_SlotId": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
@ -2082,6 +2176,31 @@
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
|
||||
"m_ObjectId": "06294a92f18a49f4b175bd722d0c1e4d",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "FakeShadowsArgs",
|
||||
"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.RedirectNodeData",
|
||||
@ -2176,6 +2295,29 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
||||
"m_ObjectId": "08189ced5fdf4af7a71fe810bc703ec6",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "PlayerPosition",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Out",
|
||||
"m_StageCapability": 3,
|
||||
"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_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
|
||||
@ -2868,6 +3010,29 @@
|
||||
"m_Channel": 0
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
||||
"m_ObjectId": "1a908772241a4925b1b1b1319b7a10f7",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "Out",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Out",
|
||||
"m_StageCapability": 3,
|
||||
"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_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
@ -2983,6 +3148,21 @@
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
|
||||
"m_ObjectId": "1ce48008b522454e964f867f71d37548",
|
||||
"m_Name": "FakeShadow",
|
||||
"m_ChildObjectList": [
|
||||
{
|
||||
"m_Id": "cb5e4d8a5ef841c3be09e62ace1cc9f6"
|
||||
},
|
||||
{
|
||||
"m_Id": "7a19753f64784d3786837f43ed0fe08b"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode",
|
||||
@ -3067,6 +3247,55 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 1,
|
||||
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
|
||||
"m_ObjectId": "1ea6a740a4ce40d2989ed8b1c271091f",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "FakeShadows (Custom Function)",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": 3966.0,
|
||||
"y": 883.0,
|
||||
"width": 234.0,
|
||||
"height": 326.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "7533fb9486f347b8ac5c5d9ef42cf796"
|
||||
},
|
||||
{
|
||||
"m_Id": "a638044629734c41a87fed5074fb73cd"
|
||||
},
|
||||
{
|
||||
"m_Id": "e8a4eeba42d7417694282f8895b31135"
|
||||
},
|
||||
{
|
||||
"m_Id": "cf4b36c4e1cb4ab190680a2e5d2ab58b"
|
||||
}
|
||||
],
|
||||
"synonyms": [
|
||||
"code",
|
||||
"HLSL"
|
||||
],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_SourceType": 0,
|
||||
"m_FunctionName": "FakeShadows",
|
||||
"m_FunctionSource": "c287be2b22814f0da401f7bdb1d6a2c1",
|
||||
"m_FunctionBody": "Enter function body here..."
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
|
||||
@ -4173,6 +4402,49 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
|
||||
"m_ObjectId": "36ef66303ab74b009e1eb0a3b114bc4a",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Multiply",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": 4222.0,
|
||||
"y": 739.0,
|
||||
"width": 208.0,
|
||||
"height": 302.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "f62724f4066f4e8d9ba43a3f7ddd075a"
|
||||
},
|
||||
{
|
||||
"m_Id": "c44603fd0cd34d2e90a067b6bd70367b"
|
||||
},
|
||||
{
|
||||
"m_Id": "7271897b8dac49a485fe79e6b531c52c"
|
||||
}
|
||||
],
|
||||
"synonyms": [
|
||||
"multiplication",
|
||||
"times",
|
||||
"x"
|
||||
],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
@ -4533,6 +4805,43 @@
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 1,
|
||||
"m_Type": "UnityEditor.ShaderGraph.PositionNode",
|
||||
"m_ObjectId": "40d886d2875443b0af11ad24b82f7c9a",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Position",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": 3722.0,
|
||||
"y": 1027.0,
|
||||
"width": 208.0,
|
||||
"height": 315.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "1a908772241a4925b1b1b1319b7a10f7"
|
||||
}
|
||||
],
|
||||
"synonyms": [
|
||||
"location"
|
||||
],
|
||||
"m_Precision": 1,
|
||||
"m_PreviewExpanded": false,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 2,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Space": 2,
|
||||
"m_PositionSource": 0
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.RedirectNodeData",
|
||||
@ -5317,8 +5626,8 @@
|
||||
"m_ObjectId": "57babe972b6b4f82913b0f9611d0db56",
|
||||
"m_Title": "Sand Normal Unpack",
|
||||
"m_Position": {
|
||||
"x": 1626.0003662109375,
|
||||
"y": 521.0
|
||||
"x": 1626.0001220703125,
|
||||
"y": 520.9998779296875
|
||||
}
|
||||
}
|
||||
|
||||
@ -5525,8 +5834,8 @@
|
||||
"m_ObjectId": "5d0be58100c74d1580b95814654e3dba",
|
||||
"m_Title": "Sand Color Ramp & pack Color+Smoothness",
|
||||
"m_Position": {
|
||||
"x": 1478.0001220703125,
|
||||
"y": 295.0
|
||||
"x": 1478.0,
|
||||
"y": 295.0000305175781
|
||||
}
|
||||
}
|
||||
|
||||
@ -5924,8 +6233,8 @@
|
||||
"m_ObjectId": "68757db7797640349d4c8ed3c2186f5b",
|
||||
"m_Title": "Gravels textures sample",
|
||||
"m_Position": {
|
||||
"x": 1723.0001220703125,
|
||||
"y": -632.0000610351563
|
||||
"x": 1723.0,
|
||||
"y": -632.0
|
||||
}
|
||||
}
|
||||
|
||||
@ -5998,8 +6307,8 @@
|
||||
"m_ObjectId": "71f3e8e98fc245bb86e4724c9cd07690",
|
||||
"m_Title": "Sand Footsteps",
|
||||
"m_Position": {
|
||||
"x": 828.0001831054688,
|
||||
"y": 452.0
|
||||
"x": 828.000244140625,
|
||||
"y": 451.9999694824219
|
||||
}
|
||||
}
|
||||
|
||||
@ -6018,6 +6327,54 @@
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
|
||||
"m_ObjectId": "7271897b8dac49a485fe79e6b531c52c",
|
||||
"m_Id": 2,
|
||||
"m_DisplayName": "Out",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Out",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": {
|
||||
"e00": 0.0,
|
||||
"e01": 0.0,
|
||||
"e02": 0.0,
|
||||
"e03": 0.0,
|
||||
"e10": 0.0,
|
||||
"e11": 0.0,
|
||||
"e12": 0.0,
|
||||
"e13": 0.0,
|
||||
"e20": 0.0,
|
||||
"e21": 0.0,
|
||||
"e22": 0.0,
|
||||
"e23": 0.0,
|
||||
"e30": 0.0,
|
||||
"e31": 0.0,
|
||||
"e32": 0.0,
|
||||
"e33": 0.0
|
||||
},
|
||||
"m_DefaultValue": {
|
||||
"e00": 1.0,
|
||||
"e01": 0.0,
|
||||
"e02": 0.0,
|
||||
"e03": 0.0,
|
||||
"e10": 0.0,
|
||||
"e11": 1.0,
|
||||
"e12": 0.0,
|
||||
"e13": 0.0,
|
||||
"e20": 0.0,
|
||||
"e21": 0.0,
|
||||
"e22": 1.0,
|
||||
"e23": 0.0,
|
||||
"e30": 0.0,
|
||||
"e31": 0.0,
|
||||
"e32": 0.0,
|
||||
"e33": 1.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
@ -6073,6 +6430,29 @@
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
||||
"m_ObjectId": "7533fb9486f347b8ac5c5d9ef42cf796",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "playerPosition",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "playerPosition",
|
||||
"m_StageCapability": 3,
|
||||
"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_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
@ -6231,6 +6611,42 @@
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
|
||||
"m_ObjectId": "79c976cdf7824a15899c308571d8037b",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Property",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": 3722.0,
|
||||
"y": 908.0,
|
||||
"width": 151.0,
|
||||
"height": 34.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "08189ced5fdf4af7a71fe810bc703ec6"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Property": {
|
||||
"m_Id": "cb5e4d8a5ef841c3be09e62ace1cc9f6"
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.RedirectNodeData",
|
||||
@ -6267,14 +6683,42 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 1,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector4ShaderProperty",
|
||||
"m_ObjectId": "7a19753f64784d3786837f43ed0fe08b",
|
||||
"m_Guid": {
|
||||
"m_GuidSerialized": "0f8411ef-3ce5-46a6-bf39-5fdd3da75cba"
|
||||
},
|
||||
"m_Name": "FakeShadowsArgs",
|
||||
"m_DefaultRefNameVersion": 1,
|
||||
"m_RefNameGeneratedByDisplayName": "FakeShadowsArgs",
|
||||
"m_DefaultReferenceName": "_FakeShadowsArgs",
|
||||
"m_OverrideReferenceName": "",
|
||||
"m_GeneratePropertyBlock": false,
|
||||
"m_UseCustomSlotLabel": false,
|
||||
"m_CustomSlotLabel": "",
|
||||
"m_DismissedVersion": 0,
|
||||
"m_Precision": 0,
|
||||
"overrideHLSLDeclaration": false,
|
||||
"hlslDeclarationOverride": 0,
|
||||
"m_Hidden": false,
|
||||
"m_Value": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 0.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.GroupData",
|
||||
"m_ObjectId": "7b17344c163a452c9f42669137517050",
|
||||
"m_Title": "Sands Heights (R: Smooth, G: Harsh, B:Footsteps)",
|
||||
"m_Position": {
|
||||
"x": -398.0,
|
||||
"y": 1061.000244140625
|
||||
"x": -397.999755859375,
|
||||
"y": 1061.0
|
||||
}
|
||||
}
|
||||
|
||||
@ -7200,6 +7644,42 @@
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
|
||||
"m_ObjectId": "955fe20d87c94afead018e1d42d1b2d7",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Property",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": 3722.0,
|
||||
"y": 993.0,
|
||||
"width": 174.0,
|
||||
"height": 34.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "06294a92f18a49f4b175bd722d0c1e4d"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Property": {
|
||||
"m_Id": "7a19753f64784d3786837f43ed0fe08b"
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
|
||||
@ -7950,6 +8430,31 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
|
||||
"m_ObjectId": "a638044629734c41a87fed5074fb73cd",
|
||||
"m_Id": 1,
|
||||
"m_DisplayName": "shadowArgs",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "shadowArgs",
|
||||
"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.SampleTexture2DNode",
|
||||
@ -8295,7 +8800,7 @@
|
||||
"m_ObjectId": "aedc4a1ea6fd47c6b29d08142b8e7496",
|
||||
"m_Title": "Gravels Wetness",
|
||||
"m_Position": {
|
||||
"x": 2710.000244140625,
|
||||
"x": 2710.0,
|
||||
"y": -634.0
|
||||
}
|
||||
}
|
||||
@ -8422,8 +8927,8 @@
|
||||
"m_ObjectId": "b06a9bbe8d4e49e1a03155436d22deeb",
|
||||
"m_Title": "Base : Sand Smooth",
|
||||
"m_Position": {
|
||||
"x": -1100.0001220703125,
|
||||
"y": 452.0
|
||||
"x": -1100.0,
|
||||
"y": 451.9999694824219
|
||||
}
|
||||
}
|
||||
|
||||
@ -9057,6 +9562,54 @@
|
||||
"m_DefaultType": 0
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
|
||||
"m_ObjectId": "c44603fd0cd34d2e90a067b6bd70367b",
|
||||
"m_Id": 1,
|
||||
"m_DisplayName": "B",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "B",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": {
|
||||
"e00": 2.0,
|
||||
"e01": 2.0,
|
||||
"e02": 2.0,
|
||||
"e03": 2.0,
|
||||
"e10": 2.0,
|
||||
"e11": 2.0,
|
||||
"e12": 2.0,
|
||||
"e13": 2.0,
|
||||
"e20": 2.0,
|
||||
"e21": 2.0,
|
||||
"e22": 2.0,
|
||||
"e23": 2.0,
|
||||
"e30": 2.0,
|
||||
"e31": 2.0,
|
||||
"e32": 2.0,
|
||||
"e33": 2.0
|
||||
},
|
||||
"m_DefaultValue": {
|
||||
"e00": 1.0,
|
||||
"e01": 0.0,
|
||||
"e02": 0.0,
|
||||
"e03": 0.0,
|
||||
"e10": 0.0,
|
||||
"e11": 1.0,
|
||||
"e12": 0.0,
|
||||
"e13": 0.0,
|
||||
"e20": 0.0,
|
||||
"e21": 0.0,
|
||||
"e22": 1.0,
|
||||
"e23": 0.0,
|
||||
"e30": 0.0,
|
||||
"e31": 0.0,
|
||||
"e32": 0.0,
|
||||
"e33": 1.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.RedirectNodeData",
|
||||
@ -9276,7 +9829,7 @@
|
||||
"m_Title": "Sand Harsh",
|
||||
"m_Position": {
|
||||
"x": 242.0,
|
||||
"y": 452.0
|
||||
"y": 451.9999694824219
|
||||
}
|
||||
}
|
||||
|
||||
@ -9393,6 +9946,34 @@
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 1,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
|
||||
"m_ObjectId": "cb5e4d8a5ef841c3be09e62ace1cc9f6",
|
||||
"m_Guid": {
|
||||
"m_GuidSerialized": "2aeb99db-31f8-465c-b3e1-76fab8c713e9"
|
||||
},
|
||||
"m_Name": "PlayerPosition",
|
||||
"m_DefaultRefNameVersion": 1,
|
||||
"m_RefNameGeneratedByDisplayName": "PlayerPosition",
|
||||
"m_DefaultReferenceName": "_PlayerPosition",
|
||||
"m_OverrideReferenceName": "",
|
||||
"m_GeneratePropertyBlock": false,
|
||||
"m_UseCustomSlotLabel": false,
|
||||
"m_CustomSlotLabel": "",
|
||||
"m_DismissedVersion": 0,
|
||||
"m_Precision": 0,
|
||||
"overrideHLSLDeclaration": false,
|
||||
"hlslDeclarationOverride": 0,
|
||||
"m_Hidden": false,
|
||||
"m_Value": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 0.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 1,
|
||||
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget",
|
||||
@ -9443,8 +10024,8 @@
|
||||
"m_ObjectId": "cecd406a7faa4c75bd0b5a6a4377d8e1",
|
||||
"m_Title": "Vertex Color A : normal intensity",
|
||||
"m_Position": {
|
||||
"x": -637.0,
|
||||
"y": 427.0000305175781
|
||||
"x": -637.0001831054688,
|
||||
"y": 426.9999694824219
|
||||
}
|
||||
}
|
||||
|
||||
@ -9469,6 +10050,21 @@
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "cf4b36c4e1cb4ab190680a2e5d2ab58b",
|
||||
"m_Id": 3,
|
||||
"m_DisplayName": "shadows",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "shadows",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.0,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
|
||||
@ -10147,6 +10743,29 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
||||
"m_ObjectId": "e8a4eeba42d7417694282f8895b31135",
|
||||
"m_Id": 2,
|
||||
"m_DisplayName": "positionWS",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "positionWS",
|
||||
"m_StageCapability": 3,
|
||||
"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_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
|
||||
@ -10790,6 +11409,54 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
|
||||
"m_ObjectId": "f62724f4066f4e8d9ba43a3f7ddd075a",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "A",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "A",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": {
|
||||
"e00": 0.0,
|
||||
"e01": 0.0,
|
||||
"e02": 0.0,
|
||||
"e03": 0.0,
|
||||
"e10": 0.0,
|
||||
"e11": 0.0,
|
||||
"e12": 0.0,
|
||||
"e13": 0.0,
|
||||
"e20": 0.0,
|
||||
"e21": 0.0,
|
||||
"e22": 0.0,
|
||||
"e23": 0.0,
|
||||
"e30": 0.0,
|
||||
"e31": 0.0,
|
||||
"e32": 0.0,
|
||||
"e33": 0.0
|
||||
},
|
||||
"m_DefaultValue": {
|
||||
"e00": 1.0,
|
||||
"e01": 0.0,
|
||||
"e02": 0.0,
|
||||
"e03": 0.0,
|
||||
"e10": 0.0,
|
||||
"e11": 1.0,
|
||||
"e12": 0.0,
|
||||
"e13": 0.0,
|
||||
"e20": 0.0,
|
||||
"e21": 0.0,
|
||||
"e22": 1.0,
|
||||
"e23": 0.0,
|
||||
"e30": 0.0,
|
||||
"e31": 0.0,
|
||||
"e32": 0.0,
|
||||
"e33": 1.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
|
||||
@ -122,7 +122,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
m_Active: 1
|
||||
settings:
|
||||
HistogramRenderPassEvent: 550
|
||||
HistogramRenderPassEvent: 300
|
||||
AutoExposureRenderPassEvent: 550
|
||||
BlitMat: {fileID: 2100000, guid: b04591ed716b35e41857f554d491ef4b, type: 2}
|
||||
ComputeHistogramComputeShader: {fileID: 7200000, guid: b140e27dc74a1fb4d9ae30f8566b8919, type: 3}
|
||||
|
||||
@ -613,7 +613,7 @@ namespace UnityEngine.Rendering.Universal
|
||||
AddStaleResourceToPoolOrRelease(currentRTDesc, handle);
|
||||
}
|
||||
|
||||
if (UniversalRenderPipeline.s_RTHandlePool.TryGetResource(requestRTDesc, out handle))
|
||||
if (UniversalRenderPipeline.s_RTHandlePool != null && UniversalRenderPipeline.s_RTHandlePool.TryGetResource(requestRTDesc, out handle))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -200,6 +200,7 @@ namespace X.Rendering.Feature
|
||||
settings.BlitMat.SetTexture("_SourceTexture", renderer.cameraColorTargetHandle);
|
||||
settings.BlitMat.SetTexture("_AutoExposureTexture", dst);
|
||||
var destination = renderer.GetCameraColorFrontBuffer(cmd);
|
||||
|
||||
cmd.SetRenderTarget(destination, loadAction: RenderBufferLoadAction.DontCare, storeAction: RenderBufferStoreAction.Store);
|
||||
cmd.DrawProcedural(Matrix4x4.identity, settings.BlitMat, 0, MeshTopology.Triangles, 3);
|
||||
renderer.SwapColorBuffer(cmd);
|
||||
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: addfc30e481f4aea910a4cdae75531ab
|
||||
timeCreated: 1753166582
|
||||
@ -0,0 +1,37 @@
|
||||
#ifndef FAKE_SHADOWS_INCLUDED
|
||||
#define FAKE_SHADOWS_INCLUDED
|
||||
|
||||
half4 _FakeShadowsLights[4];
|
||||
const half epsilon = 0.0001;
|
||||
|
||||
// half4 player(pos.xyz, radius)
|
||||
half CalcFakeShadowPerLight(half4 light, half3 playerPos, half playerRad, half3 posToPlayer, half3 posWS)
|
||||
{
|
||||
// Calc dot
|
||||
half3 playerToLight = normalize(light.xyz - playerPos);
|
||||
half d = dot(posToPlayer, playerToLight);
|
||||
float r = 1 - playerRad;
|
||||
d = saturate((d - r) / (1 - r)); // remap range: r~1 -> 0~1
|
||||
|
||||
// Attenuation
|
||||
half distLightToPos = distance(posWS, light.xyz);
|
||||
half atten = 1 - saturate(distLightToPos / (light.w + epsilon)); // Apply light radius
|
||||
atten = atten * atten; // Inverse Square Law
|
||||
|
||||
// Adjust attenuation and reverse
|
||||
return 1 - saturate(d * atten);
|
||||
}
|
||||
|
||||
// shadowArgs: (x)radius, (y)strength
|
||||
void FakeShadows_float(in half3 playerPosition, in half4 shadowArgs, in half3 positionWS, out half shadows)
|
||||
{
|
||||
half3 posToPlayer = normalize(playerPosition - positionWS);
|
||||
shadows = CalcFakeShadowPerLight(_FakeShadowsLights[0], playerPosition, shadowArgs[0], posToPlayer, positionWS);
|
||||
shadows *= CalcFakeShadowPerLight(_FakeShadowsLights[1], playerPosition, shadowArgs[0], posToPlayer, positionWS);
|
||||
shadows *= CalcFakeShadowPerLight(_FakeShadowsLights[2], playerPosition, shadowArgs[0], posToPlayer, positionWS);
|
||||
shadows *= CalcFakeShadowPerLight(_FakeShadowsLights[3], playerPosition, shadowArgs[0], posToPlayer, positionWS);
|
||||
shadows = shadows * shadows * shadows; // enhance shadows
|
||||
shadows = saturate(shadows + (1 - shadowArgs[1]));
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c287be2b22814f0da401f7bdb1d6a2c1
|
||||
timeCreated: 1753165855
|
||||
@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace X.Rendering.Feature
|
||||
{
|
||||
[RequireComponent(typeof(Collider)), ExecuteAlways]
|
||||
public class FakeShadowLightConfig : MonoBehaviour
|
||||
{
|
||||
[Serializable]
|
||||
class LightConfig
|
||||
{
|
||||
public float lightRange = 1;
|
||||
public Transform position;
|
||||
}
|
||||
|
||||
[HideInInspector]
|
||||
public Vector4[] lightData = new Vector4[4];
|
||||
[SerializeField, Tooltip("Max Size 4")]
|
||||
private LightConfig[] lightCfg = new LightConfig[4];
|
||||
|
||||
void Start()
|
||||
{
|
||||
for (int i = 0; i < lightCfg.Length && i < 4; i++)
|
||||
{
|
||||
var cfg = lightCfg[i];
|
||||
lightData[i] = new(cfg.position.position.x, cfg.position.position.y, cfg.position.position.z, cfg.lightRange);
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
private void Update()
|
||||
{
|
||||
for (int i = 0; i < lightCfg.Length && i < 4; i++)
|
||||
{
|
||||
var cfg = lightCfg[i];
|
||||
lightData[i] = new(cfg.position.position.x, cfg.position.position.y, cfg.position.position.z, cfg.lightRange);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f80696f542aa2a64eb1d2f6b1f016045
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace X.Rendering.Feature
|
||||
{
|
||||
public class FakeShadowPlayer : MonoBehaviour
|
||||
{
|
||||
private static readonly int PROP_LIGHTS_ARRAY = Shader.PropertyToID("_FakeShadowsLights");
|
||||
private static readonly int PROP_PLAYER_SHADOW_POSITION = Shader.PropertyToID("_PlayerPosition");
|
||||
private static readonly int PROP_FAKE_SHADOWS_ARGS = Shader.PropertyToID("_FakeShadowsArgs");
|
||||
|
||||
|
||||
private static readonly Vector4 DEFAULT_LIGHT_VALUE = new Vector4(0f, 0f, 0f, 1f);
|
||||
|
||||
private Vector4[] lightsData = new Vector4[4]
|
||||
{
|
||||
DEFAULT_LIGHT_VALUE,
|
||||
DEFAULT_LIGHT_VALUE,
|
||||
DEFAULT_LIGHT_VALUE,
|
||||
DEFAULT_LIGHT_VALUE
|
||||
};
|
||||
|
||||
[SerializeField] private Vector3 playerPositionOffset = new Vector3(0f, 0.1f, 0f);
|
||||
[SerializeField] private float playerRadius = 0.1f;
|
||||
[SerializeField, Range(0f, 1f)] private float shadowStrength = 0.7f;
|
||||
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.GetComponent<FakeShadowLightConfig>() is FakeShadowLightConfig fsc && fsc)
|
||||
{
|
||||
lightsData = fsc.lightData;
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
private void OnTriggerStay(Collider other)
|
||||
{
|
||||
if (other.GetComponent<FakeShadowLightConfig>() is FakeShadowLightConfig fsc && fsc)
|
||||
{
|
||||
lightsData = fsc.lightData;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
private void OnTriggerExit(Collider other)
|
||||
{
|
||||
lightsData[0] = DEFAULT_LIGHT_VALUE;
|
||||
lightsData[1] = DEFAULT_LIGHT_VALUE;
|
||||
lightsData[2] = DEFAULT_LIGHT_VALUE;
|
||||
lightsData[3] = DEFAULT_LIGHT_VALUE;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
Shader.SetGlobalVectorArray(PROP_LIGHTS_ARRAY, lightsData);
|
||||
Shader.SetGlobalVector(PROP_PLAYER_SHADOW_POSITION, this.transform.position + playerPositionOffset);
|
||||
Shader.SetGlobalVector(PROP_FAKE_SHADOWS_ARGS, new Vector4(playerRadius, shadowStrength, 0, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7ec473926b2645b08b255fe825fb8921
|
||||
timeCreated: 1753165714
|
||||
Loading…
x
Reference in New Issue
Block a user