Skip to content

Commit

Permalink
Rotate OriginTransform if trigger held down. Flafla2#43
Browse files Browse the repository at this point in the history
  • Loading branch information
createthis committed Apr 25, 2017
1 parent 7013048 commit e7e2b64
Show file tree
Hide file tree
Showing 23 changed files with 564 additions and 181 deletions.
9 changes: 0 additions & 9 deletions Assets/SteamVR/InteractionSystem/Core/Icons.meta

This file was deleted.

6 changes: 4 additions & 2 deletions Assets/SteamVR/InteractionSystem/Core/Shaders/SeeThru.shader
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//
// Purpose: Used for objects that can be seen through objects in fron of them
//
Expand Down Expand Up @@ -66,7 +68,7 @@ Shader "Valve/VR/SeeThru"
#if UNITY_VERSION >= 540
o.vertex = UnityObjectToClipPos(i.vertex);
#else
o.vertex = mul(UNITY_MATRIX_MVP, i.vertex);
o.vertex = UnityObjectToClipPos(i.vertex);
#endif
o.uv = TRANSFORM_TEX( i.uv, _MainTex );

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//
// Purpose: Used to show the outline of the object
Expand Down Expand Up @@ -50,7 +52,7 @@ Shader "Valve/VR/Silhouette"
#if UNITY_VERSION >= 540
o.vPositionPs = UnityObjectToClipPos( i.vPositionOs.xyzw );
#else
o.vPositionPs = mul( UNITY_MATRIX_MVP, i.vPositionOs.xyzw );
o.vPositionPs = UnityObjectToClipPos( i.vPositionOs.xyzw );
#endif
return o;
}
Expand All @@ -69,7 +71,7 @@ Shader "Valve/VR/Silhouette"
#if UNITY_VERSION >= 540
extruded.vPositionPs = UnityObjectToClipPos( vertex.vPositionOs.xyzw );
#else
extruded.vPositionPs = mul( UNITY_MATRIX_MVP, vertex.vPositionOs.xyzw );
extruded.vPositionPs = UnityObjectToClipPos( vertex.vPositionOs.xyzw );
#endif
extruded.vPositionPs.xy += vOffsetPs.xy * extruded.vPositionPs.w * g_flOutlineWidth;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//
// Purpose:
//
Expand Down Expand Up @@ -60,7 +62,7 @@ Shader "Valve/VR/ControllerButtonHints"
#if UNITY_VERSION >= 540
o.vertex = UnityObjectToClipPos(i.vertex);
#else
o.vertex = mul(UNITY_MATRIX_MVP, i.vertex);
o.vertex = UnityObjectToClipPos(i.vertex);
#endif
return o;
}
Expand Down Expand Up @@ -114,7 +116,7 @@ Shader "Valve/VR/ControllerButtonHints"
#if UNITY_VERSION >= 540
o.vertex = UnityObjectToClipPos(i.vertex);
#else
o.vertex = mul(UNITY_MATRIX_MVP, i.vertex);
o.vertex = UnityObjectToClipPos(i.vertex);
#endif
o.uv = TRANSFORM_TEX( i.uv, _MainTex );

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//
// Purpose: Used for the teleport markers
//
Expand Down Expand Up @@ -54,7 +56,7 @@ Shader "Valve/VR/Highlight"
#if UNITY_VERSION >= 540
o.vertex = UnityObjectToClipPos(i.vertex);
#else
o.vertex = mul(UNITY_MATRIX_MVP, i.vertex);
o.vertex = UnityObjectToClipPos(i.vertex);
#endif
o.uv = TRANSFORM_TEX( i.uv, _MainTex );
o.color = i.color;
Expand Down
6 changes: 4 additions & 2 deletions Assets/SteamVR/Resources/SteamVR_AlphaOut.shader
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Shader "Custom/SteamVR_AlphaOut" {
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

Shader "Custom/SteamVR_AlphaOut" {
Properties { _MainTex ("Base (RGB)", 2D) = "white" {} }

CGINCLUDE
Expand All @@ -17,7 +19,7 @@
#if UNITY_VERSION >= 540
o.pos = UnityObjectToClipPos(v.vertex);
#else
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
o.pos = UnityObjectToClipPos(v.vertex);
#endif
o.tex = v.texcoord;
return o;
Expand Down
6 changes: 4 additions & 2 deletions Assets/SteamVR/Resources/SteamVR_ClearAll.shader
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Shader "Custom/SteamVR_ClearAll" {
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

Shader "Custom/SteamVR_ClearAll" {
Properties { _MainTex ("Base (RGB)", 2D) = "white" {} }

CGINCLUDE
Expand All @@ -17,7 +19,7 @@
#if UNITY_VERSION >= 540
o.pos = UnityObjectToClipPos(v.vertex);
#else
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
o.pos = UnityObjectToClipPos(v.vertex);
#endif
o.tex = v.texcoord;
return o;
Expand Down
6 changes: 4 additions & 2 deletions Assets/SteamVR/Resources/SteamVR_ColorOut.shader
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Shader "Custom/SteamVR_ColorOut" {
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

Shader "Custom/SteamVR_ColorOut" {
Properties { _MainTex ("Base (RGB)", 2D) = "white" {} }

CGINCLUDE
Expand All @@ -17,7 +19,7 @@
#if UNITY_VERSION >= 540
o.pos = UnityObjectToClipPos(v.vertex);
#else
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
o.pos = UnityObjectToClipPos(v.vertex);
#endif
o.tex = v.texcoord;
return o;
Expand Down
6 changes: 4 additions & 2 deletions Assets/SteamVR/Resources/SteamVR_SphericalProjection.shader
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Shader "Custom/SteamVR_SphericalProjection" {
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

Shader "Custom/SteamVR_SphericalProjection" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_N ("N (normal of plane)", Vector) = (0,0,0,0)
Expand Down Expand Up @@ -35,7 +37,7 @@
#if UNITY_VERSION >= 540
o.pos = UnityObjectToClipPos(v.vertex);
#else
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
o.pos = UnityObjectToClipPos(v.vertex);
#endif
o.tex = float2(
lerp(_Phi0, _Phi1, v.texcoord.x),
Expand Down
108 changes: 29 additions & 79 deletions Assets/Vive-Teleporter/Art/Materials/Selectable Border.mat
Original file line number Diff line number Diff line change
Expand Up @@ -10,115 +10,65 @@ Material:
m_Shader: {fileID: 4800000, guid: 18f009343c2ca574a83a6413c38bae08, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 5
m_EnableInstancingVariants: 0
m_CustomRenderQueue: 2900
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 2
serializedVersion: 3
m_TexEnvs:
- first:
name: _BumpMap
second:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- first:
name: _DetailAlbedoMap
second:
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- first:
name: _DetailMask
second:
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- first:
name: _DetailNormalMap
second:
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- first:
name: _EmissionMap
second:
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- first:
name: _MainTex
second:
- _MainTex:
m_Texture: {fileID: 2800000, guid: 8d229bee78a4c3e4a8ef189d4ce1ded1, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- first:
name: _MetallicGlossMap
second:
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- first:
name: _OcclusionMap
second:
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- first:
name: _ParallaxMap
second:
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- first:
name: _Alpha
second: 1
- first:
name: _BumpScale
second: 1
- first:
name: _Cutoff
second: 0.5
- first:
name: _DetailNormalMapScale
second: 1
- first:
name: _DstBlend
second: 0
- first:
name: _Glossiness
second: 0.5
- first:
name: _Metallic
second: 0
- first:
name: _Mode
second: 0
- first:
name: _OcclusionStrength
second: 1
- first:
name: _Parallax
second: 0.02
- first:
name: _SrcBlend
second: 1
- first:
name: _TexScale
second: 1
- first:
name: _UVSec
second: 0
- first:
name: _ZWrite
second: 1
- _Alpha: 1
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _Glossiness: 0.5
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SrcBlend: 1
- _TexScale: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- first:
name: _BackColor
second: {r: 0.7681661, g: 0.90513265, b: 0.9411765, a: 0.172}
- first:
name: _Color
second: {r: 0.5363322, g: 0.8340889, b: 0.9117647, a: 0.791}
- first:
name: _EmissionColor
second: {r: 0, g: 0, b: 0, a: 1}
- _BackColor: {r: 0.7681661, g: 0.90513265, b: 0.9411765, a: 0.172}
- _Color: {r: 0.5363322, g: 0.8340889, b: 0.9117647, a: 0.791}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
Loading

0 comments on commit e7e2b64

Please sign in to comment.