Skip to content

Instantly share code, notes, and snippets.

using System.Collections;
using System.Collections.Generic;
using Unity.Mathematics;
using UnityEngine;
using UnityEngine.Rendering;
public struct MyVector
{
public float foo;
public float bar;
@tarob19
tarob19 / WaterEffectShader.shader
Last active November 21, 2017 08:03
水っぽいシェーダ
Shader "Unlit/WaterEffectShader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Color ("Color", Color) = (1,1,1,1)
_RimColor ("Rim Color", Color) = (0,0,0,0)
}
SubShader
{
@tarob19
tarob19 / StateTest.cs
Last active March 1, 2016 09:12
再生モードが切り替わるタイミングでモデルを再生成するWindow
public class StateTest : EditorWindow
{
[MenuItem ("Window/Test")]
public static void Open ()
{
EditorWindow.GetWindow<StateTest> ("Test").Show ();
}
private bool _updated = false;
void OnEnable ()
{
@tarob19
tarob19 / RotateTest.cs
Last active August 29, 2015 14:23
Rotate sample component
using UnityEngine;
using System.Collections;
public class RotateTest : MonoBehaviour
{
public GameObject target;
public Vector3 additional;
Quaternion _rot;
Quaternion _initRot;
Vector3 _vec;