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://bgolus.medium.com/the-team-color-problem-b70ec69d109f | |
| Shader "Custom/Team Color (Premultiplied)" { | |
| Properties { | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _TeamColor ("Team Color", Color) = (1,1,1,1) | |
| [NoScaleOffset] _TeamColorMask ("Team Color Mask", 2D) = "black" {} | |
| } | |
| SubShader { | |
| Tags { "RenderType"="Opaque" } | |
| LOD 200 CGPROGRAM |
- (remove whats app before restore)
- remove sim
- connect to wifi, so that whatsapp downloads
- disconnect wifi
- set date to restore date, so that old whats app still runs (otherwise it says "this version has expired"
- run whatsapp, should start normally
- error "whatsapp requires active internet connection to change number"
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
| --------------------- | |
| --------------------- | |
| --------------------- | |
| --------------------- | |
| --------------------- | |
| --------------------- | |
| --------------------- | |
| --------------------- | |
| --------------------- | |
| --------------------- |
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
| /* | |
| * Used for culling tiles in a map renderer I wrote. | |
| * All tiles used geometry in the [-1, 1] range, and their mvp matrix would get precalculated. | |
| * So it was simply a matter of seeing if their projected OBB overlapped with the screen's clip space. | |
| * Returns true if the cube is visible. (false positives for near misses due to conservative w-value) | |
| */ | |
| static inline bool MapTileFrustumCull(const mat4 mvp){ | |
| // Clip space center of the cube is the last column of the matrix. | |
| vec4 c = {mvp.m[12], mvp.m[13], mvp.m[14], mvp.m[15]}; | |
| // Clip space extents are the component wise absolute values of the first three columns. |
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; | |
| using UnityEditor; | |
| using System.Collections; | |
| using System; | |
| using System.Linq; | |
| using System.Reflection; | |
| [InitializeOnLoad] | |
| public class RXLookingGlass | |
| { |
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
| "ota veikkosella" = ota vaan ei haittaa | |
| "eihän se niin nopon nuukaa ole" = |
Missing References, if add assembly definition
- put in in main folder (where all scripts are below it, it only autoreferences child scripts)
- then add reference from it to test assembly definition
https://forum.unity.com/threads/unit-tests-cannot-find-my-namespaces-classes.515742/
- https://github.com/google/model-viewer (active)
- https://sketchfab.com/plans?ref=header (free and paid, can add hotspots, enterprise starts at 1k usd/mo)
- https://xeogl.org/ (not too good default mouse controls, no longer actively updated)
- https://threejs.org/ (need to modify/customize yourself)
- unity webgl build (slow, heavy)
- https://pixijs.io/examples/ (2d only?)
- https://www.babylonjs.com/
- http://scenejs.org/ (archived)
- http://xeokit.io/ (for cad models, PAID.. bad default controls)
- https://playcanvas.com/ (free and paid with no logo) https://github.com/playcanvas/engine