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 RotateWithMouse : MonoBehaviour | |
| { | |
| public float Speed = 5; | |
| void Update() | |
| { | |
| if(Input.GetMouseButton(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
| using UnityEngine; | |
| using UnityEngine.LowLevel; | |
| using UnityEngine.PlayerLoop; | |
| public static class AddPlayerLoopCallback | |
| { | |
| // Add a callback to the PreUpdate phase | |
| [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
| static void Setup() | |
| { |
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 UnityEditor; | |
| using UnityEngine.LowLevel; | |
| using UnityEngine.UIElements; | |
| public class ShowPlayerLoopWindow : EditorWindow | |
| { | |
| [MenuItem("Window/Player Loop")] | |
| static void ShowWindow() | |
| { | |
| var wind = GetWindow<ShowPlayerLoopWindow>(false, "Player Loop"); |
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
| #!/bin/bash | |
| if [ -z "$2" ];then | |
| echo 'USAGE: | |
| denoise input.mov output.mov | |
| OR | |
| denoise input.mov output.mov [ambient-noise-start-time] [ambient-noise-duration] [sox-noisered-amount] [sox-norm-param] |
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; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEditor.Compilation; | |
| using UnityEditor.SceneManagement; | |
| using UnityEngine; | |
| class CompileTime : EditorWindow { | |
| bool allowProfiler = false; | |
| bool isTrackingTime; |
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
| MarchingCubesGPU.cs: | |
| ... | |
| // DrawProceduralIndirect | |
| ComputeBuffer argsBuffer; | |
| [StructLayout(LayoutKind.Sequential)] | |
| struct DrawCallArgBuffer | |
| { | |
| public const int size = | |
| sizeof(int) + | |
| sizeof(int) + |
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
| // Moved most of the functions from includes into the shader | |
| // Removed lots of unnecessary stuff (i just want the reflection probe cube) | |
| // Still plenty to cleanup | |
| // NEW: http://forum.unity3d.com/threads/reflection-probes-in-a-custom-surface-shader.378549/#post-2685603 | |
| // References (none of the scripts worked..) | |
| // http://forum.unity3d.com/threads/reflection-probes-in-a-custom-surface-shader.378549/ | |
| // http://forum.unity3d.com/threads/reflection-probes-in-custom-shader.322562/ | |
| // http://forum.unity3d.com/threads/accessing-reflection-probe-cubemaps.307077/ |
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
| @echo off | |
| title Install Unity | |
| echo Just a moment... | |
| powershell -NoProfile -NoLogo -ExecutionPolicy Unrestricted -File PowershellScripts\InstallUnity.ps1 -Project . -Components Windows | |
| pause |
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.Reflection; | |
| using UnityEditor.ShaderGraph; | |
| using UnityEngine; | |
| [Title("Custom", "Image", "Sobel Edge Detection")] | |
| public class SobelNode : CodeFunctionNode | |
| { | |
| public SobelNode() | |
| { | |
| name = "Sobel Edge Detection"; |