Skip to content

Instantly share code, notes, and snippets.

@fengha
fengha / WaveExplo.shader
Created February 18, 2017 14: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 {
@fengha
fengha / PreviewTestNew.cs
Created January 5, 2017 11:45 — forked from Paloghas/ PreviewTestNew.cs
Displaying Camera Preview on Android with Unity
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
using System;
using UnityEngine.Assertions;
public class PreviewTestNew : MonoBehaviour {
AndroidJavaClass androidNativeCam;
AndroidJavaObject androidNativeCamActivity;