Skip to content

Instantly share code, notes, and snippets.

@ogoshen
ogoshen / Fisheye.shader
Last active March 24, 2023 00:40
RealSense T265 Fisheye Undistort Unity
Shader "Custom/Fisheye" {
Properties {
_MainTex ("MainTex", 2D) = "white" {}
// _UVMap ("UVMap", 2D) = "black" {}
_Gamma ("Gamma", float) = 0.45
}
SubShader {
Tags { "QUEUE"="Transparent" "IGNOREPROJECTOR"="true" "RenderType"="Transparent" "PreviewType"="Plane" }
Pass {
@ogoshen
ogoshen / Window.xaml.cs
Created December 31, 2018 12:52
cs-tutorial-2-capture with depth aligned to color
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;