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 PhotonCam : MonoBehaviour | |
{ | |
public float speed = 10; | |
public float rayLength = 0.3f; | |
public int gizmoReflections = 10; |
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.Generic; | |
using System.IO; | |
public class SReader | |
{ | |
public static string[] GetLines(string path, string key) | |
{ | |
if (!File.Exists(path)) | |
Debug.LogWarning("SReader: File named " + path + " doesn't exist"); |
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
// | |
// ParticleSystem extensions for changes introduced in Unity 5.3 | |
// by Nothke, unlicensed | |
// | |
// Each module in ParticleSystem in Unity 5.3 is now a struct, | |
// which makes setting some simple stuff more cumbersome | |
// These extensions provide shortcuts to simplify those tasks | |
// | |
// For example: setting constant emission rate now takes 3 lines at minimum, | |
// rather than a single line like before. |
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; | |
[ExecuteInEditMode] | |
public class Darken : MonoBehaviour | |
{ | |
Material mat; | |
void Start() | |
{ | |
//GetComponent<Camera>().depthTextureMode = DepthTextureMode.Depth; |
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/FlatShading" | |
{ | |
Properties | |
{ | |
_Color("Color", Color) = (1,0,0,1) | |
} | |
SubShader | |
{ | |
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
/// | |
/// Placas objects dynamically around the player | |
/// by Nothke | |
/// | |
/// unlicensed, aka do whatever you want with it | |
/// | |
using UnityEngine; | |
using System.Collections.Generic; |
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 PreviewPerlin : MonoBehaviour | |
{ | |
public int samples = 5000; | |
public float previewLength = 10; | |
public float xValue = 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; | |
using UnityEditor; | |
[CustomEditor(typeof(ContextDummy))] | |
public class ContextDummyEditor : Editor | |
{ | |
Event prevMouseEvent; | |
bool contextIsOpen; |
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
x = 64 | |
y = 64 | |
r = 20 | |
sunz = 10 | |
nmap = {} | |
cmap = {} | |
interleave = 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; | |
public class FlyCam : MonoBehaviour | |
{ | |
public float speed = 1; | |
public float mouseScrollAccel = 2; | |
public bool localRotation; |
OlderNewer