Skip to content

Instantly share code, notes, and snippets.

@inbgche
inbgche / WaveExplo.shader
Last active February 2, 2017 05:23 — forked from jpsarda/WaveExplo.shader
Unity (pro) post processing explosion wave effect (need GoKit library). You call it like this : WaveExploPostProcessing.Get().StartIt(myVector2Position);
Shader "Custom/WaveExplo" {
Properties {
_MainTex ("", 2D) = "white" {}
_CenterX ("CenterX", Range(-1,2)) = 0.5
_CenterY ("CenterY", Range(-1,2)) = 0.5
_Radius ("Radius", Range(-1,1)) = 0.2
_Amplitude ("Amplitude", Range(-10,10)) = 0.05
}
SubShader {
Shader "Test/HiddenPixelColoring" {
Properties {
_MainTex ("Texture", 2D) = "white" { }
}
SubShader {
////////////////////////////////////////////////////////////
// Pass #1
Tags {"Queue" = "Geometry" "RenderType" = "Opaque" }
Shader "Seventy Sevian/Pixelated-Mobile"
Properties
{
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_Color ("Color", Color) = (1, 1, 1, 1)
//_PixelCountU ("Pixel Count U", Range (1, 500)) = 100
_PixelCount ("Pixel Count", Range (1, 500)) = 100
}
SubShader
@inbgche
inbgche / FlagSample.cs
Last active August 29, 2015 14:10
Unity Flag With Bit Operation
/*
Simple But Powerful Bit Operation with flags.
Unity C# Bit Operation & Flags Attribute Usage
Jinbom Heo / [email protected]
*/
using UnityEngine;
using System.Collections;
@inbgche
inbgche / designer.html
Created August 16, 2014 03:11
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<polymer-element name="my-element">
<template>
<style>