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
| // original from https://forum.unity3d.com/threads/share-volume-fog-shader.147323/ | |
| Shader "Effect/SphereFog" { | |
| Properties { | |
| _FogColor ("Fog Color", Color) = (1,1,1,1) | |
| [space] | |
| _Density ("Density", Float) = 1 | |
| _Power ("Power/gamma", Float) = 4 | |
| _Offset ("Offset", Range(-.1,.1)) = -0.003 | |
| [space] | |
| _NearbyOffset ("Nearby Offset", 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
| /* | |
| Read the article about this script on : https://medium.com/return-of-the-jordy/dealing-with-unity-ui-hierarchy-db2ff05e01b0 | |
| */ | |
| using UnityEngine; | |
| using UnityEditor; | |
| [ExecuteInEditMode] | |
| public class UIFocusMode : MonoBehaviour | |
| { |