Initialer Upload neues Unity-Projekt
This commit is contained in:
BIN
Assets/SteamVR/Resources/ReferencePose_BindPose.asset
(Stored with Git LFS)
Normal file
BIN
Assets/SteamVR/Resources/ReferencePose_BindPose.asset
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9303872ccc6946c4185bc4b432372ba0
|
||||
timeCreated: 1547853690
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/SteamVR/Resources/ReferencePose_Fist.asset
(Stored with Git LFS)
Normal file
BIN
Assets/SteamVR/Resources/ReferencePose_Fist.asset
(Stored with Git LFS)
Normal file
Binary file not shown.
8
Assets/SteamVR/Resources/ReferencePose_Fist.asset.meta
Normal file
8
Assets/SteamVR/Resources/ReferencePose_Fist.asset.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5923b268404ed1c46a82b541e44c52af
|
||||
timeCreated: 1547853659
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/SteamVR/Resources/ReferencePose_OpenHand.asset
(Stored with Git LFS)
Normal file
BIN
Assets/SteamVR/Resources/ReferencePose_OpenHand.asset
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d93b955753287b048b63d232fa679470
|
||||
timeCreated: 1547853572
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
52
Assets/SteamVR/Resources/SteamVR_AlphaOut.shader
Normal file
52
Assets/SteamVR/Resources/SteamVR_AlphaOut.shader
Normal file
@ -0,0 +1,52 @@
|
||||
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
|
||||
// UNITY_SHADER_NO_UPGRADE
|
||||
Shader "Custom/SteamVR_AlphaOut" {
|
||||
Properties { _MainTex ("Base (RGB)", 2D) = "white" {} }
|
||||
|
||||
CGINCLUDE
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
sampler2D _MainTex;
|
||||
|
||||
struct v2f {
|
||||
float4 pos : SV_POSITION;
|
||||
float2 tex : TEXCOORD0;
|
||||
};
|
||||
|
||||
v2f vert(appdata_base v) {
|
||||
v2f o;
|
||||
#if UNITY_VERSION >= 540
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
#else
|
||||
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
|
||||
#endif
|
||||
o.tex = v.texcoord;
|
||||
return o;
|
||||
}
|
||||
|
||||
float luminance(float3 color)
|
||||
{
|
||||
return 0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b;
|
||||
}
|
||||
|
||||
float4 frag(v2f i) : COLOR {
|
||||
float4 color = tex2D(_MainTex, i.tex);
|
||||
float a = saturate(color.a + luminance(color.rgb));
|
||||
return float4(a, a, a, a);
|
||||
}
|
||||
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Pass {
|
||||
ZTest Always Cull Off ZWrite Off
|
||||
Fog { Mode Off }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/SteamVR/Resources/SteamVR_AlphaOut.shader.meta
Normal file
9
Assets/SteamVR/Resources/SteamVR_AlphaOut.shader.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da25bb0dccfd3894181fc5e84714cd17
|
||||
timeCreated: 1456189850
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
52
Assets/SteamVR/Resources/SteamVR_ClearAll.shader
Normal file
52
Assets/SteamVR/Resources/SteamVR_ClearAll.shader
Normal file
@ -0,0 +1,52 @@
|
||||
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
|
||||
// UNITY_SHADER_NO_UPGRADE
|
||||
Shader "Custom/SteamVR_ClearAll" {
|
||||
Properties
|
||||
{
|
||||
_Color ("Color", Color) = (0, 0, 0, 0)
|
||||
_MainTex ("Base (RGB)", 2D) = "white" {}
|
||||
}
|
||||
|
||||
CGINCLUDE
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
float4 _Color;
|
||||
sampler2D _MainTex;
|
||||
|
||||
struct v2f {
|
||||
float4 pos : SV_POSITION;
|
||||
float2 tex : TEXCOORD0;
|
||||
};
|
||||
|
||||
v2f vert(appdata_base v) {
|
||||
v2f o;
|
||||
#if UNITY_VERSION >= 540
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
#else
|
||||
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
|
||||
#endif
|
||||
o.tex = v.texcoord;
|
||||
return o;
|
||||
}
|
||||
|
||||
float4 frag(v2f i) : COLOR {
|
||||
return _Color;
|
||||
}
|
||||
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Tags{ "Queue" = "Background" }
|
||||
Pass {
|
||||
ZTest Always Cull Off ZWrite On
|
||||
Fog { Mode Off }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
9
Assets/SteamVR/Resources/SteamVR_ClearAll.shader.meta
Normal file
9
Assets/SteamVR/Resources/SteamVR_ClearAll.shader.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c1eded52540dd0a4988d5d4d76382da9
|
||||
timeCreated: 1457042024
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
52
Assets/SteamVR/Resources/SteamVR_ColorOut.shader
Normal file
52
Assets/SteamVR/Resources/SteamVR_ColorOut.shader
Normal file
@ -0,0 +1,52 @@
|
||||
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
|
||||
// UNITY_SHADER_NO_UPGRADE
|
||||
Shader "Custom/SteamVR_ColorOut" {
|
||||
Properties { _MainTex ("Base (RGB)", 2D) = "white" {} }
|
||||
|
||||
CGINCLUDE
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
sampler2D _MainTex;
|
||||
|
||||
struct v2f {
|
||||
float4 pos : SV_POSITION;
|
||||
float2 tex : TEXCOORD0;
|
||||
};
|
||||
|
||||
v2f vert(appdata_base v) {
|
||||
v2f o;
|
||||
#if UNITY_VERSION >= 540
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
#else
|
||||
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
|
||||
#endif
|
||||
o.tex = v.texcoord;
|
||||
return o;
|
||||
}
|
||||
|
||||
float luminance(float3 color)
|
||||
{
|
||||
return 0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b;
|
||||
}
|
||||
|
||||
float4 frag(v2f i) : COLOR {
|
||||
float4 color = tex2D(_MainTex, i.tex);
|
||||
return float4(color.rgb, 1);
|
||||
}
|
||||
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Pass {
|
||||
ZTest Always Cull Off ZWrite Off
|
||||
Fog { Mode Off }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
9
Assets/SteamVR/Resources/SteamVR_ColorOut.shader.meta
Normal file
9
Assets/SteamVR/Resources/SteamVR_ColorOut.shader.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 04d03a6e2ff64bf47911d08912140c31
|
||||
timeCreated: 1456866489
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/SteamVR/Resources/SteamVR_ExternalCamera.prefab
(Stored with Git LFS)
Normal file
BIN
Assets/SteamVR/Resources/SteamVR_ExternalCamera.prefab
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b259143c09ffc447ad059e5b8d8cf89
|
||||
timeCreated: 1456288801
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
76
Assets/SteamVR/Resources/SteamVR_Fade.shader
Normal file
76
Assets/SteamVR/Resources/SteamVR_Fade.shader
Normal file
@ -0,0 +1,76 @@
|
||||
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
|
||||
// UNITY_SHADER_NO_UPGRADE
|
||||
Shader "Custom/SteamVR_Fade"
|
||||
{
|
||||
SubShader
|
||||
{
|
||||
Pass
|
||||
{
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
ZTest Always
|
||||
Cull Off
|
||||
ZWrite Off
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex MainVS
|
||||
#pragma fragment MainPS
|
||||
|
||||
// Includes -------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
#if UNITY_VERSION >= 201810
|
||||
// Structs --------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
struct VertexInput
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
|
||||
UNITY_VERTEX_INPUT_INSTANCE_ID
|
||||
};
|
||||
|
||||
struct VertexOutput
|
||||
{
|
||||
float4 vertex : SV_POSITION;
|
||||
|
||||
UNITY_VERTEX_OUTPUT_STEREO
|
||||
};
|
||||
|
||||
// Globals --------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
UNITY_INSTANCING_BUFFER_START( Props )
|
||||
UNITY_DEFINE_INSTANCED_PROP( float4, fadeColor )
|
||||
UNITY_INSTANCING_BUFFER_END( Props )
|
||||
|
||||
VertexOutput MainVS( VertexInput i )
|
||||
{
|
||||
VertexOutput o;
|
||||
UNITY_SETUP_INSTANCE_ID( i );
|
||||
UNITY_INITIALIZE_OUTPUT( VertexOutput, o );
|
||||
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO( o );
|
||||
|
||||
o.vertex = i.vertex;
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
float4 MainPS( VertexOutput i ) : SV_Target
|
||||
{
|
||||
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO( i );
|
||||
|
||||
return UNITY_ACCESS_INSTANCED_PROP( Props, fadeColor.rgba );
|
||||
}
|
||||
#else
|
||||
float4 fadeColor;
|
||||
|
||||
float4 MainVS( float4 vertex : POSITION ) : SV_POSITION
|
||||
{
|
||||
return vertex.xyzw;
|
||||
}
|
||||
|
||||
float4 MainPS() : SV_Target
|
||||
{
|
||||
return fadeColor.rgba;
|
||||
}
|
||||
#endif
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/SteamVR/Resources/SteamVR_Fade.shader.meta
Normal file
9
Assets/SteamVR/Resources/SteamVR_Fade.shader.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f884441bea153347be721454dc13716
|
||||
timeCreated: 1433284862
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
136
Assets/SteamVR/Resources/SteamVR_HoverHighlight.mat
Normal file
136
Assets/SteamVR/Resources/SteamVR_HoverHighlight.mat
Normal file
@ -0,0 +1,136 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: SteamVR_HoverHighlight
|
||||
m_Shader: {fileID: 4800000, guid: 0c1cf10ea69e60e4f9eb8955749f88ec, type: 3}
|
||||
m_ShaderKeywords: _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
- first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Cutoff
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _DstBlend
|
||||
second: 0
|
||||
- first:
|
||||
name: _GlossMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Glossiness
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _GlossyReflections
|
||||
second: 1
|
||||
- first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
- first:
|
||||
name: _Mode
|
||||
second: 0
|
||||
- first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
- first:
|
||||
name: _Parallax
|
||||
second: 0.02
|
||||
- first:
|
||||
name: _SmoothnessTextureChannel
|
||||
second: 0
|
||||
- first:
|
||||
name: _SpecularHighlights
|
||||
second: 1
|
||||
- first:
|
||||
name: _SrcBlend
|
||||
second: 1
|
||||
- first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
- first:
|
||||
name: _ZWrite
|
||||
second: 1
|
||||
- first:
|
||||
name: g_flCornerAdjust
|
||||
second: 0.5
|
||||
- first:
|
||||
name: g_flOutlineWidth
|
||||
second: 0.005
|
||||
m_Colors:
|
||||
- first:
|
||||
name: _Color
|
||||
second: {r: 1, g: 1, b: 1, a: 1}
|
||||
- first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
- first:
|
||||
name: g_vOutlineColor
|
||||
second: {r: 0.94509804, g: 0.92156863, b: 0, a: 1}
|
||||
8
Assets/SteamVR/Resources/SteamVR_HoverHighlight.mat.meta
Normal file
8
Assets/SteamVR/Resources/SteamVR_HoverHighlight.mat.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3f7b904f6bd0b77429148042b0254530
|
||||
timeCreated: 1533928125
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
141
Assets/SteamVR/Resources/SteamVR_HoverHighlight_URP.mat
Normal file
141
Assets/SteamVR/Resources/SteamVR_HoverHighlight_URP.mat
Normal file
@ -0,0 +1,141 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-8718944119123872729
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 1
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: SteamVR_HoverHighlight_URP
|
||||
m_Shader: {fileID: 4800000, guid: b7839dad95683814aa64166edc107ae2, type: 3}
|
||||
m_ShaderKeywords: _COLOROVERLAY_ON _RECEIVE_SHADOWS_OFF
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: 2051
|
||||
stringTagMap:
|
||||
RenderType: Opaque
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 2800000, guid: ad562515403c3204cbdc9f1d5f899bfa, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 2800000, guid: ad562515403c3204cbdc9f1d5f899bfa, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- Vector1_48F29B53: 0
|
||||
- Vector1_4E87E868: 10
|
||||
- Vector1_BC878080: 4
|
||||
- Vector1_E4DC2276: 1
|
||||
- _Alpha: 1
|
||||
- _AlphaClip: 0
|
||||
- _ApplyFog: 1
|
||||
- _Blend: 2
|
||||
- _BlendOp: 0
|
||||
- _Border: 10
|
||||
- _BumpScale: 1
|
||||
- _CameraFadingEnabled: 0
|
||||
- _CameraFarFadeDistance: 2
|
||||
- _CameraNearFadeDistance: 1
|
||||
- _ColorMode: 3
|
||||
- _CompensateScale: 1
|
||||
- _Coverage: 0
|
||||
- _Cull: 2
|
||||
- _Cutoff: 0.446
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DistortionBlend: 1
|
||||
- _DistortionEnabled: 0
|
||||
- _DistortionStrength: 1
|
||||
- _DistortionStrengthScaled: 0.1
|
||||
- _DstBlend: 0
|
||||
- _FlipbookBlending: 0
|
||||
- _FlipbookMode: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _OutlineInScreenSpace: 0
|
||||
- _OutlineThickness: 1.1
|
||||
- _Parallax: 0.02
|
||||
- _QueueOffset: -1
|
||||
- _ReadMask: 1
|
||||
- _ReceiveShadows: 0
|
||||
- _Smoothness: 0.5
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SoftParticlesEnabled: 0
|
||||
- _SoftParticlesFarFadeDistance: 1
|
||||
- _SoftParticlesNearFadeDistance: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _StencilCompare: 6
|
||||
- _StencilRef: 1
|
||||
- _Surface: 0
|
||||
- _UVSec: 0
|
||||
- _ZTest: 8
|
||||
- _ZWrite: 1
|
||||
- g_flCornerAdjust: 0.5
|
||||
- g_flOutlineWidth: 0.005
|
||||
m_Colors:
|
||||
- Color_B9F825DD: {r: 1, g: 0.93979645, b: 0, a: 0}
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0.65882355, b: 0.7490196, a: 1}
|
||||
- _MainColor: {r: 1, g: 1, b: 0, a: 0}
|
||||
- _OutlineColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||
- g_vOutlineColor: {r: 0.94509804, g: 0.92156863, b: 0, a: 1}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 205922f2f6cef6f4e886cbeb581b0d81
|
||||
timeCreated: 1533928125
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
79
Assets/SteamVR/Resources/SteamVR_SphericalProjection.shader
Normal file
79
Assets/SteamVR/Resources/SteamVR_SphericalProjection.shader
Normal file
@ -0,0 +1,79 @@
|
||||
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
|
||||
// UNITY_SHADER_NO_UPGRADE
|
||||
Shader "Custom/SteamVR_SphericalProjection" {
|
||||
Properties {
|
||||
_MainTex ("Base (RGB)", 2D) = "white" {}
|
||||
_N ("N (normal of plane)", Vector) = (0,0,0,0)
|
||||
_Phi0 ("Phi0", Float) = 0
|
||||
_Phi1 ("Phi1", Float) = 1
|
||||
_Theta0 ("Theta0", Float) = 0
|
||||
_Theta1 ("Theta1", Float) = 1
|
||||
_UAxis ("uAxis", Vector) = (0,0,0,0)
|
||||
_VAxis ("vAxis", Vector) = (0,0,0,0)
|
||||
_UOrigin ("uOrigin", Vector) = (0,0,0,0)
|
||||
_VOrigin ("vOrigin", Vector) = (0,0,0,0)
|
||||
_UScale ("uScale", Float) = 1
|
||||
_VScale ("vScale", Float) = 1
|
||||
}
|
||||
|
||||
CGINCLUDE
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
sampler2D _MainTex;
|
||||
float4 _N;
|
||||
float _Phi0, _Phi1, _Theta0, _Theta1;
|
||||
float4 _UAxis, _VAxis;
|
||||
float4 _UOrigin, _VOrigin;
|
||||
float _UScale, _VScale;
|
||||
|
||||
struct v2f {
|
||||
float4 pos : SV_POSITION;
|
||||
float2 tex : TEXCOORD0;
|
||||
};
|
||||
|
||||
v2f vert(appdata_base v) {
|
||||
v2f o;
|
||||
#if UNITY_VERSION >= 540
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
#else
|
||||
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
|
||||
#endif
|
||||
o.tex = float2(
|
||||
lerp(_Phi0, _Phi1, v.texcoord.x),
|
||||
lerp(_Theta0, _Theta1, v.texcoord.y));
|
||||
return o;
|
||||
}
|
||||
|
||||
float3 cartesian(float phi, float theta)
|
||||
{
|
||||
float sinTheta = sin(theta);
|
||||
return float3(
|
||||
sinTheta * sin(phi),
|
||||
cos(theta),
|
||||
sinTheta * cos(phi));
|
||||
}
|
||||
|
||||
float4 frag(v2f i) : COLOR {
|
||||
float3 V = cartesian(i.tex.x, i.tex.y);
|
||||
float3 P = V / dot(V, _N.xyz); // intersection point on plane
|
||||
float2 uv = float2(
|
||||
dot(P - _UOrigin.xyz, _UAxis.xyz) * _UScale,
|
||||
dot(P - _VOrigin.xyz, _VAxis.xyz) * _VScale);
|
||||
return tex2D(_MainTex, uv);
|
||||
}
|
||||
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Pass {
|
||||
ZTest Always Cull Off ZWrite Off
|
||||
Fog { Mode Off }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43b10deca54ca524c8cd9a0fcb622325
|
||||
timeCreated: 1462380123
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user