- Workaround is setting the Cell Gap to -0.01 on the Grid itself. https://discussions.unity.com/t/tilemap-has-tearing-between-tiles-even-with-pixel-snap/679199/37
- "all your methods except the sprite atlas are fake solutions, and will betray you when you move the camera" https://forum.unity.com/threads/the-best-way-to-fix-tile-tearing.1542956/#post-9619289
- Create sprite atlas with padding = 2 https://forum.unity.com/threads/artifacts-in-a-2d-pixel-art-scene.1427049/#post-8959284
- disable antialias
- use pixel snap shader material
- texture importer: point filter
- use unity pixel perfect camera package
- scale grid by small amount (0.999, 1.001)
- resolution issue? float camera pos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using Unity.Burst; | |
| using Unity.Collections; | |
| using Unity.Jobs; | |
| using Unity.Mathematics; | |
| using Unity.Profiling; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEngine.Rendering; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IEnumerator GetAudioClip() | |
| { | |
| var path = "file://" + SongData.fileName; | |
| // Start downloading | |
| using (var download = new WWW(path)) | |
| { | |
| GameObject.Find("waveform").GetComponent<RectTransform>().localScale = new Vector2(0,0); | |
| // Wait for download to finish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // detect face landmark points. | |
| OpenCVForUnityUtils.SetImage(faceLandmarkDetector, rgbaMat); | |
| for (int i = 0; i < trackedRects.Count; i++) | |
| { | |
| List<Vector2> points = faceLandmarkDetector.DetectLandmark(rect); | |
| List<Vector2> pointss = new List<Vector2>(); | |
| //Draw Contours | |
| List<Point> pointsss = OpenCVForUnityUtils.ConvertVector2ListToPointList(pointss); | |
| MatOfPoint hullPointMat = new MatOfPoint(); | |
| hullPointMat.fromList(pointsss); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // remove items from start menu (didnt work?) | |
| delete from here C:\ProgramData\Microsoft\Windows\Start Menu\Programs | |
| // cleanup context menu | |
| - https://www.ghacks.net/2017/07/09/remove-windows-10-context-menu-bloat/ | |
| - Computer\HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\ | |
| - can remove others than New and WorkFolders | |
| https://appuals.com/fix-slow-context-menus-windows-10-anniversary-update/ | |
| also visual studio context menu | |
| - https://developercommunity.visualstudio.com/content/problem/26397/disable-context-menu-for-open-in-visual-studio.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class RayMonster : MonoBehaviour | |
| { | |
| public LayerMask layerMask; | |
| int rayCount = 20; | |
| RaycastHit hit; | |
| float boxWidth; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://forum.unity.com/threads/how-to-print-shaders-var-please.26052/#post-5160875 | |
| Shader "Debugger(Values)" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Cull Off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // with colors and other options, uses UV now | |
| Shader "Wireframe 2 (Geometry Shader)" | |
| { | |
| Properties | |
| { | |
| _Color ("Outline Color", Color) = (1,1,1,1) | |
| _OutlineWidth ("Outline Width", float) = 0.1 | |
| } | |
| SubShader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // vertex extrude shader example, with sceneviewpass (to fix editor outline) | |
| // https://forum.unity.com/threads/scene-outline-bug-or-feature-change-doesnt-follow-shader-extruded-vertices.770273/#post-5149322 | |
| Shader "Unlit/vertexextrude" | |
| { | |
| Properties | |
| { | |
| _MainTex("Texture", 2D) = "white" {} | |
| _Amount("Extrusion Amount", Range(-1,1)) = 0.5 | |
| } |