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.Collections.Generic; | |
/// <summary> | |
/// Modified Gradient effect script from http://answers.unity3d.com/questions/1086415/gradient-text-in-unity-522-basevertexeffect-is-obs.html | |
/// -Uses Unity's Gradient class to define the color | |
/// -Offset is now limited to -1,1 | |
/// -Multiple color blend modes | |
/// | |
/// Remember that the colors are applied per-vertex so if you have multiple points on your gradient where the color changes and there aren't enough vertices, you won't see all of the colors. | |
/// </summary> |
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
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 |
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
#!/usr/bin/env bash | |
[ ! -d .git ] && "This is not a git directory." && exit 1 | |
# Setup the gource info for the repo. | |
~/gource/setup | |
# Create the video. | |
gource --load-config ./.git/gource/config.ini | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 8 -bf 0 ./gource.mp4 |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.XR.iOS; | |
public class BlendShapeObjectSwitcher : MonoBehaviour { | |
private static float THRESHOLD = 0.4f; | |
bool enabled = false; |
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
// An adaptaion of Frank Otto's AutoFocus script for Unity's new PostProcessing Stack | |
// Original at: http://wiki.unity3d.com/index.php?title=DoFAutoFocus | |
// Adapted by Michael Hazani | |
// For more info see: http://www.michaelhazani.com/autofocus-on-whats-important | |
using UnityEngine; | |
using System.Collections; | |
using System; | |
using UnityEngine.PostProcessing; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class GPSController : MonoBehaviour { | |
public LocationInfo currentGPSInfo; | |
public float updateRate = 3f; | |
public bool debugging = true; |
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 UnityEngine; | |
public class AsteroidSpawner : MonoBehaviour | |
{ | |
public int count = 10; | |
public GameObject prefab; | |
private void Start() | |
{ | |
for (int i = 0; i < count; i++) |
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.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
[RequireComponent(typeof(GeneratePlaneMesh))] | |
public class DeformableMesh : MonoBehaviour { | |
public float maximumDepression; | |
public List<Vector3> originalVertices; |
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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// | |
/// </summary> | |
/// <remarks>Source: https://forum.unity3d.com/threads/trying-extrude-a-2d-polygon-to-create-a-mesh.102629/ </remarks> | |
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer), typeof(PolygonCollider2D))] | |
public class ExtrudeSprite : MonoBehaviour |
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
// (c) 2016 Markakod | |
#include "HitMe.h" | |
#include "WebImageDownloader.h" | |
UWebImageDownloader* UWebImageDownloader::GetWebImageDownloader(FString WebImageName, FString URL, bool& IsValid) | |
{ | |
IsValid = false; | |
UWebImageDownloader *Object = NewObject<UWebImageDownloader>(); |