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 "Theta/Equirectangular1" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_AlphaBlendTex ("Alpha Blend (RGBA)", 2D) = "white" {} | |
_OffsetU ("Offset U", Range(-0.5, 0.5)) = 0 | |
_OffsetV ("Offset V", Range(-0.5, 0.5)) = 0 | |
_ScaleU ("Scale U", Range(0.8, 1.2)) = 1 | |
_ScaleV ("Scale V", Range(0.8, 1.2)) = 1 | |
_ScaleCenterU ("Scale Center U", Range(0.0, 1.0)) = 0 | |
_ScaleCenterV ("Scale Center V", Range(0.0, 1.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
Shader "Theta/Sphere1" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_AlphaBlendTex ("Alpha Blend (RGBA)", 2D) = "white" {} | |
_OffsetU ("Offset U", Range(-0.5, 0.5)) = 0 | |
_OffsetV ("Offset V", Range(-0.5, 0.5)) = 0 | |
_ScaleU ("Scale U", Range(0.8, 1.2)) = 1 | |
_ScaleV ("Scale V", Range(0.8, 1.2)) = 1 | |
_ScaleCenterU ("Scale Center U", Range(0.0, 1.0)) = 0 | |
_ScaleCenterV ("Scale Center V", Range(0.0, 1.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 UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
public class ArPlane : MonoBehaviour | |
{ | |
[DllImport("opencv_sample")] | |
private static extern IntPtr aruco_initialize(int width, int height, float markerSize, string cameraParamsFilePath); |
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/UvChange" { | |
Properties { | |
_MainTex ("", 2D) = "white" {} | |
} | |
SubShader { | |
ZTest Always Cull Off ZWrite Off Fog { Mode Off } | |
Pass { | |
// Draw Black | |
} |
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 UnityEngine; | |
public class LeapCollider : MonoBehaviour | |
{ | |
void Update() | |
{ | |
var controller = FindObjectOfType<HandController>(); | |
foreach (var hand in controller.hand_physics_) { | |
var fingers = hand.Value.fingers; | |
var thumb = fingers[0].transform; |
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
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/ocl.cpp.o | |
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372: | |
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:78:3: warning: | |
'weak_import' attribute only applies to variables and functions [-Wignored-attributes] | |
) CL_EXT_SUFFIX__VERSION_1_2; | |
^ | |
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2' | |
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER | |
^ | |
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK' |
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
[ { youtube: 'http://www.youtube.com/embed/bG3RVtWvIWQ?enablejsapi=1&version=3&hl=en_US&rel=0&wmode=transparent' }, | |
{ youtube: 'http://www.youtube.com/embed/ISAO7QDY3Wo?enablejsapi=1&version=3&hl=en_US&rel=0&wmode=transparent' }, | |
{ youtube: 'http://www.youtube.com/embed/mndofQbvWkw?enablejsapi=1&version=3&hl=en_US&rel=0&wmode=transparent' }, | |
{ youtube: 'http://www.youtube.com/embed/DHv9SFeTIlA?enablejsapi=1&version=3&hl=en_US&rel=0&wmode=transparent' }, | |
{ youtube: 'http://www.youtube.com/embed/ywiGH46arUY?enablejsapi=1&version=3&hl=en_US&rel=0&wmode=transparent' }, | |
{ youtube: 'http://www.youtube.com/embed/NWmFRkccGS8?enablejsapi=1&version=3&hl=en_US&rel=0&wmode=transparent' }, | |
{ youtube: 'http://www.youtube.com/embed/7ZGqfV8xHck?enablejsapi=1&version=3&hl=en_US&rel=0&wmode=transparent' }, | |
{ youtube: 'http://www.youtube.com/embed/2sAU0b3Rajk?enablejsapi=1&version=3&hl=en_US&rel=0&wmode=transparent' }, | |
{ youtube: 'http://www.youtube.com/embed/XR4dYb4dV1M?enablejsapi=1&version=3&hl=en_US&rel=0&wm |
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 "Grid/Rect" { | |
Properties { | |
_Color("Color", Color) = (0.5, 0.5, 0.5, 1.0) | |
_Width("Width", Range(0.0, 1.0)) = 0.5 | |
_GridNumX("GridNumX", Int) = 10 | |
_GridNumY("GridNumY", Int) = 10 | |
} | |
SubShader { | |
Pass { | |
CGPROGRAM |
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 UnityEngine; | |
using UWO; | |
public class TransformSync : SynchronizedComponent | |
{ | |
private bool isFirst_ = true; | |
private Vector3 syncStartPos_, syncEndPos_; | |
private Quaternion syncStartRot_, syncEndRot_; | |
private Vector3 syncStartScale_, syncEndScale_; | |
private float syncStartTime_, syncEndTime_; |
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
$ npm install twitter ws | |
$ node twitter-websocket |