Skip to content

Instantly share code, notes, and snippets.

@miketucker
miketucker / FXWaterPro.cs
Created February 19, 2017 22:21
Unity Water with VR support
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
Shader "FX/Water" {
Properties {
_WaveScale ("Wave scale", Range (0.02,3.0)) = 0.063
_ReflDistort ("Reflection distort", Range (0,1.5)) = 0.44
_RefrDistort ("Refraction distort", Range (0,1.5)) = 0.40
_Brightness("Brightness", Range(0,1.0)) = 0.40
_RefrColor ("Refraction color", COLOR) = ( .34, .85, .92, 1)
[NoScaleOffset] _Fresnel ("Fresnel (A) ", 2D) = "gray" {}
@miketucker
miketucker / PhotoshopBlendModes
Created March 6, 2015 23:19
photoshop blending modes
/*
** Copyright (c) 2012, Romain Dura romain@shazbits.com
**
** Permission to use, copy, modify, and/or distribute this software for any
** purpose with or without fee is hereby granted, provided that the above
** copyright notice and this permission notice appear in all copies.
**
** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
** WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
** MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
@miketucker
miketucker / alienware-i3-device-report
Created December 18, 2014 21:47
Alienware Alpha i3 model
System Information report written at: 12/18/14 13:30:30
System Name: ALPHA-6YFV322
[System Summary]
Item Value
OS Name Microsoft Windows 8.1
Version 6.3.9600 Build 9600
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name ALPHA-6YFV322
@miketucker
miketucker / gitignore
Created June 26, 2014 12:07
Unity gitignore
Library
Temp
*.sln
*.csproj
*.unityproj
*.pidb
*.userprefs
@miketucker
miketucker / osx-installation-mode.sh
Last active February 5, 2020 04:51
tweaks to prepare your OSX machine for an installation
# disable screensaver
defaults -currentHost write com.apple.screensaver idleTime 0;
# restart automatically if crashes
systemsetup -setrestartfreeze on;
# disable sleep
systemsetup -setcomputersleep Off > /dev/null;
# disable bluetooth setup dialog boxes
// http://mrl.nyu.edu/~perlin/noise/
var ImprovedNoise = function () {
var p = [151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,
23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,
174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,
133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,
89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,
202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,
@miketucker
miketucker / HSVColor.js
Created November 16, 2013 22:23
Basic color class for converting HSV, RGB, and HEX etc
/*
Basic color class for converting HSV, RGB, and HEX etc
*/
var HSVColor;
HSVColor = (function() {
@miketucker
miketucker / Verlet.js
Created November 16, 2013 22:21
Abstracted from the SvgVerlet.js class
// Generated by CoffeeScript 1.6.3
var RubberPoint, VerletPoint, VerletStick,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
VerletPoint = (function() {
VerletPoint.prototype.down = false;
VerletPoint.prototype.oldX = null;
@miketucker
miketucker / MacInstallation
Created October 10, 2013 14:47
mac-for-installation.html
```
title: Running an installation on a Mac
layout: post
tags: ['dev','osx','post']
```
A quick guide for designers and newcomers to the world of installations. This article explains how to prepare your Mac its first run. We also briefly look at Launch Agents and Applescripts. Bash gurus need not apply.
*Version 1.0 - October 8, 2013*
using UnityEngine;
using UnityEditor;
using System.IO;
// Create a Sublime Text 2 project from a Unity project
// Includes folders and file types of your choosing
// Includes all assemblies for autocompletion in CompleteSharp package
public class SyncSublimeText : Editor