Fix materials

This commit is contained in:
r.nikolin 2023-10-18 17:11:47 +03:00
parent 0f07468022
commit b5e9aa68bf
25 changed files with 1478 additions and 207 deletions

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 35b60dc21660c30419c75fb8bbde1e43
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 42af5a8eab707f64aa753da764bc1254
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a7ed4fd1677e1484987f5b520269f264
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: cf3621dce24e5044e95110975d85090c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: eea79a3b3347dfc44ad7d48cffa68bec
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1c28cf5aa79b49e4f9785011c9a9402e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 90e08931c703fdb48a72b621676bb989
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d69571e290250d140bdcb457d4a651fc
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -7,6 +7,11 @@ public class DissolveEffect : MonoBehaviour
public float Time;
List<Renderer> _renderer = new List<Renderer>();
public string Param = "_Dissolve";
public float From = 0;
public float To = 1;
void Start()
{
_renderer.AddRange(GetComponentsInChildren<Renderer>());
@ -15,13 +20,13 @@ public class DissolveEffect : MonoBehaviour
[ContextMenu("Dissolve")]
public void Dissolve()
{
LeanTween.value(0, 1, Time).setOnUpdate((float x) =>
LeanTween.value(From, To, Time).setOnUpdate((float x) =>
{
for (int i = 0; i < _renderer.Count; i++)
{
for (int h = 0; h < _renderer[i].materials.Length; h++)
{
_renderer[i].materials[h].SetFloat("_Dissolve", x);
_renderer[i].materials[h].SetFloat(Param, x);
}
}
});

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: dd726bdc743dca44888d2627b27267c2
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9c6565d620e1e8943a2194cba93f2d27
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 788565264feffe84799fca5597b76603
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1ae6bb1c61940ee4ea80a29a638b5f09
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9df6cd2f9439dd04fb0d7a5aeb12e189
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ada8f0b50ef8d734e99895468dd67fe4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ae7f9ea75c4b6814fa19d493bcd7c1d3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3f0ee734c032ec947a375b7aabcb8f84
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1b0e1f91ee73a784ab020e98e6530747
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ea9fd541ba3468b428b8f53d3c42beff
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b5f5f88b285e57c469dcaca1ef036093
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -243,7 +243,7 @@ Material:
- _IridescenceThickness: 1
- _LinkDetailsWithBase: 1
- _MaterialID: 1
- _Metallic: 0.2
- _Metallic: 0
- _MetallicRemapMax: 0
- _MetallicRemapMin: 0
- _Metallic_empty: 0
@ -272,7 +272,7 @@ Material:
- _SmoothnessRemapMax: 1
- _SmoothnessRemapMin: 0
- _SmoothnessTextureChannel: 0
- _Smoothness_empty: 0.7
- _Smoothness_empty: 0
- _SpecularAAScreenSpaceVariance: 0.1
- _SpecularAAThreshold: 0.2
- _SpecularHighlights: 1
@ -315,9 +315,9 @@ Material:
- _ZTestTransparent: 4
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.4, g: 0.4, b: 0.4, a: 1}
- _BaseColor: {r: 0.7, g: 0.7, b: 0.7, a: 1}
- _BaseColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
- _Color: {r: 0.39999998, g: 0.39999998, b: 0.39999998, a: 1}
- _Color: {r: 0.7, g: 0.7, b: 0.7, a: 1}
- _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
- _DissolveDirection: {r: -0.2, g: 2, b: -0.5, a: 0}
- _DissolveOffest: {r: 0, g: -5, b: 0, a: 0}

View File

@ -243,7 +243,7 @@ Material:
- _IridescenceThickness: 1
- _LinkDetailsWithBase: 1
- _MaterialID: 1
- _Metallic: 0.2
- _Metallic: 0
- _MetallicRemapMax: 0
- _MetallicRemapMin: 0
- _Metallic_empty: 0
@ -272,7 +272,7 @@ Material:
- _SmoothnessRemapMax: 1
- _SmoothnessRemapMin: 0
- _SmoothnessTextureChannel: 0
- _Smoothness_empty: 0.7
- _Smoothness_empty: 0
- _SpecularAAScreenSpaceVariance: 0.1
- _SpecularAAThreshold: 0.2
- _SpecularHighlights: 1
@ -315,9 +315,9 @@ Material:
- _ZTestTransparent: 4
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.4, g: 0.4, b: 0.4, a: 1}
- _BaseColor: {r: 0.7, g: 0.7, b: 0.7, a: 1}
- _BaseColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
- _Color: {r: 0.39999998, g: 0.39999998, b: 0.39999998, a: 1}
- _Color: {r: 0.7, g: 0.7, b: 0.7, a: 1}
- _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
- _DissolveDirection: {r: -0.2, g: 2, b: -0.5, a: 0}
- _DissolveOffest: {r: 0, g: -5, b: 0, a: 0}

View File

@ -243,7 +243,7 @@ Material:
- _IridescenceThickness: 1
- _LinkDetailsWithBase: 1
- _MaterialID: 1
- _Metallic: 0.2
- _Metallic: 0
- _MetallicRemapMax: 0
- _MetallicRemapMin: 0
- _Metallic_empty: 0
@ -272,7 +272,7 @@ Material:
- _SmoothnessRemapMax: 1
- _SmoothnessRemapMin: 0
- _SmoothnessTextureChannel: 0
- _Smoothness_empty: 0.7
- _Smoothness_empty: 0
- _SpecularAAScreenSpaceVariance: 0.1
- _SpecularAAThreshold: 0.2
- _SpecularHighlights: 1
@ -315,9 +315,9 @@ Material:
- _ZTestTransparent: 4
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.4, g: 0.4, b: 0.4, a: 1}
- _BaseColor: {r: 0.7, g: 0.7, b: 0.7, a: 1}
- _BaseColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
- _Color: {r: 0.39999998, g: 0.39999998, b: 0.39999998, a: 1}
- _Color: {r: 0.7, g: 0.7, b: 0.7, a: 1}
- _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
- _DissolveDirection: {r: -0.2, g: 2, b: -0.5, a: 0}
- _DissolveOffest: {r: 0, g: -5, b: 0, a: 0}

View File

@ -243,7 +243,7 @@ Material:
- _IridescenceThickness: 1
- _LinkDetailsWithBase: 1
- _MaterialID: 1
- _Metallic: 0.2
- _Metallic: 0
- _MetallicRemapMax: 0
- _MetallicRemapMin: 0
- _Metallic_empty: 0
@ -272,7 +272,7 @@ Material:
- _SmoothnessRemapMax: 1
- _SmoothnessRemapMin: 0
- _SmoothnessTextureChannel: 0
- _Smoothness_empty: 0.7
- _Smoothness_empty: 0
- _SpecularAAScreenSpaceVariance: 0.1
- _SpecularAAThreshold: 0.2
- _SpecularHighlights: 1
@ -315,9 +315,9 @@ Material:
- _ZTestTransparent: 4
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.4, g: 0.4, b: 0.4, a: 1}
- _BaseColor: {r: 0.7, g: 0.7, b: 0.7, a: 1}
- _BaseColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
- _Color: {r: 0.39999998, g: 0.39999998, b: 0.39999998, a: 1}
- _Color: {r: 0.7, g: 0.7, b: 0.7, a: 1}
- _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
- _DissolveDirection: {r: -0.2, g: 2, b: -0.5, a: 0}
- _DissolveOffest: {r: 0, g: -5, b: 0, a: 0}