This file contains 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 "Custom/Standard (No fog)" | |
{ | |
Properties | |
{ | |
_Color("Color", Color) = (1,1,1,1) | |
_MainTex("Albedo", 2D) = "white" {} | |
_Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 | |
_Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5 |
This file contains 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
// Hover.com "Zone file import/export" has been *Planned* since 2011 | |
// https://help.hover.com/entries/471066-Zone-file-import-export | |
// Here's a brittle approximation of export. | |
// | |
// 1. login to your account: https://www.hover.com/domains | |
// 2. run the following in your browser's JavaScript console, changing the first line | |
// to your domain | |
// 3. copy the text logged to the console. | |
// 4. manually correct FQDNs, these have to end with a period "." | |
// |
This file contains 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
#!/bin/bash | |
# This script is designed to build the SOOMLA Store android plugin, and install it into a Unity game. | |
# Update the variables in the config section below to customize for your environment. | |
# | |
# Copyright (c) 2014 Eliot Lash | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
This file contains 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
#!/bin/sh | |
# Script to install, run, and open logcat for a Unity Android App. | |
# I needed this as one of my libraries has a critical post-build script so I can't use "Build and Run" anymore - this is the "and Run" part. | |
# Be sure to update these variables to match your app's publishing/build settings: | |
APK_PATH='builds/android/basecode.apk' | |
BUNDLE_ID='com.eliotlash.basecode' | |
alias unilogcat='adb logcat|egrep "Unity"' | |
adb install -r "${APK_PATH}" && adb logcat -c && adb shell am start -n "${BUNDLE_ID}/com.unity3d.player.UnityPlayerNativeActivity" && echo 'DONE, LOG:' && unilogcat |
This file contains 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; | |
[RequireComponent(typeof(BoxCollider2D))] | |
public class SpawnArea : MonoBehaviour { | |
public GameObject spawnedPrefab; | |
BoxCollider2D spawnArea; | |
Vector2 maxSpawnPos; | |
float lastSpawnTimeS = -1; |
This file contains 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; | |
public class Comment : MonoBehaviour { | |
public string comment; | |
} |
This file contains 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
javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful | |
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809) | |
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752) | |
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669) | |
at javax.mail.Service.connect(Service.java:317) | |
at javax.mail.Service.connect(Service.java:176) | |
at javax.mail.Service.connect(Service.java:125) | |
at javax.mail.Transport.send0(Transport.java:194) | |
at javax.mail.Transport.send(Transport.java:124) | |
at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(Mailer.java:519) |
This file contains 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 "eliotlash/Particles/Additive B&W" { | |
Properties { | |
_TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5) | |
_MainTex ("Particle Texture", 2D) = "white" {} | |
_InvFade ("Soft Particles Factor", Range(0.01,3.0)) = 1.0 | |
_BWEffectOn ("B&W Effect On", Range(0, 1)) = 0 | |
} | |
Category { | |
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } |
This file contains 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
#ifndef NOISE_SIMPLEX_FUNC | |
#define NOISE_SIMPLEX_FUNC | |
/* | |
Description: | |
Array- and textureless CgFx/HLSL 2D, 3D and 4D simplex noise functions. | |
a.k.a. simplified and optimized Perlin noise. | |
The functions have very good performance | |
and no dependencies on external data. |
This file contains 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 "Custom/crappyVertPerlin" { | |
Properties { | |
// _Slide ("SliderTime", Range(0, 20)) = 0 | |
_PerlinScale ("Perlin Scale", Vector) = (50, 50, 0, 0) | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } | |
Pass { | |
CGPROGRAM |