Skip to content

Instantly share code, notes, and snippets.

View abstractron's full-sized avatar

Abstractron Systems abstractron

View GitHub Profile
@abstractron
abstractron / Base64.as
Created September 23, 2012 02:43 — forked from activeknowledge/Base64.as
TMX Loader Starling Extension
/*
* Copyright (C) 2012 Jean-Philippe Auclair
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
* Base64 library for ActionScript 3.0.
* By: Jean-Philippe Auclair : http://jpauclair.net
* Based on article: http://jpauclair.net/2010/01/09/base64-optimized-as3-lib/
* Benchmark:
* This version: encode: 260ms decode: 255ms
* Blog version: encode: 322ms decode: 694ms
* as3Crypto encode: 6728ms decode: 4098ms
#if ENABLE_UNET
namespace UnityEngine.Networking
{
[AddComponentMenu("Network/NetworkManagerHUD")]
[RequireComponent(typeof(NetworkManager))]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public class ABST_NetworkManager : MonoBehaviour
{
public NetworkManager manager;
@abstractron
abstractron / GridFloorShader.shader
Created January 18, 2018 20:13
Unity grid floor shader
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
Shader "Custom/GridShader" {
Properties{
_GridThickness("Grid Thickness", Float) = 0.1
_GridSpacing("Grid Spacing", Float) = 0.1
_GridColour("Grid Colour", Color) = (0.5, 1.0, 1.0, 1.0)
_BaseColour("Base Colour", Color) = (0.0, 0.0, 0.0, 0.0)