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; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class AddUV : MonoBehaviour | |
| { | |
| public Mesh mesh; | |
| void Awake() |
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 UnityEngine.InputSystem; | |
| using UnityEngine.XR.ARFoundation; | |
| public class TogglePassthrough : MonoBehaviour | |
| { | |
| [SerializeField] | |
| private InputActionProperty toggleAction; | |
| private ARCameraManager arCameraManager; |
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 Unity.XR.CoreUtils; | |
| using UnityEngine.InputSystem; | |
| using UnityEngine.XR.ARSubsystems; | |
| namespace UnityEngine.XR.ARFoundation.Samples | |
| { | |
| [RequireComponent(typeof(ARAnchorManager))] | |
| [RequireComponent(typeof(ARRaycastManager))] | |
| public class AnchorCreatorV2 : MonoBehaviour |
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 System.Collections.Generic; | |
| using Pathfinding; | |
| using Pathfinding.RVO; | |
| /** Adds a GridGraph as RVO obstacles. | |
| * Add this to a scene in which has a GridGraph based graph, when scanning (or loading from cache) the graph | |
| * it will be added as RVO obstacles to the RVOSimulator (which must exist in the scene). | |
| * |
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.IO; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| /// <summary> | |
| /// NoiseCrimeStudio OneShots are single scripts that provide specific funactionality. | |
| /// </summary> | |
| namespace NoiseCrimeStudios.OneShot.Editor |
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
| Shader "Custom/Microvolume/LitURP" | |
| { | |
| Properties | |
| { | |
| [MainTexture]_BaseMap("Albedo", 2D) = "white" {} | |
| [MainColor]_BaseColor("Albedo Color", Color) = (1, 1, 1, 1) | |
| [Normal]_NormalMap("Normal Map", 2D) = "bump" {} | |
| _NormalScale("Normal Scale", Range(0, 2)) = 1 |
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
| #if UNITY_EDITOR | |
| using System; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEditor.EditorTools; | |
| using UnityEngine; | |
| using UnityEngine.Rendering; | |
| /// <summary> | |
| /// While Unity’s built-in box collider edit tool is active, draws camera-facing |
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
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
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
| """Downloads and extract the Visual C++ Redistributables. | |
| This is useful when working with minidump files as the user may be running | |
| with a new different version of the runtime. This script aims to maintain | |
| a copy of the various versions. | |
| Versions are normally added once I encounter them, in November 2022, I added | |
| a rather large back catalogue of versions. | |
| This requires dark.exe from Wix (http://wixtoolset.org/releases/) and |
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
| // The Games Factory 0C_Music.mus -> midi files | |
| // See the following tool for actually extracting the 0C_Music.mus file from a .gam file | |
| // https://kippykip.com/threads/cextract-the-games-factory-multimedia-fusion-game-extractor-unprotector.498/ | |
| // | |
| import fs from 'fs' | |
| const input = './0C_Music.mus' | |
| const buffer = fs.readFileSync(input) |
NewerOlder