- https://epicmcdude.itch.io/100-diffuse-textures-iii
- few free textures https://juliovii.itch.io/
- https://www.sharetextures.com/textures
- database of physically based values https://physicallybased.info/
- Public Domain materials for Physically Based Rendering https://ambientcg.com/
- matcap library https://github.com/emmelleppi/matcaps
- https://matlib.gpuopen.com/main/materials/all
- textures https://3dtextures.me/
- random stuff http://www.cgchannel.com/?s=free&x=0&y=0
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
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document domain("forum.unity3d.com") { | |
| /* forum is now fixed, no need to use this */ | |
| /* optional: disable all rounded edges */ | |
| * { |
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
| new: https://blogs.unity3d.com/2020/07/16/add-deep-links-to-your-unity-mobile-apps-for-better-user-experience/ | |
| https://forum.unity3d.com/threads/callback-on-launching-from-url-scheme.455503/#post-2952951 | |
| https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html#//apple_ref/doc/uid/TP40007072-CH6-SW1 |
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 System.Collections; | |
| using UnityEngine.SceneManagement; | |
| public class Reload : MonoBehaviour | |
| { | |
| void Update() | |
| { | |
| if (Input.GetKeyDown(KeyCode.R)) // reload current scene with R key | |
| { |
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
| -- access unity class | |
| newType = CustomType; | |
| -- call instantiate from the class | |
| newType:Instantiate("Sphere"); | |
| -- creates line object from x1,y1,z1 to x2,y2,z2 | |
| newType:DrawLine(0,0,0,100,0,0); |
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
| - install xcode from appstore | |
| - install unity | |
| - install sourcetree or other git tools | |
| build to device | |
| - open unity project | |
| - set player settings if not already done (appname etc) | |
| - set target platform to ios | |
| - hit build | |
| - after build is done, folder opens with the xcode project |
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
| - open any website | |
| - open website with SSL cert error | |
| - click (lock) error button in URL bar, displays previous sites TITLE instead of current one |
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.unity3d.com/threads/sorting-a-list-of-vector3-by-x-values.126237/#post-850924 | |
| list.Sort((a, b) => a.x.CompareTo(b.x)); |
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://tavianator.com/fast-branchless-raybounding-box-intersections/ | |
| bool intersection(box b, ray r) { | |
| double tx1 = (b.min.x - r.x0.x)*r.n_inv.x; | |
| double tx2 = (b.max.x - r.x0.x)*r.n_inv.x; | |
| double tmin = min(tx1, tx2); | |
| double tmax = max(tx1, tx2); | |
| double ty1 = (b.min.y - r.x0.y)*r.n_inv.y; |