feat: Rain mapping

This commit is contained in:
2026-09-08 14:01:30 +02:00
parent 14433c4504
commit 2b3ff30aeb
374 changed files with 55903 additions and 6990 deletions

View File

@@ -20,7 +20,7 @@ Material:
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: M_Rain_Env
m_Name: M_Env
m_Shader: {fileID: -6465566751694194690, guid: 8568d1cbfba747144b370a89c97e5011, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
@@ -54,10 +54,12 @@ Material:
- _Metallic: 0
- _QueueControl: 0
- _QueueOffset: 0
- _RainSize: 4
- _Ripples: 1
- _RipplesSize: 3
- _Smoothness: 0
- _Wet: 1
m_Colors:
- _Color: {r: 0.5849056, g: 0.5849056, b: 0.5849056, a: 1}
- _Color: {r: 0.49056602, g: 0.49056602, b: 0.49056602, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 747e7244c2ce24744ac7d2133efe6dd3
guid: 74ee495a78c442345b0c5d5ae802e306
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000

View File

@@ -20,11 +20,12 @@ Material:
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: M_Rain_Object
m_Name: M_Object
m_Shader: {fileID: -6465566751694194690, guid: 8568d1cbfba747144b370a89c97e5011, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_ValidKeywords:
- _RAINMAPPING_UV
m_InvalidKeywords: []
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
@@ -54,7 +55,11 @@ Material:
- _Metallic: 0
- _QueueControl: 0
- _QueueOffset: 0
- _RAINMAPPING: 1
- _RAINTYPE: 0
- _RainSize: 0.4
- _Ripples: 1
- _RipplesSize: 0.55
- _Smoothness: 0
- _Wet: 1
m_Colors:

Binary file not shown.

View File

@@ -6,8 +6,8 @@ public class RainExposure : MonoBehaviour
[Serializable]
public class Settings
{
public float RipplesSpeed = 2f;
public float WetSpeed = .5f;
public float RipplesSpeed = 4f;
public float WetSpeed = .2f;
public float RaycastDistance = 50f;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,18 +0,0 @@
fileFormatVersion: 2
guid: 13c6dbc4c8101fb41bb1e5ee92a6cdb6
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}

View File

@@ -1099,7 +1099,7 @@
"m_Hidden": false,
"m_ShaderOutputName": "_Thickness",
"m_StageCapability": 3,
"m_Value": 0.10000000149011612,
"m_Value": 0.5,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false

File diff suppressed because it is too large Load Diff

View File

@@ -77,6 +77,12 @@
},
{
"m_Id": "03e74aefffbb4b2a98e2561b43c2b363"
},
{
"m_Id": "25b0feff38d943c5a3480b65288ec839"
},
{
"m_Id": "fdd6cddb4e7e439baa128038aa0a7381"
}
],
"m_GroupDatas": [],
@@ -175,23 +181,9 @@
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2ba92ff395cf47fcb9c683ad15d9ba82"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "175f2b17aa044179a99d6eed76c38abd"
"m_Id": "25b0feff38d943c5a3480b65288ec839"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "66b7ca670af143d19f25142e9b8f0b00"
},
"m_SlotId": 1
}
},
{
@@ -208,6 +200,34 @@
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "25b0feff38d943c5a3480b65288ec839"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2ba92ff395cf47fcb9c683ad15d9ba82"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "25b0feff38d943c5a3480b65288ec839"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "66b7ca670af143d19f25142e9b8f0b00"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
@@ -315,9 +335,9 @@
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b4f8f816fee74045be644ca4ff24a995"
"m_Id": "fdd6cddb4e7e439baa128038aa0a7381"
},
"m_SlotId": 2
"m_SlotId": 0
}
},
{
@@ -389,6 +409,20 @@
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fdd6cddb4e7e439baa128038aa0a7381"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b4f8f816fee74045be644ca4ff24a995"
},
"m_SlotId": 2
}
}
],
"m_VertexContext": {
@@ -545,6 +579,31 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "07994230b1fc450d84bb42953b5bbe56",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"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_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
@@ -892,6 +951,45 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PowerNode",
"m_ObjectId": "25b0feff38d943c5a3480b65288ec839",
"m_Group": {
"m_Id": ""
},
"m_Name": "Power",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -233.00006103515626,
"y": -38.99999237060547,
"width": 126.00005340576172,
"height": 118.00003051757813
}
},
"m_Slots": [
{
"m_Id": "07994230b1fc450d84bb42953b5bbe56"
},
{
"m_Id": "90437b1652c749028e2eecdbb281383d"
},
{
"m_Id": "4fdce90ebf3d4b00a9040b6c71c961f6"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
@@ -1255,6 +1353,31 @@
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "4fdce90ebf3d4b00a9040b6c71c961f6",
"m_Id": 2,
"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,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PowerNode",
@@ -1761,6 +1884,31 @@
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "90437b1652c749028e2eecdbb281383d",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 2.0,
"y": 2.0,
"z": 2.0,
"w": 2.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
@@ -2076,10 +2224,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 807.0,
"y": -127.0000228881836,
"width": 86.0001220703125,
"height": 77.00001525878906
"x": 949.0000610351563,
"y": -120.00001525878906,
"width": 86.00006103515625,
"height": 77.0
}
},
"m_Slots": [
@@ -2098,6 +2246,31 @@
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "b8a6bd573db74c87ab6e76de531e6a87",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"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_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
@@ -2636,6 +2809,31 @@
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "f27754a8a1554a588de3b07c81e356ef",
"m_Id": 1,
"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,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
@@ -2764,3 +2962,41 @@
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SaturateNode",
"m_ObjectId": "fdd6cddb4e7e439baa128038aa0a7381",
"m_Group": {
"m_Id": ""
},
"m_Name": "Saturate",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 795.0000610351563,
"y": -120.00001525878906,
"width": 127.99993896484375,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "b8a6bd573db74c87ab6e76de531e6a87"
},
{
"m_Id": "f27754a8a1554a588de3b07c81e356ef"
}
],
"synonyms": [
"clamp"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a08c114476f2d004495997c41f8f3c77
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
documentationPath: