diff --git a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader.meta b/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader.meta deleted file mode 100644 index 2dad5e1e..00000000 --- a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ec2dd4967355cad42ba72d0a665ef2ad -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/1fefe94451438c142bbd00f989da587a.asset b/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/1fefe94451438c142bbd00f989da587a.asset deleted file mode 100644 index b8550905..00000000 --- a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/1fefe94451438c142bbd00f989da587a.asset +++ /dev/null @@ -1,18 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: bf61d954ecb803046953c666facfb904, type: 3} - m_Name: 1fefe94451438c142bbd00f989da587a - m_EditorClassIdentifier: - serializedProgramCompressedBytes: 1f8b080000000000000aed5c5b571b3710d61a5f8389b9843b49489b36a409d8409aa4b724dc42d326848381979c1ec78009b436703049d3b7f6b5ffa87fa23fa44f7de87b3b33d2627957da0b5836d0d8875dafb41acdf7cd68342b6d12c932f85877e1b0ce56d81c9b606b6c8bedb33df83507e70a7cf9955dbecc0ee1fc068e45a8bbcb467d5ae2e7963500c76770556547d0f22ddb84f32ed5e759097e3f83b625b8c2d26df82bc15d56141aadb179f6922db17eabd747c43a35aa8a320b71594938ceb25fa0b6444a612759aaea87431e6aaa545701a5edfb5eb11f085605ea36a1cd212b83cc0d92981c81a34598e81415e776f88bc35fb7748de7b428ef11d73171ee10e557a4fbec723c5f12f5bdd2b525caf09c10e7cba2ac4f5cb789734694f74bf7c9ed3a45fd80b84e49e578ee12f583923cc2efa81f12d7112103eb23318b2cf72d705964072c8b95d6ed102e66b7f4772e141d8f707b809761b74760c60310a0b0f01af9cf119b66534a0b0f5a6949ef393a16e18e5d123aeceee20f5717a85c19be25c93dab50be48de8d0eba0b3513ec399cb1d56b36090ef7ca21651dba2d838b97d82a1c0f48de6b50db7da71f247465679b1590c9475a054a6c420fe0ba4c1ae6e9f88e342d91f6cfa0ec88c6fd1e8cfc5938bfa7dedcd80fe1b7aacf5541995a47f580d395f3616d9b691ed0a0f659f2fd0f1669854590faf8b01886d12c45c5df5d96f8c0210f32319ac8b88c493e95d4954db12ccd132b2e06c363742354fb37e7fb3ebbe78945cd0c9a7b9810d42c9cfc2b7aff9f3fdb7b62f5d0a65996a6b0111f685ec4a2bc31abcf25c11b422c16cda1a24efa2d15fd344de69b483fbf6f97ee0b6f8038cd4cf506b070ca9f1731ad088251a53cdb81df5ba4a6cb32b9b84810c61453a79f823a7a232a7a93cda6d73f9e78d19b3cc655a3173f6a06531a06fd74d031d8a66290f2b5b25106d7a08c273e0b54bb4bb3e5047b412d77a02f9c3fb92fe11f62d2b5b1997c4129f85bd2c69b734c78c71d9cabf96e27be738c19d75867a1a8c24239749ab4c271fe854f2ce50082e6d4088fa9cc4f8f03bf19357fd05c7d911e034bf08cb6c17e144996ddef3e91891ad9c91a9a605b18808724ff1cdfdb513a8ef9a9719ca5c7af85104f1ce65160388e90c366c861c73d1c76951eae314ddd26949513b8aa7ab07452df678b19ddb08aab3c3fddfc99994f7a659f344fed9df89c7c3df0d4d1ad9d7cbd75d0319850052664b047a9d6df33aec0d4ad0f4c499570ecf18a2a1bc15e0be0a245721f7495598283f1d8d56b42df6b4a07a95709e9d7c761205dd209efd3993184f076953b53f47add94409e876cf07ba82bc2fd257a1ac3f265905884be51de0cf5501bb0f52dbc1dbd3ff07c3d404e7e530a41a7d54ce7fe6915e3b412f6a62599d3ba089fc8d87483f3255ca86b734e83b46a77c763a2399d46a338046a07cd943344f636a785cefa1d0aebe7d0fac30aaa72993a28028f73740fe947f7655de8186940e8c8a81c99966a775ae2c83c8cf3a533c4d45857be1a38945c23d7baebe15aa7d554e75c9d3a735f6f80b9bb74c2471b20bc5b251c27dc1b4c316d3f3a0ed3f5217789e18ecbcfc4d84f223b998009be0067ac29b0e750b74982e4408e77a8e4e9427e98d4a04787ec2315b2871a643a4d38ba4542b70cd8aae4437c39196bd45e551fdac2a0b9a243f3b10acd03ed18703f4bd4dbe9a009587a75586eaab0ac68b1d46bc0713897b882ea1ff4ae425d949233f1300cf4e918f844c5c09296011ecf76c0961cfd1cf929c6772f4d4f56d318e4fd3ae49f86f363e7e24dbd17571c715eef05ce19210c96011d965b2a2c738eb95966906bbf4f76430f7e475e5c1b81adb3d7a00ee3980ae3d38018f370fb06e51945691baeb5488774486fab902ef88cc99a474d080dd1339fc2f53ed5bbb5ae2da807c7ba0ed276b58fcc09f85a163e682e500e78082d97a9055e555996328b1c0bbefa837d57c072b885ba0a38368ed720bc257cc6f4fbf2dbac515bb47e28f8823bb6df26bfb3b7fd54e882af43bab7a31302912d0b98a634eba221c587b8b878fb8545b29470dd39a137f96b81797dbc4ded43e137a8b88025b19a49262bd02ef49618bebe3dc82ba0aa1ec64980bd73d980975150c719d06f8ba6bc2a7cf18383dc21dc19851bf5d243d05d49f788c8500c7a4fd9e521c9db728e104a70cf9ae6e3b2878f29bca41662d5a131872176e27f1efd7218fdf0cdc278b71d2c72182c722647f455b255414c767b9404069bb00ba098439bd3bc9f90aa8b03d782403d492cc8502ce0c44e9a2416571e2a4cbd856a8cb67653b4b549b44d99a4ad4fe18ffa34cfa007769ba2b253a272da24958382ca32dc8434f275a5cd0b47e86589d07bcdf0cd4d31d91c793e9c18a432618acaa444e5e7ada5f2bc7b655ca2f2be492a47151133cc12ad517a074cd1db2ed1fbc024bd1d825eec789bc8b565e38a8231e262a6886312710f5b39c465e58dfa60ca14955189ca2fce4eb49c3a87d1322551f9a5492a4714d132d89686410f1d32456b5aa2f5ab667868b0b47df21c7a689744e5d76767b09f472a131295df98a4d25edcb09f80b69873d7f362e59c9724621f9924f68662b8a31247c0c8215c7f27fe75d9459bf12312c18f4d129c61baac734fdc72fe1e2e2d89bc27cd18f6b8e58f035e37c3bb5ff230ea951953c4c62462674c127bf2e4c9e034652c79ea601766db2887db46b3ac6e97c66b819aefd77409a43859bea0e85e143b3a4569ef264bef29e11247980d4d6f99fe1b2b7332188785dcffc2ab959b452aa4a7d9384a7b58254b6f4c5d64fcf38cff170af44137eda76dc53569b3f125dccc5d193fb1ff0045362cfdad430000 - serializedProgramBytesString: - programUnityEngineObjects: [] - serializationDataFormat: 0 diff --git a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/1fefe94451438c142bbd00f989da587a.asset.meta b/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/1fefe94451438c142bbd00f989da587a.asset.meta deleted file mode 100644 index 22fa6906..00000000 --- a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/1fefe94451438c142bbd00f989da587a.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 747ec18993265e240878a3319bc7a918 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.asset b/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.asset deleted file mode 100644 index 883b4c15..00000000 --- a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.asset +++ /dev/null @@ -1,113 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3} - m_Name: DistanceShader - m_EditorClassIdentifier: - serializedUdonProgramAsset: {fileID: 11400000, guid: 747ec18993265e240878a3319bc7a918, - type: 2} - udonAssembly: - assemblyError: - sourceCsScript: {fileID: 11500000, guid: 401067ed247479a41bc49218b9278452, type: 3} - scriptVersion: 2 - compiledVersion: 2 - behaviourSyncMode: 0 - hasInteractEvent: 0 - scriptID: 1372418059738081800 - serializationData: - SerializedFormat: 2 - SerializedBytes: - ReferencedUnityObjects: [] - SerializedBytesString: - Prefab: {fileID: 0} - PrefabModificationsReferencedUnityObjects: [] - PrefabModifications: [] - SerializationNodes: - - Name: fieldDefinitions - Entry: 7 - Data: 0|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[UdonSharp.Compiler.FieldDefinition, - UdonSharp.Editor]], mscorlib - - Name: comparer - Entry: 7 - Data: 1|System.Collections.Generic.GenericEqualityComparer`1[[System.String, - mscorlib]], mscorlib - - Name: - Entry: 8 - Data: - - Name: - Entry: 12 - Data: 1 - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: meshRenderer - - Name: $v - Entry: 7 - Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: k__BackingField - Entry: 1 - Data: meshRenderer - - Name: k__BackingField - Entry: 7 - Data: 3|System.RuntimeType, mscorlib - - Name: - Entry: 1 - Data: UnityEngine.MeshRenderer, UnityEngine.CoreModule - - Name: - Entry: 8 - Data: - - Name: k__BackingField - Entry: 9 - Data: 3 - - Name: k__BackingField - Entry: 7 - Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib - - Name: - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: k__BackingField - Entry: 5 - Data: true - - Name: _fieldAttributes - Entry: 7 - Data: 4|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 1 - - Name: - Entry: 7 - Data: 5|UnityEngine.SerializeField, UnityEngine.CoreModule - - Name: - Entry: 8 - Data: - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: diff --git a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.asset.meta b/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.asset.meta deleted file mode 100644 index 37b9b9c0..00000000 --- a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1fefe94451438c142bbd00f989da587a -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.cs b/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.cs deleted file mode 100644 index e08f23f9..00000000 --- a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.cs +++ /dev/null @@ -1,15 +0,0 @@ -using UdonSharp; -using UnityEngine; -using VRC.SDKBase; - -public class DistanceShader : UdonSharpBehaviour -{ - [SerializeField] private MeshRenderer meshRenderer; - - private void Update() - { - var distance = Vector3.Distance(Networking.LocalPlayer.GetPosition(), transform.position); - var calc = Mathf.Clamp(distance, 0, 30f); - meshRenderer.material.SetFloat("_MatCapBlend", 1 - calc / 30f); - } -} \ No newline at end of file diff --git a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.cs.meta b/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.cs.meta deleted file mode 100644 index 99b7c974..00000000 --- a/Packages/com.mascari4615.m-udons/Runtime/Stuff/DistanceShader/DistanceShader.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 401067ed247479a41bc49218b9278452 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: