This file contains 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 "Custom/RimLighting" { | |
Properties{ | |
_MainTex("Texture", 2D) = "white"{} | |
_RimWidth("RimWidth", Range(0.5, 5.0)) = 2.0 | |
_Color("Color", Color) = (1, 1, 1, 0) | |
} | |
SubShader{ | |
Pass{ | |
CGPROGRAM | |
#pragma vertex vert |
This file contains 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 "Custom/EmissionVF" { | |
Properties{ | |
_MainTex("Albedo (RGB)", 2D) = "white" {} | |
_Emission("Emission", Range(-1,1)) = 0 | |
_Diff("Diff", Range(0, 1)) = 0 | |
} | |
SubShader{ | |
Pass{ | |
CGPROGRAM |
This file contains 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 "Custom/BlurVF" { | |
Properties{ | |
_MainTex("Texture", 2D) = "white" {} | |
_Diff("Diff", Range(0, 1)) = 0.1 | |
} | |
SubShader{ | |
Pass{ | |
CGPROGRAM | |
#pragma fragment frag |
This file contains 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 "Custom/SepiaVF"{ | |
Properties{ | |
_MainTex("Main", 2D) = "black"{} | |
} | |
SubShader{ | |
Lighting Off | |
Pass{ | |
CGPROGRAM |
This file contains 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 "Custom/GrayScaleVF" { | |
Properties{ | |
_MainTex("Main", 2D) = "white" {} | |
} | |
SubShader{ | |
Lighting Off | |
Pass{ | |
CGPROGRAM |
This file contains 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 "Custom/BasicVF" { | |
Properties{ | |
_MainTex("Main",2D)="black"{} | |
} | |
SubShader{ | |
Lighting Off | |
Pass{ | |
CGPROGRAM |
This file contains 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 "Custom/Basic" { | |
//スクリプトやインスペクター(マテリアル)から設定したい値はここ | |
//シェーダプログラムが外部から参照したいものを記述 | |
//サンプルのため今回使わないものも記述 | |
Properties { | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Color ("Main Color", Color) = (1,1,1,0.5) | |
_SpecColor ("Spec Color", Color) = (1,1,1,1) | |
_Emission ("Emmisive Color", Color) = (0,0,0,0) | |
_Shininess ("Shininess", Range (0.01, 1)) = 0.7 |
This file contains 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.Collections; | |
using UnityEngine; | |
/// <summary> | |
/// パーティクルの自動破棄 | |
/// </summary> | |
public class ParticleAutoDestroy : MonoBehaviour | |
{ | |
private void Start() | |
{ |
This file contains 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; | |
using UnityEngine; | |
public class CodeNotFoundException : Exception | |
{ | |
public CodeNotFoundException(string message) | |
: base(message) | |
{ | |
} |
This file contains 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 System.Dynamic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace HuffmanCoding | |
{ | |
/// <summary> |