Skip to content

Instantly share code, notes, and snippets.

@p-groarke
p-groarke / GLSL-Noise.md
Created August 6, 2017 21:52 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

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);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@p-groarke
p-groarke / UnityTextures.cs
Created August 23, 2016 14:40 — forked from masa795/UnityTextures.cs
Unityが持っているアイコンを表示する。 Unityのバージョンによってはパスが使えなくなるかもしれないので使用時は注意。
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
//Unity 4.1.5
public class UnityTextures : EditorWindow
{