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
// Update: not needed for Unity 5 since LOD groups are available in personal edition | |
//======================================== | |
//== Simple LOD system == | |
//== File: LOD.cs == | |
//== By: Ivan Notaros - Nothke == | |
//== Use and alter Freely == | |
//======================================== | |
//Description: |
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
/// | |
/// Changes pitch of any audio clip to match a pressed key on a (piano) keyboard | |
/// if a sound is in C4 (440hz) then it will perfectly match the scale | |
/// by Nothke | |
/// | |
/// QWERTY.. row for white keys | |
/// 12345... row for black keys | |
/// press C to toggle chord mode in game | |
/// press N or M for minor or major | |
/// press A to toggle arpeggiate |
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 PhotonCam : MonoBehaviour | |
{ | |
public float speed = 10; | |
public float rayLength = 0.3f; | |
public int gizmoReflections = 10; |
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.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 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
// | |
// 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 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
/// | |
/// Draw lines at runtime | |
/// by Nothke | |
/// unlicensed, aka do whatever you want with it | |
/// made during Stugan 2016 :) | |
/// ..(it's midnight, and Robbie clicks A LOT, LOUDLY!) | |
/// | |
/// Important: | |
/// - Should be called in OnPostRender() (after everything else has been drawn) | |
/// therefore the script that calls it must be attached to the camera |
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; | |
[ExecuteInEditMode] | |
public class Darken : MonoBehaviour | |
{ | |
Material mat; | |
void Start() | |
{ | |
//GetComponent<Camera>().depthTextureMode = DepthTextureMode.Depth; |
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/FlatShading" | |
{ | |
Properties | |
{ | |
_Color("Color", Color) = (1,0,0,1) | |
} | |
SubShader | |
{ | |
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
//////////////////////////////////////////////////////////////// | |
// Upgrade NOTE: excluded shader from DX11, Xbox360, OpenGL ES 2.0 because it uses unsized arrays | |
#pragma exclude_renderers d3d11 xbox360 gles | |
// | |
// HG_SDF | |
// | |
// GLSL LIBRARY FOR BUILDING SIGNED DISTANCE BOUNDS | |
// | |
// version 2016-01-10 | |
// |
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
/// | |
/// Placas objects dynamically around the player | |
/// by Nothke | |
/// | |
/// unlicensed, aka do whatever you want with it | |
/// | |
using UnityEngine; | |
using System.Collections.Generic; |
OlderNewer