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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
body { | |
display: flex; | |
justify-content: center; | |
align-items: center; |
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
# Run this script in Atom with the FoxDot Extension. | |
# Make sure "filepath" points to your TCPDump data. | |
# Set resample to True if you want to continuously resample the wifi packet data, | |
# if so, you will need to continuously run the TCPDump script which contains the following line: | |
# sudo tcpdump -y 'IEEE802_11_RADIO' -i en0 -c 3000 -I -ttttt > "filepath" | |
# set up this script to be run without sudo using visudo. | |
# at the end of this file, you will have all signals stored in the dictionary signalDictAligned, |
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
float hash (float2 n) | |
{ | |
return frac(sin(dot(n, float2(123.456789, 987.654321))) * 54321.9876 ); | |
} | |
float noise(float2 p) | |
{ | |
float2 i = floor(p); | |
float2 u = smoothstep(0.0, 1.0, frac(p)); | |
float a = hash(i + float2(0,0)); |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PostEffect : MonoBehaviour | |
{ | |
Camera AttachedCamera; | |
public Shader PostOutline; | |
public Material PostMat; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PostEffect : MonoBehaviour | |
{ | |
Camera AttachedCamera; | |
public Shader PostOutline; | |
public Material PostMat; |
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/OutlinePostEffect" | |
{ | |
Properties | |
{ | |
_MainTex("Main Texture",2D)="black"{} | |
_Delta ("Delta", Range(0, 1)) = 0.002 | |
} | |
SubShader | |
{ | |
ZTest Always |
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
const StarrySkyShader = { | |
vertexShader: ` | |
varying vec3 vPos; | |
void main() { | |
vPos = position; | |
vec4 mvPosition = modelViewMatrix * vec4( vPos, 1.0 ); | |
gl_Position = projectionMatrix * mvPosition; | |
} |