This file contains 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
/** | |
* A minimal example of a WebRTC data channel on a single host. | |
* After running, use dcRemote.send('message') or dcLocal.send('message') to send messages between local and remote peers | |
**/ | |
let peerLocal = new RTCPeerConnection(); | |
let peerRemote = new RTCPeerConnection(); | |
peerLocal.onconnectionstatechange = function(e) { | |
console.log('peerLocal', 'onconnectionstatechange', e); |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
namespace LiquidPools { | |
/// use | |
/// public class NewClass : MonoSingleton<NewClass> { } |
This file contains 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
//based on https://github.com/Brackeys/Portal-In-Unity/blob/master/Portal/Assets/ScreenCutoutShader.shader | |
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' | |
Shader "Unlit/BasicScreenCutoutShader" | |
{ | |
Properties | |
{ | |
_MainTex("Texture", 2D) = "white" {} | |
_EyeDistance("Eye Distance", Float) = 0 | |
} |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEngine; | |
using Voxeland5; | |
/// <summary> |