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
// Enables exporting of several PBR maps from a single PSD with a few clicks: | |
// 1. Select an export folder (default to PSD path on Windows) | |
// 2. Choose which PSD layer group corresponds to which map (split into separate RGB/Alpha channels) | |
// 3. Change the file export options (if required) | |
// 4. Hit export. | |
#target photoshop | |
app.bringToFront(); | |
// DEFAULT EXPORT OPTIONS |
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 "Custom/Skybox RGBM HDR Linear" { | |
Properties { | |
_Cubemap ("Cubemap", Cube) = "white" {} | |
_Exposure ("Exposure", Float) = 20.0 | |
} | |
SubShader { | |
Tags { "Queue"="Background" "RenderType"="Background" } | |
Cull Off | |
ZWrite Off |
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; | |
public class CameraOrbit : MonoBehaviour | |
{ | |
public float angularSpeed = 180; | |
public float zoomSpeed = 1; | |
public float sensibility = 6; | |
Vector2 prevMousePosition; |
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; | |
public class NoClipMouseLook : MonoBehaviour { | |
public float sensitivityX = 8F; | |
public float sensitivityY = 8F; | |
float mHdg = 0F; | |
float mPitch = 0F; |
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 static class Settings | |
{ | |
#region Constant Variables | |
/// <summary> | |
/// The Name of the Player | |
/// </summary> | |
/// <remarks>This defaults to null, so that if you wish to display something else, you may.</remarks> |
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; | |
public static class Extensions | |
{ | |
// | |
// 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
using UnityEngine; | |
using System.Collections; | |
public class UnbreakableCollider : MonoBehaviour | |
{ | |
public Transform DotPrefab; | |
Vector3 lastDotPosition; | |
bool lastPointExists; | |
void Update() | |
{ |
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
///////////////////////////////////////////////////////////////////////////////// | |
// | |
// Vehiclemanager.cs | |
// https://twitter.com/keiranlovett | |
// http://www.keiranlovett.com | |
// | |
// Description: This is an extension of vp_Interactable that allows players | |
// to board interactive items - such as computer terminals or | |
// vehicles via input. The script allows for different 'seat' | |
// positions and permissions Check for the method InputInteract() |
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; | |
public class CrossHair : MonoBehaviour { | |
// Use this for initialization | |
public enum preset { none, shotgunPreset, crysisPreset } | |
public preset crosshairPreset = preset.none; |
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
import System.Collections.Generic; | |
import System.Linq; | |
import System; | |
class Message | |
{ | |
//Holds the messages being displayed | |
static var messages : List.<Message> = new List.<Message>(); | |
//Holds the messages waiting for display | |
static var queue : List.<Message> = new List.<Message>(); |