Skip to content

Instantly share code, notes, and snippets.

@tammukul
tammukul / Starfield.shader
Created October 15, 2018 02:21 — forked from CloudyWater/Starfield.shader
Conversion of ShaderToy to Unity Shader
Shader "Starfield"
{
Properties
{
_iMouse ("iMouse", Vector) = (0,0,0,0)
_Iterations ("Iterations", int) = 17
_Formuparam ("Formuparam", float) = .53
_Steps ("Steps", int) = 20
_StepSize ("StepSize", float) = .1
_Zoom ("Zoom", float) = .8
@tammukul
tammukul / SingletonScriptableObject.cs
Created June 14, 2017 04:42 — forked from dvddarias/SingletonScriptableObject.cs
Better Unity Singleton Class
/************************************************************
* Better Singleton by David Darias
* Use as you like - credit where due would be appreciated :D
* Licence: WTFPL V2, Dec 2014
* Tested on Unity v5.6.0 (should work on earlier versions)
* 03/02/2017 - v1.1
* **********************************************************/
using System;
using UnityEngine;
/**
* Author: David Asmuth
* Contact: piranha771@gmail.com
* License: Public domain
*
* Converts the .fbx model
* from Blender orientation system (Z is up, Y is forward)
* to the Unity3D orientation system (Y is up, Z is forward)
*/
using System.IO;
using UnityEngine;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
public class AnimatedUnitCompressor : EditorWindow {
Vector2 scrollPos = Vector2.zero;
public List<GameObject> UnitPrefabs;
public static string BonePrefix;
private SerializedObject _serializedObject;