Skip to content

Instantly share code, notes, and snippets.

View TheoSabattie's full-sized avatar
🏝️

Théo Sabattié TheoSabattie

🏝️
View GitHub Profile
@Fishrock123
Fishrock123 / pixi.TextInput.js
Created May 16, 2014 20:20
TextInput Element for pixi.js
/**!
* name: pixi.TextInput.js
* repository: https://gist.github.com/Fishrock123/7ce7da8cacd762a56542
* @author Jeremiah Senkpiel - https://searchbeam.jit.su
* @version 0.2
* MIT Licensed - Copyright 2013 Jeremiah Senkpiel
*/
(function(){
@wandermyz
wandermyz / CurveDrawingTest.cs
Created May 23, 2017 07:11
How to draw a curve in a Unity Editor Window
using UnityEngine;
using UnityEditor;
public class CurveDrawingTest : EditorWindow {
[MenuItem("Window/CurveDrawingTest")]
public static void ShowWindow() {
EditorWindow.GetWindow<CurveDrawingTest>().Show();
}
@nicoplv
nicoplv / MobileDecalShadow.shader
Created September 5, 2017 17:08
A mobile decal shadow shader for Unity
Shader "Mobile/Decal Shadow" {
Properties{
_MainTex("Base (RGB)", 2D) = "white" {}
_alpha("AlphaMulti", Range(0,1)) = 1
}
SubShader{
Tags { "RenderType" = "Opaque" "Queue" = "Geometry+1" "ForceNoShadowCasting" = "True" }
LOD 200
Offset -1, -1