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; | |
| using UnityEngine.LowLevel; | |
| using System.Linq; | |
| using System.Threading; | |
| namespace EditorUtils { | |
| // | |
| // Serializable settings |
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.Rendering.Universal; | |
| public class CausticsFeature : ScriptableRendererFeature | |
| { | |
| [System.Serializable] | |
| public class CausticsSettings | |
| { | |
| public RenderPassEvent renderPassEvent = RenderPassEvent.AfterRenderingTransparents; | |
| public Material causticsMaterial; | |
| } |
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.Rendering; | |
| using UnityEngine.Rendering.Universal; | |
| public class CausticsPass : ScriptableRenderPass | |
| { | |
| private CausticsFeature.CausticsSettings settings; | |
| public CausticsPass(CausticsFeature.CausticsSettings settings) | |
| { |
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 "Caustics" | |
| { | |
| Properties | |
| { | |
| [Header(Caustics)] | |
| _CausticsTexture("Texture", 2D) = "white" {} | |
| _CausticsStrength("Strength", float) = 0 | |
| _CausticsSplit("RGB Split", float) = 0 | |
| [Header(Movement)] |
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 "Unlit/Panner" | |
| { | |
| Properties | |
| { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Color Texture", 2D) = "white" {} | |
| _MaskTex ("Mask Texture", 2D) = "white" {} | |
| _MFade("Mask Fade", Range(0,1)) = 0.2 | |
| _MIntesity("Mask Intesity", Float) = 1 | |
| _SpeedU("Color SpeedU", Float) = 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
| using System; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| namespace RoboticWeaselAssault.Gamutmamut.Editor | |
| { | |
| public class EditorTools | |
| { | |
| /// <summary> |