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
| // See image comparison https://imgur.com/a/9L2P7GJ | |
| // Read details https://iolite-engine.com/blog_posts/minimal_agx_implementation | |
| // Usage: | |
| // 1. Open "Project Settings" and change "Working Color Space" to "sRGB / Rec709" | |
| // 2. Open `Engine\Shaders\Private\PostProcessTonemap.usf` file | |
| // 3. Find `half3 OutDeviceColor = ColorLookupTable(FinalLinearColor);` line | |
| // 4. Replace it with `half3 OutDeviceColor = ApplyAgX(FinalLinearColor);` line | |
| // 5. Find `half3 ColorLookupTable( half3 LinearColor )` function | |
| // 6. After the scope of the function, add the code below and run `RecompileShaders Changed` from console |
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
| float hash (float2 n) | |
| { | |
| return frac(sin(dot(n, float2(123.456789, 987.654321))) * 54321.9876 ); | |
| } | |
| float noise(float2 p) | |
| { | |
| float2 i = floor(p); | |
| float2 u = smoothstep(0.0, 1.0, frac(p)); | |
| float a = hash(i + float2(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
| using UnityEngine; | |
| using System.Collections; | |
| public delegate void MetronomeEvent(Metronome metronome); | |
| public class Metronome : MonoBehaviour { | |
| public int Base; | |
| public int Step; | |
| public float BPM; | |
| public int CurrentStep = 1; |