Skip to content

Instantly share code, notes, and snippets.

Shader "Unlit/VolumeSphere"
{
Properties
{
_Centre ("Center", Float) = 0.0
_Radius ("Radius", Float) = 0.5
}
SubShader
{
Pass
@cukiakimani
cukiakimani / TransitionWithMask.shader
Last active July 17, 2017 12:51
Transition shader using mask texture.
Shader "Sprites/Transition With Mask" {
Properties {
_MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
_TransitionMask ("Mask (RGB)", 2D) = "white" {}
_SecondaryTex ("Secondary (RGB)", 2D) = "white" {}
_AlphaCutoff ( "Alpha Cutoff", Range( 0.01, 1.0 ) ) = 0.1