https://github.com/DamRsn/NeuralNote
https://github.com/BShakhovsky/PolyphonicPianoTranscription
| using FishNet; | |
| using FishNet.Managing.Scened; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using UnityEngine; | |
| using UnityEngine.AddressableAssets; | |
| using UnityEngine.Rendering; | |
| using UnityEngine.ResourceManagement.AsyncOperations; |
| Shader "Mobile VR Highlight" { | |
| Properties { | |
| _ColorOutline ("Outline", Color) = (1,1,1,1) | |
| _ColorInterior ("Interior", Color) = (0.25,0.25,0.25,0.25) | |
| _ColorInteriorFaded ("Interior Faded", Color) = (0.1,0.1,0.1,0.1) | |
| _ColorInteriorOcc ("Interior Occluded", Color) = (0.15,0.15,0.15,0.15) | |
| _ColorInteriorOccFaded ("Interior Occluded Faded", Color) = (0.05,0.05,0.05,0.05) | |
| _PulseRateMod ("Pulse Rate Modifier", Float) = 4.0 | |
| _OutlneWidth ("Outline Pixel Width", Float) = 1.0 | |
| } |
| using System.Collections.Generic; | |
| using System.Runtime.InteropServices; | |
| using UnityEngine; | |
| class Render : MonoBehaviour | |
| { | |
| struct DrawData | |
| { | |
| public Vector3 Pos; | |
| public Quaternion Rot; |
| 1313 | |
| 0313 | |
| 1213 | |
| 0213 | |
| 1303 | |
| 0303 | |
| 1203 | |
| 0203 | |
| 1312 | |
| 0312 |
My recommendations for things to do – generally those that are interesting and/or delicious – in places I've lived or spent significant time. Enjoy!
Last updated October 18, 2023. Contact: @frozenpandaman
This is an example code how to use replacement shader for SceneView.
Cube as its prefixTestReplacementShader/Enable Custom Render Mode on SceneView from Untiy Editor's main menu.
Cube objects are drawn in red (replacement shader) in SceneView.TestReplacementShader/Disable Custom Render Mode on SceneView from Untiy Editor's main menu.
Cube objects are drawn in normal shader.| // Rotation with angle (in radians) and axis | |
| float3x3 AngleAxis3x3(float angle, float3 axis) | |
| { | |
| float c, s; | |
| sincos(angle, s, c); | |
| float t = 1 - c; | |
| float x = axis.x; | |
| float y = axis.y; | |
| float z = axis.z; |
| // Unity C# Cheat Sheet | |
| // I made these examples for students with prior exerience working with C# and Unity. | |
| // Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting |