Skip to content

Instantly share code, notes, and snippets.

@keijiro
keijiro / ShaderGraphExamples.md
Last active May 7, 2023 05:40
Shader Graph Examples インストラクション

※画像内の文字が見にくい場合はクリックして拡大してください。

必要なもの

Shader Graph を編集するには

既存のファイル(拡張子.ShaderGraph)をダブルクリックするとエディタが開きます。

using UnityEngine;
using UnityEngine.UI;
public class NonTouchable : MonoBehaviour, ICanvasRaycastFilter
{
public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera)
{
return false;
}
}
@FreyaHolmer
FreyaHolmer / ScriptableObjectSpawner.cs
Last active January 8, 2020 06:51
ScriptableObject asset spawner for Unity
// Adds a menu item for easy creation of your ScriptableObject types
// Usage: Right click in project view -> Create -> ScriptableObject... -> Select your type
// It will land in the root of your assets folder with the same name as your class
// Freya Holmér - webmaster@acegikmo.com
using UnityEngine;
using UnityEditor;
using System.Reflection;
using System.Linq;
using System.IO;
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active May 3, 2024 08:26
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@uetchy
uetchy / _instruction.md
Last active November 29, 2018 16:30
The build script for Gitlab and Jenkins on Docker wtih docker-gen(+ Dokku env).

Specification

  • Docker on Ubuntu
  • Gitlab container with Mailgun mailing support
  • nginx reverse-proxy with docker-gen

Prepare

Setup automatic reverse-proxy with docker-gen

@jiro
jiro / gist:5069727
Last active December 14, 2015 10:09
AFIncrementalStoreの紹介(発表メモ)
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining