This file contains hidden or 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
| // Copyright (c) 2012 Calvin Rien | |
| // http://the.darktable.com | |
| // | |
| // This software is provided 'as-is', without any express or implied warranty. In | |
| // no event will the authors be held liable for any damages arising from the use | |
| // of this software. | |
| // | |
| // Permission is granted to anyone to use this software for any purpose, | |
| // including commercial applications, and to alter it and redistribute it freely, |
This file contains hidden or 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; | |
| using System.Diagnostics; | |
| // Some helpers for converting GPS readings from the WGS84 geodetic system to a local North-East-Up cartesian axis. | |
| // The implementation here is according to the paper: | |
| // "Conversion of Geodetic coordinates to the Local Tangent Plane" Version 2.01. | |
| // "The basic reference for this paper is J.Farrell & M.Barth 'The Global Positioning System & Inertial Navigation'" | |
| // Also helpful is Wikipedia: http://en.wikipedia.org/wiki/Geodetic_datum | |
| public class GpsUtils |
This file contains hidden or 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
| /// | |
| /// Simple pooling for Unity. | |
| /// Author: Martin "quill18" Glaude (quill18@quill18.com) | |
| /// Latest Version: https://gist.github.com/quill18/5a7cfffae68892621267 | |
| /// License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
| /// UPDATES: | |
| /// 2015-04-16: Changed Pool to use a Stack generic. | |
| /// | |
| /// Usage: | |
| /// |
This file contains hidden or 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
| // From http://forum.unity3d.com/threads/solved-dynamic-blurred-background-on-ui.345083/ | |
| Shader "Custom/SimpleGrabPassBlur" { | |
| Properties { | |
| _Color ("Main Color", Color) = (1,1,1,1) | |
| _BumpAmt ("Distortion", Range (0,128)) = 10 | |
| _MainTex ("Tint Color (RGB)", 2D) = "white" {} | |
| _BumpMap ("Normalmap", 2D) = "bump" {} | |
| _Size ("Size", Range(0, 20)) = 1 | |
| } |