Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am madebynoxc on github.
  • I am noxc (https://keybase.io/noxc) on keybase.
  • I have a public key ASA-phtodupZs2KHWq2R_wgziF5t00BbzOChdwXyhOB_zwo

To claim this, I am signing this object:

@madebynoxc
madebynoxc / .aREADME.md
Last active August 24, 2020 17:11
Unity default project setup

Unity Default Template

This template for Unity project has a set of development tools and packages for fast and efficient development. Set up for using with GIT LFS.

Open UPM registry

UPM GIT Extension Extends the UI of Unity Package Manager for package installed using git.

NaughtyAttributes Expands the range of attributes that Unity provides so that you can create powerful inspectors without the need of custom editors or property drawers. It also provides attributes that can be applied to non-serialized fields or functions.

@madebynoxc
madebynoxc / ProjectorLight.c
Created May 28, 2018 17:59
Unity Projector/Light shader with intensity control
// Upgrade NOTE: replaced '_Projector' with 'unity_Projector'
// Upgrade NOTE: replaced '_ProjectorClip' with 'unity_ProjectorClip'
Shader "Projector/LightAdvanced" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_ShadowTex ("Cookie", 2D) = "" {}
_FalloffTex ("FallOff", 2D) = "" {}
_IntenceVal("Intensity", Range(1, 100)) = 1
}
inline float3 applyHue(float3 aColor, float aHue)
{
float angle = radians(aHue);
float3 k = float3(0.57735, 0.57735, 0.57735);
float cosAngle = cos(angle);
return aColor * cosAngle + cross(k, aColor) * sin(angle) + k * dot(k, aColor) * (1 - cosAngle);
}
inline float4 applyHSBEffect(float4 startColor, fixed4 hsbc)
var target : Transform;
var distance = 3.0;
var height = 3.0;
var damping = 5.0;
var smoothRotation = true;
var rotationDamping = 10.0;
var lockRotation :boolean;
private var cam;
function Start(){