This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "esque.ma/Anti-Aliased Point-Sampled" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_Feather ("Feather", Range(0.1, 0.9)) = 0.25 | |
_Ratio ("Ratio", Range(0.0, 0.25)) = 0.15 | |
} | |
SubShader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
"follow_symlinks": true, | |
"path": ".", | |
"folder_exclude_patterns": ["Library", "ProjectSettings", "Temp"], | |
"file_exclude_patterns": ["*.meta", "*.dll", "*.obj", "*.o", "*.a", "*.lib", ".DS_Store", "*.sublime-workspace"], | |
} | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public static class Vector3Addons { | |
public static Vector2 xx(this Vector3 vec) { return new Vector2(vec.x, vec.x); } | |
public static Vector2 xy(this Vector3 vec) { return new Vector2(vec.x, vec.y); } | |
public static Vector2 xz(this Vector3 vec) { return new Vector2(vec.x, vec.z); } | |
public static Vector2 yx(this Vector3 vec) { return new Vector2(vec.y, vec.x); } | |
public static Vector2 yy(this Vector3 vec) { return new Vector2(vec.y, vec.y); } | |
public static Vector2 yz(this Vector3 vec) { return new Vector2(vec.y, vec.z); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define (*vm* accum | |
stack | |
code | |
rstack | |
env) | |
(if (pair? code) | |
(let ([word (car code)]) | |
(match word | |
['halt! accum] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.Xml; | |
using System.Xml.Serialization; | |
using System.IO; | |
using System.Text; | |
using System; | |
// XML-Serializable Dictionary class, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.Events; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class State { | |
public delegate void EnterStateEvent(State s, State from); | |
public delegate void ExitStateEvent(State s, State to); | |
public delegate void UpdateStateEvent(State s); | |
public delegate void Constructor(State s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ABNT2 PS/2 keyboard to Gradiente Expert 1.1 keyboard mapper | |
* (c) 2014 Tiago Rezende | |
*/ | |
static const uint8_t ps2data = 2; | |
static const uint8_t ps2clk = 3; | |
//#define K(x) (uint8_t)((x>=0x80)?(x+0x8):((x<=0x07)?(x+0x80):(x-0x10))) | |
#define K(x) x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ofxRectFit.h | |
// | |
// Created by Tiago on 11/28/14. | |
// | |
// | |
#ifndef __ofxRectFit__ | |
#define __ofxRectFit__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
[RequireComponent(typeof(Camera))] | |
public class MixableCamera : MonoBehaviour { | |
public Camera fromCamera, toCamera; | |
public float mixPosition = 0f; | |
public float mixSpeed = 0f; |
NewerOlder