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 UnityEngine; | |
using UnityEditor; | |
[CanEditMultipleObjects] | |
[CustomEditor(typeof(DataStage))] | |
public class DataStageEditor : Editor { | |
public override void OnInspectorGUI() | |
{ | |
// Get this Stage-Data | |
DataStage dataStage = target as DataStage; |
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 UnityEngine; | |
using System.Collections; | |
[CreateAssetMenu(menuName = "Stage Data")] | |
public class DataStage : ScriptableObject { | |
public DataCharacter[] characters; | |
public DataItem[] items; | |
} | |
[System.Serializable] |
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 "Sasami/NoiseDistGrabTexture" | |
{ | |
Properties | |
{ | |
_NoiseTilingOffset ("NoiseTex Tiling(x,y)/Offset(z,w)", Vector) = (0.1,0.1,0,0) | |
_NoiseSizeScroll ("NoiseTex Size(x,y)/Scroll(z,w)" , Vector) = (16,16,0,0) | |
_DistortionPower ("Distortion Power", Float ) = 0 | |
_NormalScale ("Normal Scale", Float ) = 0 | |
_SpecularPower ("Specular Power", Range(0.0, 1.0) ) = 0 |
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 "Sasami/NoiseDistAddAlpha" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_BaseColor ("Base Color" , Color ) = (1,1,1,1) | |
_AddAlphaColor ("Add Alpha Color", Color ) = (0,0,0,1) | |
_NoiseTilingOffset ("NoiseTex Tiling(x,y)/Offset(z,w)", Vector) = (0.1,0.1,0,0) | |
_NoiseSizeScroll ("NoiseTex Size(x,y)/Scroll(z,w)" , Vector) = (16,16,0,0) |
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 "Sasami/NoiseGradation" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_NoiseTilingOffset ("NoiseTex Tiling(x,y)/Offset(z,w)", Vector) = (0.1,0.1,0,0) | |
_NoiseSizeScroll ("NoiseTex Size(x,y)/Scroll(z,w)" , Vector) = (16,16,0,0) | |
_BaseColor ("Base Color" , Color ) = (1,1,1,1) | |
_GradationColor ("Gradation Color", Color ) = (0,0,0,1) | |
} |
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 "Sasami/NoiseSample" | |
{ | |
Properties | |
{ | |
_NoiseTilingOffset ("NoiseTex Tiling(x,y)/Offset(z,w)", Vector) = (0.1,0.1,0,0) | |
_NoiseSizeScroll ("NoiseTex Size(x,y)/Scroll(z,w)" , Vector) = (16,16,0,0) | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } |
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
#ifndef SASAMI_NOISE_INCLUDED | |
#define SASAMI_NOISE_INCLUDED | |
#include "UnityCG.cginc" | |
// TRANSFORM_TEX相当の処理(vertexシェーダーでの変換) | |
fixed2 TRANSFORM_NOISE_TEX(fixed2 uv, fixed4 tilingOffset, fixed4 sizeScroll) { | |
// 仮想ノイズテクスチャサイズ, Tiling, Offsetの適用 | |
uv = uv * tilingOffset.xy * sizeScroll.xy + tilingOffset.zw; |
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 "Sasa/Meat" | |
{ | |
Properties | |
{ | |
_MainTex ("Main Tex", 2D) = "white" {} | |
_DarkColor ("Dark Color", Color) = (0.5,0.5,0.5,1) | |
_LightColor ("Light Color", Color) = (0.5,0.5,0.5,1) | |
} | |
SubShader |