Skip to content

Instantly share code, notes, and snippets.

View fangzhangmnm's full-sized avatar

fangzhangmnm fangzhangmnm

View GitHub Profile
//credits :https://github.com/madsbangh/EasyButtons/
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
using System;
using System.Linq;
using System.Reflection;
//https://gist.github.com/fangzhangmnm/38eeeca077db38d0e0b7af53a620947b
//Credit: Inspired by noriben's work https://booth.pm/ja/items/1671087
//reference https://docs.unity3d.com/Manual/SL-VertexFragmentShaderExamples.html
Shader "fzmnm/mobileWaterToon"
{
Properties
{
@fangzhangmnm
fangzhangmnm / GridPaintEditor.cs
Last active March 1, 2022 04:51
Unity3D paint prefabs on grid
//https://gist.github.com/fangzhangmnm/bdb16f3970c2158c3bb829bf2685bb94
// credits: https://www.synnaxium.com/en/2019/01/unity-custom-map-editor-part-1/
#if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.IO;