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
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' | |
Shader "Custom/fakeRefract" { | |
Properties { | |
} |
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
Shader "Custom/PointBufferRenderer" { | |
Properties { | |
} | |
SubShader{ | |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.XR.iOS; | |
public class ARKitComputeCloud : MonoBehaviour { | |
public Material material; | |
private float[] values; |
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
#pragma kernel CSMain | |
#define threadX 6 | |
#define threadY 6 | |
#define threadZ 6 | |
#define strideX 3 | |
#define strideY 6 | |
#define strideZ 6 |
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
// Trying to understand the code from | |
// http://lgdv.cs.fau.de/get/2234 | |
const float t_min = .00001; | |
const float t_max = 35.; | |
const int MAX_ITERATIONS = 200; | |
const float infinite = 100000.; | |
const float PI = 3.14159; | |
const float MAX_TRACE_DISTANCE = 40.0; // max trace distance |
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.Collections; | |
using System.Collections.Generic; | |
using System; | |
using System.Reflection; | |
using UnityEngine; | |
public static class AddComp { | |
public static T GetCopyOf<T>(this Component comp, T other) where T : Component | |
{ |
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
(function() { | |
var Video = function(audio_url) { | |
this._callbacks = []; | |
this.domElement = document.createElement('video'); | |
this.domElement.crossOrigin = 'anonymous'; | |
this.domElement.setAttribute('webkit-playsinline', 'webkit-playsinline'); | |
this.domElement.setAttribute('playsinline', 'playsinline'); |
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
var source = document.createElement("source"); | |
source.src = "fluid.mp4" | |
source.type = "video/mp4" | |
var video = new Video("dgFW1.mp3"); | |
video.appendChild( source ); | |
//video.play(); |
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
void createVertBuffer(){ | |
_vertBuffer = new ComputeBuffer( triangles.Length , AnchorStructSize * sizeof(float) ); | |
//print( AnchorStructSize ); | |
//print( AnchorStructSize * vc ); |
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 UnityEngine; | |
using System.Collections; | |
using Valve.VR; | |
public class GetCollisionBounds : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
var error = EVRInitError.None; |