Skip to content

Instantly share code, notes, and snippets.

Avatar

Joseph Kalathil josephbk117

View GitHub Profile
@josephbk117
josephbk117 / Dither.shader
Last active Apr 1, 2021
Dithering Image Effect For Unity
View Dither.shader
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage of this stuff is not my responsibility*/
Shader "Hidden/Dither"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
@josephbk117
josephbk117 / PixelateImageEffect.cs
Last active Nov 13, 2019
Pixelate Image Effect For Unity
View PixelateImageEffect.cs
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage of this stuff is not my responsibility*/
using UnityEngine;
[ExecuteInEditMode, RequireComponent(typeof(Camera))]
public class PixelateImageEffect : MonoBehaviour
{
public Material material;
@josephbk117
josephbk117 / MotionLogic.cs
Last active Nov 18, 2018
Various motion exmaples with sin & cos
View MotionLogic.cs
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage of this stuff is not my responsibility*/
#define _Example4
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@josephbk117
josephbk117 / VoronoiNoise.shader
Last active May 30, 2019
Voronoi shader in unity
View VoronoiNoise.shader
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage of this stuff is not my responsibility*/
Shader "BitShiftProductions/VoronoiMagic2"
{
Properties
{
}
@josephbk117
josephbk117 / DirectionalColour.shader
Last active Nov 18, 2018
unity shader that shows texture based on the object's normal
View DirectionalColour.shader
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage of this stuff is not my responsibility*/
Shader "BitShiftProgrammer/DirectionalColour"
{
Properties
{
_Tex1 ("Texture 1", 2D) = "white" {}
_Tex2("Texture 2", 2D) = "white"{}
@josephbk117
josephbk117 / WhiteNoise.shader
Last active Jul 21, 2018
White noise ( grain filter ) shader in unity
View WhiteNoise.shader
Shader "BitShiftProductions/Noises"
{
Properties
{
_MainTex("Texture", 2D)="white"
_NoiseScale("Noise Scale",Float) = 5.0
_Strength("Noise Strength",Float) = 1.0
}
SubShader
{
@josephbk117
josephbk117 / AnimatedFish.shader
Last active Oct 29, 2019
An animated fish shader written for use in unity
View AnimatedFish.shader
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage of this stuff is not my responsibility*/
Shader "BitShiftProgrammer/AnimatedFish"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_EffectRadius("Wave Effect Radius",Range(0.0,1.0)) = 0.5
@josephbk117
josephbk117 / GenericsExample.cs
Created Jan 11, 2018
An exmple of generics in c#
View GenericsExample.cs
using System;
using System.Collections;
using System.Collections.Generic;
public interface IUseMagic
{
void UseMagic();
}
public class MagicUser : IUseMagic
{
@josephbk117
josephbk117 / AudioVisualizer.cs
Last active Nov 18, 2018
Audio visualizer in unity with blend shapes
View AudioVisualizer.cs
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage of this stuff is not my responsibility*/
using UnityEngine;
[RequireComponent(typeof(SkinnedMeshRenderer))]
public class AudioVisualizer : MonoBehaviour
{
[Range(1.0f,4500.0f)]
@josephbk117
josephbk117 / JarvisMarchConvexHull.cs
Last active Sep 23, 2019
Jarvis march convex hull unity c# script
View JarvisMarchConvexHull.cs
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage of this stuff is not my responsibility*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class JarvisMarchConvexHull : MonoBehaviour
{