ay5.5.1f1ţ˙˙˙˙˙Č0ĹňĂôL.`?^Ů0D7€˙˙˙˙€Ś€˛€ЀŚ€Ś€Ś€#Ś€+H€3˙˙˙˙€1€1€˙˙˙˙@ހ€ Q€j€ ™€< Ś€H H€Z˙˙˙˙ €1€1€˙˙˙˙@ހ€Q€j€ЀgŚ€Ś€Ś€#Ś€+v~ € €– €Ÿ €¨ €ą €ş €Ă €Ě €Ő €Ţ  €ç! €ń" €ű# €$ €% €&Ő€#˙˙˙˙'€1€1€˙˙˙˙(€ހ€)H€j€˙˙˙˙*€1€1€˙˙˙˙+@ހ€,Q€j€-™€*.ހ8/AssetMetaDataguiddata[0]data[1]data[2]data[3]pathNametimeCreatedoriginalChangesetoriginalNameoriginalParentHash128originalDigestbytes[0]bytes[1]bytes[2]bytes[3]bytes[4]bytes[5]bytes[6]bytes[7]bytes[8]bytes[9]bytes[10]bytes[11]bytes[12]bytes[13]bytes[14]bytes[15]labelsassetStoreReflicenseType ˙˙z{ď@îČă5^(H'7€˙˙˙˙€Ś€˛€ Ő€ ހ#.€,†€Ä€ ހ#.€,H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ Ő€5˙˙˙˙ €1€1€˙˙˙˙ €ހ€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ#.€, €I@ž€X @ހ#.€,H€]˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€H€h˙˙˙˙€1€1€˙˙˙˙ @ހ€!Q€j€"H€z˙˙˙˙#€1€1€˙˙˙˙$@ހ€%Q€j€&MonoImporterPPtrm_FileIDm_PathIDm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariants˙˙˙8-l'€Łć„hŒÎA,Œ€7€˙˙˙˙€Ś€˛€Ő€ ހ.€†€Ä€ ހ.€H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ H€ę€˙˙˙˙ €1€1€˙˙˙˙ @ހ€Q€j€ń€(˙˙˙˙€1€1€˙˙˙˙€ހ€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ.€y€< ހ.€ހCH€T˙˙˙˙€1€1€˙˙˙˙ @ހ€!Q€j€"H€`˙˙˙˙#€1€1€˙˙˙˙$@ހ€%Q€j€&H€l˙˙˙˙'€1€1€˙˙˙˙(@ހ€)Q€j€*L€{+PPtrm_FileIDm_PathIDm_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespacem_AssemblyNamem_IsEditorScript˜˜@ŕyŻŘĄ ›ací˛:D•1Nüƒ%،@Assets/Standard Assets/Effects/ImageEffects/Scripts/Triangles.cs Triangles using System; using UnityEngine; using Object = UnityEngine.Object; namespace UnityStandardAssets.ImageEffects { class Triangles { private static Mesh[] meshes; private static int currentTris = 0; static bool HasMeshes() { if (meshes == null) return false; for (int i = 0; i < meshes.Length; i++) if (null == meshes[i]) return false; return true; } static void Cleanup() { if (meshes == null) return; for (int i = 0; i < meshes.Length; i++) { if (null != meshes[i]) { Object.DestroyImmediate(meshes[i]); meshes[i] = null; } } meshes = null; } static Mesh[] GetMeshes(int totalWidth, int totalHeight) { if (HasMeshes() && (currentTris == (totalWidth * totalHeight))) { return meshes; } int maxTris = 65000 / 3; int totalTris = totalWidth * totalHeight; currentTris = totalTris; int meshCount = Mathf.CeilToInt((1.0f * totalTris) / (1.0f * maxTris)); meshes = new Mesh[meshCount]; int i = 0; int index = 0; for (i = 0; i < totalTris; i += maxTris) { int tris = Mathf.FloorToInt(Mathf.Clamp((totalTris - i), 0, maxTris)); meshes[index] = GetMesh(tris, i, totalWidth, totalHeight); index++; } return meshes; } static Mesh GetMesh(int triCount, int triOffset, int totalWidth, int totalHeight) { var mesh = new Mesh(); mesh.hideFlags = HideFlags.DontSave; var verts = new Vector3[triCount * 3]; var uvs = new Vector2[triCount * 3]; var uvs2 = new Vector2[triCount * 3]; var tris = new int[triCount * 3]; for (int i = 0; i < triCount; i++) { int i3 = i * 3; int vertexWithOffset = triOffset + i; float x = Mathf.Floor(vertexWithOffset % totalWidth) / totalWidth; float y = Mathf.Floor(vertexWithOffset / totalWidth) / totalHeight; Vector3 position = new Vector3(x * 2 - 1, y * 2 - 1, 1.0f); verts[i3 + 0] = position; verts[i3 + 1] = position; verts[i3 + 2] = position; uvs[i3 + 0] = new Vector2(0.0f, 0.0f); uvs[i3 + 1] = new Vector2(1.0f, 0.0f); uvs[i3 + 2] = new Vector2(0.0f, 1.0f); uvs2[i3 + 0] = new Vector2(x, y); uvs2[i3 + 1] = new Vector2(x, y); uvs2[i3 + 2] = new Vector2(x, y); tris[i3 + 0] = i3 + 0; tris[i3 + 1] = i3 + 1; tris[i3 + 2] = i3 + 2; } mesh.vertices = verts; mesh.triangles = tris; mesh.uv = uvs; mesh.uv2 = uvs2; return mesh; } } } Triangles UnityStandardAssets.ImageEffectsAssembly-CSharp-firstpass.dll