clean project
This commit is contained in:
9
Assets/Oculus/Avatar/Content.meta
Normal file
9
Assets/Oculus/Avatar/Content.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b7b5af4818686f84f844c1ae9df0f700
|
||||
folderAsset: yes
|
||||
timeCreated: 1466716731
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Content/Prefabs.meta
Normal file
9
Assets/Oculus/Avatar/Content/Prefabs.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e2c4ef7503877e647b22a4089384f04f
|
||||
folderAsset: yes
|
||||
timeCreated: 1466717433
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
127
Assets/Oculus/Avatar/Content/Prefabs/LocalAvatar.prefab
Normal file
127
Assets/Oculus/Avatar/Content/Prefabs/LocalAvatar.prefab
Normal file
@@ -0,0 +1,127 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &158226
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 463470}
|
||||
- component: {fileID: 11437430}
|
||||
- component: {fileID: 11441414}
|
||||
m_Layer: 0
|
||||
m_Name: LocalAvatar
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &463470
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 158226}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &11437430
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 158226}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 00f3402a2ea5bff4880c0313515240cd, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
oculusUserID: 0
|
||||
Driver: {fileID: 11441414}
|
||||
EnableBody: 1
|
||||
EnableHands: 1
|
||||
EnableBase: 0
|
||||
EnableExpressive: 1
|
||||
RecordPackets: 1
|
||||
UseSDKPackets: 1
|
||||
PacketSettings:
|
||||
UpdateRate: 0.033333335
|
||||
StartWithControllers: 0
|
||||
FirstPersonLayer:
|
||||
layerIndex: 0
|
||||
ThirdPersonLayer:
|
||||
layerIndex: 0
|
||||
ShowFirstPerson: 1
|
||||
ShowThirdPerson: 0
|
||||
LevelOfDetail: 5
|
||||
CombineMeshes: 1
|
||||
UseTransparentRenderQueue: 1
|
||||
Monochrome_SurfaceShader: {fileID: 4800000, guid: 73f67c4e7bf718b4385aa6b1f8a06591,
|
||||
type: 3}
|
||||
Monochrome_SurfaceShader_SelfOccluding: {fileID: 4800000, guid: 69f342b79d37541489919a19cfd8a924,
|
||||
type: 3}
|
||||
Monochrome_SurfaceShader_PBS: {fileID: 4800000, guid: 5e52aa58207bbf24d8eb8ec969e9ae88,
|
||||
type: 3}
|
||||
Skinshaded_SurfaceShader_SingleComponent: {fileID: 4800000, guid: 36b8b481cf607814a8cec318f0148d63,
|
||||
type: 3}
|
||||
Skinshaded_VertFrag_SingleComponent: {fileID: 4800000, guid: c26fc51e445dcfd4db09305d861dc11c,
|
||||
type: 3}
|
||||
Skinshaded_VertFrag_CombinedMesh: {fileID: 4800000, guid: 37d2b8298f61cd2469465fc36108675d,
|
||||
type: 3}
|
||||
Skinshaded_Expressive_SurfaceShader_SingleComponent: {fileID: 4800000, guid: 93b478e926e46654889c1c20f87f253f,
|
||||
type: 3}
|
||||
Skinshaded_Expressive_VertFrag_SingleComponent: {fileID: 4800000, guid: 2fe0ac0c2373ab143a6f21314b785d7d,
|
||||
type: 3}
|
||||
Skinshaded_Expressive_VertFrag_CombinedMesh: {fileID: 4800000, guid: 0600fe59b0c043344affd1d1368b9ef2,
|
||||
type: 3}
|
||||
Loader_VertFrag_CombinedMesh: {fileID: 4800000, guid: 822f5e641dc5dd54ca9555b727b3277f,
|
||||
type: 3}
|
||||
EyeLens: {fileID: 4800000, guid: 8392f54e79937ed4bb1b692a143dc02b, type: 3}
|
||||
ControllerShader: {fileID: 4800000, guid: 28729c6ae5a33b04cb2f7956f3f3fc01, type: 3}
|
||||
CanOwnMicrophone: 1
|
||||
MouthAnchor: {fileID: 0}
|
||||
LeftHandCustomPose: {fileID: 0}
|
||||
RightHandCustomPose: {fileID: 0}
|
||||
VoiceAmplitude: 0
|
||||
EnableMouthVertexAnimation: 0
|
||||
--- !u!114 &11441414
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 158226}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ac27124318cf8e84aa7350c2ac1cdb80, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Mode: 0
|
||||
--- !u!114 &11477770
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 77e19ec58d4a9e844970103e5bd8946a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
RenderParts: []
|
||||
isLeftHand: 1
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 158226}
|
||||
m_IsPrefabParent: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 84c8b8609f9bb434eaf5248f17ff1293
|
||||
timeCreated: 1466806466
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
114
Assets/Oculus/Avatar/Content/Prefabs/RemoteAvatar.prefab
Normal file
114
Assets/Oculus/Avatar/Content/Prefabs/RemoteAvatar.prefab
Normal file
@@ -0,0 +1,114 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &143252
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 496618}
|
||||
- component: {fileID: 11464902}
|
||||
- component: {fileID: 11461908}
|
||||
m_Layer: 0
|
||||
m_Name: RemoteAvatar
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &496618
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143252}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &11461908
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143252}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c198a42a3843ca04fa633b60f428ff51, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Mode: 0
|
||||
--- !u!114 &11464902
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143252}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 00f3402a2ea5bff4880c0313515240cd, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
oculusUserID: 0
|
||||
Driver: {fileID: 11461908}
|
||||
EnableBody: 1
|
||||
EnableHands: 1
|
||||
EnableBase: 0
|
||||
EnableExpressive: 1
|
||||
RecordPackets: 0
|
||||
UseSDKPackets: 1
|
||||
PacketSettings:
|
||||
UpdateRate: 0.033333335
|
||||
StartWithControllers: 0
|
||||
FirstPersonLayer:
|
||||
layerIndex: 0
|
||||
ThirdPersonLayer:
|
||||
layerIndex: 0
|
||||
ShowFirstPerson: 0
|
||||
ShowThirdPerson: 1
|
||||
LevelOfDetail: 3
|
||||
CombineMeshes: 1
|
||||
UseTransparentRenderQueue: 1
|
||||
Monochrome_SurfaceShader: {fileID: 4800000, guid: 73f67c4e7bf718b4385aa6b1f8a06591,
|
||||
type: 3}
|
||||
Monochrome_SurfaceShader_SelfOccluding: {fileID: 4800000, guid: 69f342b79d37541489919a19cfd8a924,
|
||||
type: 3}
|
||||
Monochrome_SurfaceShader_PBS: {fileID: 4800000, guid: 5e52aa58207bbf24d8eb8ec969e9ae88,
|
||||
type: 3}
|
||||
Skinshaded_SurfaceShader_SingleComponent: {fileID: 4800000, guid: 36b8b481cf607814a8cec318f0148d63,
|
||||
type: 3}
|
||||
Skinshaded_VertFrag_SingleComponent: {fileID: 4800000, guid: c26fc51e445dcfd4db09305d861dc11c,
|
||||
type: 3}
|
||||
Skinshaded_VertFrag_CombinedMesh: {fileID: 4800000, guid: 37d2b8298f61cd2469465fc36108675d,
|
||||
type: 3}
|
||||
Skinshaded_Expressive_SurfaceShader_SingleComponent: {fileID: 4800000, guid: 93b478e926e46654889c1c20f87f253f,
|
||||
type: 3}
|
||||
Skinshaded_Expressive_VertFrag_SingleComponent: {fileID: 4800000, guid: 2fe0ac0c2373ab143a6f21314b785d7d,
|
||||
type: 3}
|
||||
Skinshaded_Expressive_VertFrag_CombinedMesh: {fileID: 4800000, guid: 0600fe59b0c043344affd1d1368b9ef2,
|
||||
type: 3}
|
||||
Loader_VertFrag_CombinedMesh: {fileID: 4800000, guid: 822f5e641dc5dd54ca9555b727b3277f,
|
||||
type: 3}
|
||||
EyeLens: {fileID: 4800000, guid: 8392f54e79937ed4bb1b692a143dc02b, type: 3}
|
||||
ControllerShader: {fileID: 4800000, guid: 28729c6ae5a33b04cb2f7956f3f3fc01, type: 3}
|
||||
CanOwnMicrophone: 1
|
||||
MouthAnchor: {fileID: 0}
|
||||
LeftHandCustomPose: {fileID: 0}
|
||||
RightHandCustomPose: {fileID: 0}
|
||||
VoiceAmplitude: 0
|
||||
EnableMouthVertexAnimation: 0
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 143252}
|
||||
m_IsPrefabParent: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90bf33f968e6bb44ea0208fc82c90a44
|
||||
timeCreated: 1468001728
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
7
Assets/Oculus/Avatar/Plugins.meta
Normal file
7
Assets/Oculus/Avatar/Plugins.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 562797c69d851ed4ba23272425436ab6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
7
Assets/Oculus/Avatar/Plugins/Android32.meta
Normal file
7
Assets/Oculus/Avatar/Plugins/Android32.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5efa82b7f37ef914c8e36b241d89eaf3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Avatar/Plugins/Android32/libovravatarloader.so
Normal file
BIN
Assets/Oculus/Avatar/Plugins/Android32/libovravatarloader.so
Normal file
Binary file not shown.
@@ -0,0 +1,25 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0dc1a28a4f6367642b859b703b901f30
|
||||
timeCreated: 1516392277
|
||||
licenseType: Store
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
Android:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
Any:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
Editor:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
7
Assets/Oculus/Avatar/Plugins/Android64.meta
Normal file
7
Assets/Oculus/Avatar/Plugins/Android64.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7adeca2b5ccf4302a746d824ae866761
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/Avatar/Plugins/Android64/libovravatarloader.so
Normal file
BIN
Assets/Oculus/Avatar/Plugins/Android64/libovravatarloader.so
Normal file
Binary file not shown.
@@ -0,0 +1,96 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6757695d745b8bc419fd41108ba2dec9
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARM64
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
7
Assets/Oculus/Avatar/Resources.meta
Normal file
7
Assets/Oculus/Avatar/Resources.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7be352d6ab8b4db40b701e100dcc1000
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Oculus/Avatar/Resources/FallbackTextures.meta
Normal file
8
Assets/Oculus/Avatar/Resources/FallbackTextures.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e15cc54b32316d3448de9c9ef2bd7cc1
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 7.0 KiB |
@@ -0,0 +1,121 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 502d438d2584976448c3cdb146ed836d
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 50
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Windows Store Apps
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1,121 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b3e87b1024f5fa8408d004b398e7b0c0
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 50
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Windows Store Apps
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
@@ -0,0 +1,121 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d8da3d06466cc04da8c020819170a59
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 50
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Windows Store Apps
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,121 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9fb4a3be60417d043865e457a9d51e63
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 50
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Windows Store Apps
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,121 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 22a046c12fc7f3c4d98a98add109fa96
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 50
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Windows Store Apps
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
@@ -0,0 +1,121 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 93a54b3b63bcc6d49b16f6bdb655b940
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 50
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Windows Store Apps
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Resources/Materials.meta
Normal file
9
Assets/Oculus/Avatar/Resources/Materials.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a082ff1bb115495438c0dbd2a47e2b0f
|
||||
folderAsset: yes
|
||||
timeCreated: 1525971172
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,318 @@
|
||||
#ifndef AVATAR_UTIL_CG_INCLUDED
|
||||
#define AVATAR_UTIL_CG_INCLUDED
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
#define SAMPLE_MODE_COLOR 0
|
||||
#define SAMPLE_MODE_TEXTURE 1
|
||||
#define SAMPLE_MODE_TEXTURE_SINGLE_CHANNEL 2
|
||||
#define SAMPLE_MODE_PARALLAX 3
|
||||
#define SAMPLE_MODE_RSRM 4
|
||||
|
||||
#define MASK_TYPE_NONE 0
|
||||
#define MASK_TYPE_POSITIONAL 1
|
||||
#define MASK_TYPE_REFLECTION 2
|
||||
#define MASK_TYPE_FRESNEL 3
|
||||
#define MASK_TYPE_PULSE 4
|
||||
|
||||
#define BLEND_MODE_ADD 0
|
||||
#define BLEND_MODE_MULTIPLY 1
|
||||
|
||||
#ifdef LAYERS_1
|
||||
#define LAYER_COUNT 1
|
||||
#elif LAYERS_2
|
||||
#define LAYER_COUNT 2
|
||||
#elif LAYERS_3
|
||||
#define LAYER_COUNT 3
|
||||
#elif LAYERS_4
|
||||
#define LAYER_COUNT 4
|
||||
#elif LAYERS_5
|
||||
#define LAYER_COUNT 5
|
||||
#elif LAYERS_6
|
||||
#define LAYER_COUNT 6
|
||||
#elif LAYERS_7
|
||||
#define LAYER_COUNT 7
|
||||
#elif LAYERS_8
|
||||
#define LAYER_COUNT 8
|
||||
#endif
|
||||
|
||||
#define DECLARE_LAYER_UNIFORMS(index) \
|
||||
int _LayerSampleMode##index; \
|
||||
int _LayerBlendMode##index; \
|
||||
int _LayerMaskType##index; \
|
||||
fixed4 _LayerColor##index; \
|
||||
sampler2D _LayerSurface##index; \
|
||||
float4 _LayerSurface##index##_ST; \
|
||||
float4 _LayerSampleParameters##index; \
|
||||
float4 _LayerMaskParameters##index; \
|
||||
float4 _LayerMaskAxis##index;
|
||||
|
||||
DECLARE_LAYER_UNIFORMS(0)
|
||||
DECLARE_LAYER_UNIFORMS(1)
|
||||
DECLARE_LAYER_UNIFORMS(2)
|
||||
DECLARE_LAYER_UNIFORMS(3)
|
||||
DECLARE_LAYER_UNIFORMS(4)
|
||||
DECLARE_LAYER_UNIFORMS(5)
|
||||
DECLARE_LAYER_UNIFORMS(6)
|
||||
DECLARE_LAYER_UNIFORMS(7)
|
||||
|
||||
struct VertexOutput
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
float3 worldPos : TEXCOORD1;
|
||||
float3 worldNormal : TEXCOORD2;
|
||||
float3 viewDir : TEXCOORD3;
|
||||
float4 vertColor : COLOR;
|
||||
|
||||
#if NORMAL_MAP_ON || PARALLAX_ON
|
||||
float3 worldTangent : TANGENT;
|
||||
float3 worldBitangent : TEXCOORD5;
|
||||
#endif
|
||||
};
|
||||
|
||||
float _Alpha;
|
||||
int _BaseMaskType;
|
||||
float4 _BaseMaskParameters;
|
||||
float4 _BaseMaskAxis;
|
||||
fixed4 _DarkMultiplier;
|
||||
fixed4 _BaseColor;
|
||||
sampler2D _AlphaMask;
|
||||
float4 _AlphaMask_ST;
|
||||
sampler2D _AlphaMask2;
|
||||
float4 _AlphaMask2_ST;
|
||||
sampler2D _NormalMap;
|
||||
float4 _NormalMap_ST;
|
||||
sampler2D _ParallaxMap;
|
||||
float4 _ParallaxMap_ST;
|
||||
sampler2D _RoughnessMap;
|
||||
float4 _RoughnessMap_ST;
|
||||
float4x4 _ProjectorWorldToLocal;
|
||||
|
||||
VertexOutput vert(appdata_full v)
|
||||
{
|
||||
VertexOutput o;
|
||||
UNITY_INITIALIZE_OUTPUT(VertexOutput, o);
|
||||
|
||||
o.texcoord = v.texcoord.xy;
|
||||
o.worldPos = mul(unity_ObjectToWorld, v.vertex);
|
||||
o.vertColor = v.color;
|
||||
o.viewDir = normalize(_WorldSpaceCameraPos.xyz - o.worldPos);
|
||||
o.worldNormal = normalize(mul(unity_ObjectToWorld, float4(v.normal, 0.0)).xyz);
|
||||
|
||||
#if NORMAL_MAP_ON || PARALLAX_ON
|
||||
o.worldTangent = normalize(mul(unity_ObjectToWorld, float4(v.tangent.xyz, 0.0)).xyz);
|
||||
o.worldBitangent = normalize(cross(o.worldNormal, o.worldTangent) * v.tangent.w);
|
||||
#endif
|
||||
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
return o;
|
||||
}
|
||||
|
||||
#ifndef NORMAL_MAP_ON
|
||||
#define COMPUTE_NORMAL IN.worldNormal
|
||||
#else
|
||||
#define COMPUTE_NORMAL normalize(mul(lerp(float3(0, 0, 1), surfaceNormal, normalMapStrength), tangentTransform))
|
||||
#endif
|
||||
|
||||
float3 ComputeColor(
|
||||
VertexOutput IN,
|
||||
float2 uv,
|
||||
#if PARALLAX_ON || NORMAL_MAP_ON
|
||||
float3x3 tangentTransform,
|
||||
#endif
|
||||
#ifdef NORMAL_MAP_ON
|
||||
float3 surfaceNormal,
|
||||
#endif
|
||||
sampler2D surface,
|
||||
float4 surface_ST,
|
||||
fixed4 color,
|
||||
int sampleMode,
|
||||
float4 sampleParameters
|
||||
) {
|
||||
if (sampleMode == SAMPLE_MODE_TEXTURE) {
|
||||
float2 panning = _Time.g * sampleParameters.xy;
|
||||
return tex2D(surface, (uv + panning) * surface_ST.xy + surface_ST.zw).rgb * color.rgb;
|
||||
}
|
||||
else if (sampleMode == SAMPLE_MODE_TEXTURE_SINGLE_CHANNEL) {
|
||||
float4 channelMask = sampleParameters;
|
||||
float4 channels = tex2D(surface, uv * surface_ST.xy + surface_ST.zw);
|
||||
return dot(channels, channelMask) * color.rgb;
|
||||
}
|
||||
#ifdef PARALLAX_ON
|
||||
else if (sampleMode == SAMPLE_MODE_PARALLAX) {
|
||||
float parallaxMinHeight = sampleParameters.x;
|
||||
float parallaxMaxHeight = sampleParameters.y;
|
||||
float parallaxValue = tex2D(_ParallaxMap, TRANSFORM_TEX(uv, _ParallaxMap)).r;
|
||||
float scaledHeight = lerp(parallaxMinHeight, parallaxMaxHeight, parallaxValue);
|
||||
float2 parallaxUV = mul(tangentTransform, IN.viewDir).xy * scaledHeight;
|
||||
return tex2D(surface, (uv * surface_ST.xy + surface_ST.zw) + parallaxUV).rgb * color.rgb;
|
||||
}
|
||||
#endif
|
||||
else if (sampleMode == SAMPLE_MODE_RSRM) {
|
||||
float roughnessMin = sampleParameters.x;
|
||||
float roughnessMax = sampleParameters.y;
|
||||
#ifdef ROUGHNESS_ON
|
||||
float roughnessValue = tex2D(_RoughnessMap, TRANSFORM_TEX(uv, _RoughnessMap)).r;
|
||||
float scaledRoughness = lerp(roughnessMin, roughnessMax, roughnessValue);
|
||||
#else
|
||||
float scaledRoughness = roughnessMin;
|
||||
#endif
|
||||
|
||||
#ifdef NORMAL_MAP_ON
|
||||
float normalMapStrength = sampleParameters.z;
|
||||
#endif
|
||||
float3 viewReflect = reflect(-IN.viewDir, COMPUTE_NORMAL);
|
||||
float viewAngle = viewReflect.y * 0.5 + 0.5;
|
||||
return tex2D(surface, float2(scaledRoughness, viewAngle)).rgb * color.rgb;
|
||||
}
|
||||
return color.rgb;
|
||||
}
|
||||
|
||||
float ComputeMask(
|
||||
VertexOutput IN,
|
||||
#ifdef NORMAL_MAP_ON
|
||||
float3x3 tangentTransform,
|
||||
float3 surfaceNormal,
|
||||
#endif
|
||||
int maskType,
|
||||
float4 layerParameters,
|
||||
float3 maskAxis
|
||||
) {
|
||||
if (maskType == MASK_TYPE_POSITIONAL) {
|
||||
float centerDistance = layerParameters.x;
|
||||
float fadeAbove = layerParameters.y;
|
||||
float fadeBelow = layerParameters.z;
|
||||
float3 objPos = mul(unity_WorldToObject, float4(IN.worldPos, 1.0)).xyz;
|
||||
float d = dot(objPos, maskAxis);
|
||||
if (d > centerDistance) {
|
||||
return saturate(1.0 - (d - centerDistance) / fadeAbove);
|
||||
}
|
||||
else {
|
||||
return saturate(1.0 - (centerDistance - d) / fadeBelow);
|
||||
}
|
||||
}
|
||||
else if (maskType == MASK_TYPE_REFLECTION) {
|
||||
float fadeStart = layerParameters.x;
|
||||
float fadeEnd = layerParameters.y;
|
||||
#ifdef NORMAL_MAP_ON
|
||||
float normalMapStrength = layerParameters.z;
|
||||
#endif
|
||||
float power = layerParameters.w;
|
||||
float3 viewReflect = reflect(-IN.viewDir, COMPUTE_NORMAL);
|
||||
float d = max(0.0, dot(viewReflect, maskAxis));
|
||||
return saturate(1.0 - (d - fadeStart) / (fadeEnd - fadeStart));
|
||||
}
|
||||
else if (maskType == MASK_TYPE_FRESNEL) {
|
||||
float power = layerParameters.x;
|
||||
float fadeStart = layerParameters.y;
|
||||
float fadeEnd = layerParameters.z;
|
||||
#ifdef NORMAL_MAP_ON
|
||||
float normalMapStrength = layerParameters.w;
|
||||
#endif
|
||||
float d = saturate(1.0 - max(0.0, dot(IN.viewDir, COMPUTE_NORMAL)));
|
||||
float p = pow(d, power);
|
||||
return saturate(lerp(fadeStart, fadeEnd, p));
|
||||
}
|
||||
else if (maskType == MASK_TYPE_PULSE) {
|
||||
float distance = layerParameters.x;
|
||||
float speed = layerParameters.y;
|
||||
float power = layerParameters.z;
|
||||
float3 objPos = mul(unity_WorldToObject, float4(IN.worldPos, 1.0)).xyz;
|
||||
float d = dot(objPos, maskAxis);
|
||||
float theta = 6.2831 * frac((d - _Time.g * speed) / distance);
|
||||
return saturate(pow((sin(theta) * 0.5 + 0.5), power));
|
||||
}
|
||||
else {
|
||||
return 1.0;
|
||||
}
|
||||
}
|
||||
|
||||
float3 ComputeBlend(float3 source, float3 blend, float mask, int blendMode) {
|
||||
if (blendMode == BLEND_MODE_MULTIPLY) {
|
||||
return source * (blend * mask);
|
||||
}
|
||||
else {
|
||||
return source + (blend * mask);
|
||||
}
|
||||
}
|
||||
|
||||
float4 ComputeSurface(VertexOutput IN)
|
||||
{
|
||||
#if PROJECTOR_ON
|
||||
float3 projectorPos = mul(_ProjectorWorldToLocal, float4(IN.worldPos, 1.0)).xyz;
|
||||
if (abs(projectorPos.x) > 1.0 || abs(projectorPos.y) > 1.0 || abs(projectorPos.z) > 1.0)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
float2 uv = projectorPos.xy * 0.5 + 0.5;
|
||||
#else
|
||||
float2 uv = IN.texcoord.xy;
|
||||
#endif
|
||||
|
||||
fixed4 c = _BaseColor;
|
||||
IN.worldNormal = normalize(IN.worldNormal);
|
||||
|
||||
#if PARALLAX_ON || NORMAL_MAP_ON
|
||||
float3x3 tangentTransform = float3x3(IN.worldTangent, IN.worldBitangent, IN.worldNormal);
|
||||
#endif
|
||||
|
||||
#ifdef NORMAL_MAP_ON
|
||||
float3 surfaceNormal = UnpackNormal(tex2D(_NormalMap, TRANSFORM_TEX(uv, _NormalMap)));
|
||||
#endif
|
||||
|
||||
#if PARALLAX_ON || NORMAL_MAP_ON
|
||||
#ifndef NORMAL_MAP_ON
|
||||
#define COLOR_INPUTS IN, uv, tangentTransform
|
||||
#define MASK_INPUTS IN
|
||||
#else
|
||||
#define COLOR_INPUTS IN, uv, tangentTransform, surfaceNormal
|
||||
#define MASK_INPUTS IN, tangentTransform, surfaceNormal
|
||||
#endif
|
||||
#else
|
||||
#define COLOR_INPUTS IN, uv
|
||||
#define MASK_INPUTS IN
|
||||
#endif
|
||||
|
||||
#define LAYER_COLOR(index) ComputeColor(COLOR_INPUTS, _LayerSurface##index, _LayerSurface##index##_ST, _LayerColor##index, _LayerSampleMode##index, _LayerSampleParameters##index)
|
||||
#define LAYER_MASK(index) ComputeMask(MASK_INPUTS, _LayerMaskType##index, _LayerMaskParameters##index, _LayerMaskAxis##index##.xyz)
|
||||
#define LAYER_BLEND(index, c) ComputeBlend(c, LAYER_COLOR(index), LAYER_MASK(index), _LayerBlendMode##index)
|
||||
|
||||
c.rgb = LAYER_BLEND(0, c.rgb);
|
||||
#if LAYER_COUNT > 1
|
||||
c.rgb = LAYER_BLEND(1, c.rgb);
|
||||
#endif
|
||||
#if LAYER_COUNT > 2
|
||||
c.rgb = LAYER_BLEND(2, c.rgb);
|
||||
#endif
|
||||
#if LAYER_COUNT > 3
|
||||
c.rgb = LAYER_BLEND(3, c.rgb);
|
||||
#endif
|
||||
#if LAYER_COUNT > 4
|
||||
c.rgb = LAYER_BLEND(4, c.rgb);
|
||||
#endif
|
||||
#if LAYER_COUNT > 5
|
||||
c.rgb = LAYER_BLEND(5, c.rgb);
|
||||
#endif
|
||||
#if LAYER_COUNT > 6
|
||||
c.rgb = LAYER_BLEND(6, c.rgb);
|
||||
#endif
|
||||
#if LAYER_COUNT > 7
|
||||
c.rgb = LAYER_BLEND(7, c.rgb);
|
||||
#endif
|
||||
|
||||
#ifdef VERTALPHA_ON
|
||||
float scaledValue = IN.vertColor.a * 2.0;
|
||||
float alpha0weight = max(0.0, 1.0 - scaledValue);
|
||||
float alpha2weight = max(0.0, scaledValue - 1.0);
|
||||
float alpha1weight = 1.0 - alpha0weight - alpha2weight;
|
||||
c.a = _Alpha * c.a * (tex2D(_AlphaMask, TRANSFORM_TEX(uv, _AlphaMask)).r * alpha1weight + tex2D(_AlphaMask2, TRANSFORM_TEX(uv, _AlphaMask2)).r * alpha2weight + alpha0weight) * ComputeMask(MASK_INPUTS, _BaseMaskType, _BaseMaskParameters, _BaseMaskAxis);
|
||||
#else
|
||||
c.a = _Alpha * c.a * tex2D(_AlphaMask, TRANSFORM_TEX(uv, _AlphaMask)).r * IN.vertColor.a * ComputeMask(MASK_INPUTS, _BaseMaskType, _BaseMaskParameters, _BaseMaskAxis);
|
||||
#endif
|
||||
c.rgb = lerp(c.rgb, c.rgb * _DarkMultiplier, IN.vertColor.r);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 80b6b34e742970d4bb0cdef9c74b04ae
|
||||
timeCreated: 1525971186
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,64 @@
|
||||
//
|
||||
// OvrAvatar Simple Avatar Shader
|
||||
// Uses the Avatar Material Model on the Standard Surface Shader
|
||||
//
|
||||
|
||||
Shader "OvrAvatar/AvatarPBRV2Simple"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
[NoScaleOffset] _MainTex("Color (RGB)", 2D) = "white" {}
|
||||
[NoScaleOffset] _NormalMap("Normal Map", 2D) = "bump" {}
|
||||
[NoScaleOffset] _RoughnessMap("Roughness Map", 2D) = "black" {}
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Blend One Zero
|
||||
Cull Back
|
||||
CGPROGRAM
|
||||
#pragma surface surf Standard keepalpha fullforwardshadows
|
||||
|
||||
#pragma target 3.0
|
||||
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
sampler2D _MainTex;
|
||||
sampler2D _NormalMap;
|
||||
sampler2D _RoughnessMap;
|
||||
|
||||
struct Input
|
||||
{
|
||||
float2 uv_MainTex;
|
||||
float2 uv_NormalMap;
|
||||
float2 uv_RoughnessMap;
|
||||
float3 viewDir;
|
||||
float3 worldNormal; INTERNAL_DATA
|
||||
};
|
||||
|
||||
void surf(Input IN, inout SurfaceOutputStandard o)
|
||||
{
|
||||
|
||||
#if (UNITY_VERSION >= 20171)
|
||||
o.Normal = UnpackNormal(tex2D(_NormalMap, IN.uv_MainTex));
|
||||
#else
|
||||
o.Normal = tex2D(_NormalMap, IN.uv_MainTex) * 2.0 - 1.0;
|
||||
#endif
|
||||
half4 roughnessTex = tex2D(_RoughnessMap, IN.uv_MainTex);
|
||||
|
||||
o.Albedo = tex2D(_MainTex, IN.uv_MainTex);
|
||||
o.Smoothness = roughnessTex.a;
|
||||
o.Metallic = roughnessTex.r;
|
||||
|
||||
#if !defined(UNITY_COLORSPACE_GAMMA)
|
||||
o.Albedo = GammaToLinearSpace(o.Albedo);
|
||||
#endif
|
||||
o.Albedo = saturate(o.Albedo);
|
||||
o.Alpha = 1.0;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
Fallback "Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 28729c6ae5a33b04cb2f7956f3f3fc01
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,141 @@
|
||||
Shader "OvrAvatar/AvatarSurfaceShader" {
|
||||
Properties{
|
||||
// Global parameters
|
||||
_Alpha("Alpha", Range(0.0, 1.0)) = 1.0
|
||||
_DarkMultiplier("Dark Multiplier", Color) = (0.6, 0.6, 0.6, 1.0)
|
||||
_BaseColor("Base Color", Color) = (0.0, 0.0, 0.0, 0.0)
|
||||
_BaseMaskType("Base Mask Type", Int) = 0
|
||||
_BaseMaskParameters("Base Mask Parameters", Vector) = (0, 0, 0, 0)
|
||||
_BaseMaskAxis("Base Mask Axis", Vector) = (0, 1, 0, 0)
|
||||
_AlphaMask("Alpha Mask", 2D) = "white" {}
|
||||
_NormalMap("Normal Map", 2D) = "" {}
|
||||
_ParallaxMap("Parallax Map", 2D) = "" {}
|
||||
_RoughnessMap("Roughness Map", 2D) = "" {}
|
||||
|
||||
// Layer 0 parameters
|
||||
_LayerSampleMode0("Layer Sample Mode 0", Int) = 0
|
||||
_LayerBlendMode0("Layer Blend Mode 0", Int) = 0
|
||||
_LayerMaskType0("Layer Mask Type 0", Int) = 0
|
||||
_LayerColor0("Layer Color 0", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface0("Layer Surface 0", 2D) = "" {}
|
||||
_LayerSampleParameters0("Layer Sample Parameters 0", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters0("Layer Mask Parameters 0", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis0("Layer Mask Axis 0", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 1 parameters
|
||||
_LayerSampleMode1("Layer Sample Mode 1", Int) = 0
|
||||
_LayerBlendMode1("Layer Blend Mode 1", Int) = 0
|
||||
_LayerMaskType1("Layer Mask Type 1", Int) = 0
|
||||
_LayerColor1("Layer Color 1", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface1("Layer Surface 1", 2D) = "" {}
|
||||
_LayerSampleParameters1("Layer Sample Parameters 1", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters1("Layer Mask Parameters 1", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis1("Layer Mask Axis 1", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 2 parameters
|
||||
_LayerSampleMode2("Layer Sample Mode 2", Int) = 0
|
||||
_LayerBlendMode2("Layer Blend Mode 2", Int) = 0
|
||||
_LayerMaskType2("Layer Mask Type 2", Int) = 0
|
||||
_LayerColor2("Layer Color 2", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface2("Layer Surface 2", 2D) = "" {}
|
||||
_LayerSampleParameters2("Layer Sample Parameters 2", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters2("Layer Mask Parameters 2", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis2("Layer Mask Axis 2", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 3 parameters
|
||||
_LayerSampleMode3("Layer Sample Mode 3", Int) = 0
|
||||
_LayerBlendMode3("Layer Blend Mode 3", Int) = 0
|
||||
_LayerMaskType3("Layer Mask Type 3", Int) = 0
|
||||
_LayerColor3("Layer Color 3", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface3("Layer Surface 3", 2D) = "" {}
|
||||
_LayerSampleParameters3("Layer Sample Parameters 3", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters3("Layer Mask Parameters 3", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis3("Layer Mask Axis 3", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 4 parameters
|
||||
_LayerSampleMode4("Layer Sample Mode 4", Int) = 0
|
||||
_LayerBlendMode4("Layer Blend Mode 4", Int) = 0
|
||||
_LayerMaskType4("Layer Mask Type 4", Int) = 0
|
||||
_LayerColor4("Layer Color 4", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface4("Layer Surface 4", 2D) = "" {}
|
||||
_LayerSampleParameters4("Layer Sample Parameters 4", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters4("Layer Mask Parameters 4", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis4("Layer Mask Axis 4", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 5 parameters
|
||||
_LayerSampleMode5("Layer Sample Mode 5", Int) = 0
|
||||
_LayerBlendMode5("Layer Blend Mode 5", Int) = 0
|
||||
_LayerMaskType5("Layer Mask Type 5", Int) = 0
|
||||
_LayerColor5("Layer Color 5", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface5("Layer Surface 5", 2D) = "" {}
|
||||
_LayerSampleParameters5("Layer Sample Parameters 5", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters5("Layer Mask Parameters 5", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis5("Layer Mask Axis 5", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 6 parameters
|
||||
_LayerSampleMode6("Layer Sample Mode 6", Int) = 0
|
||||
_LayerBlendMode6("Layer Blend Mode 6", Int) = 0
|
||||
_LayerMaskType6("Layer Mask Type 6", Int) = 0
|
||||
_LayerColor6("Layer Color 6", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface6("Layer Surface 6", 2D) = "" {}
|
||||
_LayerSampleParameters6("Layer Sample Parameters 6", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters6("Layer Mask Parameters 6", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis6("Layer Mask Axis 6", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 7 parameters
|
||||
_LayerSampleMode7("Layer Sample Mode 7", Int) = 0
|
||||
_LayerBlendMode7("Layer Blend Mode 7", Int) = 0
|
||||
_LayerMaskType7("Layer Mask Type 7", Int) = 0
|
||||
_LayerColor7("Layer Color 7", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface7("Layer Surface 7", 2D) = "" {}
|
||||
_LayerSampleParameters7("Layer Sample Parameters 7", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters7("Layer Mask Parameters 7", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis7("Layer Mask Axis 7", Vector) = (0, 1, 0, 0)
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags
|
||||
{
|
||||
"Queue" = "Transparent"
|
||||
"RenderType" = "Transparent"
|
||||
}
|
||||
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
ZWrite Off
|
||||
LOD 200
|
||||
|
||||
Pass
|
||||
{
|
||||
Name "FORWARD"
|
||||
Tags
|
||||
{
|
||||
"LightMode" = "ForwardBase"
|
||||
}
|
||||
|
||||
CGPROGRAM
|
||||
#pragma only_renderers d3d11 gles3 gles
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.0
|
||||
#pragma multi_compile PROJECTOR_OFF PROJECTOR_ON
|
||||
#pragma multi_compile NORMAL_MAP_OFF NORMAL_MAP_ON
|
||||
#pragma multi_compile PARALLAX_OFF PARALLAX_ON
|
||||
#pragma multi_compile ROUGHNESS_OFF ROUGHNESS_ON
|
||||
#pragma multi_compile VERTALPHA_OFF VERTALPHA_ON
|
||||
#pragma multi_compile LAYERS_1 LAYERS_2 LAYERS_3 LAYERS_4 LAYERS_5 LAYERS_6 LAYERS_7 LAYERS_8
|
||||
|
||||
#include "Assets/Oculus/Avatar/Resources/Materials/AvatarMaterialStateShader.cginc"
|
||||
|
||||
float4 frag(VertexOutput IN) : COLOR
|
||||
{
|
||||
return ComputeSurface(IN);
|
||||
}
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
|
||||
FallBack "Diffuse"
|
||||
CustomEditor "AvatarMaterialEditor"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 73f67c4e7bf718b4385aa6b1f8a06591
|
||||
timeCreated: 1525971190
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,79 @@
|
||||
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
|
||||
|
||||
Shader "OvrAvatar/AvatarSurfaceShaderPBS" {
|
||||
Properties{
|
||||
// Global parameters
|
||||
_Alpha("Alpha", Range(0.0, 1.0)) = 1.0
|
||||
_Albedo("Albedo (RGB)", 2D) = "" {}
|
||||
_Surface("Metallic (R) Occlusion (G) and Smoothness (A)", 2D) = "" {}
|
||||
}
|
||||
SubShader{
|
||||
Tags {
|
||||
"Queue" = "Transparent"
|
||||
"RenderType" = "Transparent"
|
||||
}
|
||||
|
||||
Pass {
|
||||
ZWrite On
|
||||
Cull Off
|
||||
ColorMask 0
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.0
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct v2f {
|
||||
float4 position : SV_POSITION;
|
||||
};
|
||||
v2f vert(appdata_full v) {
|
||||
// Output
|
||||
v2f output;
|
||||
output.position = UnityObjectToClipPos(v.vertex);
|
||||
return output;
|
||||
}
|
||||
|
||||
float4 frag(v2f input) : COLOR {
|
||||
return 0;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
|
||||
LOD 200
|
||||
|
||||
CGPROGRAM
|
||||
|
||||
// Physically based Standard lighting model, and enable shadows on all light types
|
||||
#pragma surface surf Standard vertex:vert nolightmap alpha noforwardadd
|
||||
|
||||
float _Alpha;
|
||||
sampler2D _Albedo;
|
||||
float4 _Albedo_ST;
|
||||
sampler2D _Surface;
|
||||
float4 _Surface_ST;
|
||||
|
||||
struct Input {
|
||||
float2 texcoord;
|
||||
};
|
||||
|
||||
void vert(inout appdata_full v, out Input o) {
|
||||
UNITY_INITIALIZE_OUTPUT(Input, o);
|
||||
o.texcoord = v.texcoord.xy;
|
||||
}
|
||||
|
||||
void surf (Input IN, inout SurfaceOutputStandard o) {
|
||||
o.Albedo = tex2D(_Albedo, TRANSFORM_TEX(IN.texcoord, _Albedo)).rgb;
|
||||
float4 surfaceParams = tex2D(_Surface, TRANSFORM_TEX(IN.texcoord, _Surface));
|
||||
o.Metallic = surfaceParams.r;
|
||||
o.Occlusion = surfaceParams.g;
|
||||
o.Smoothness = surfaceParams.a;
|
||||
o.Alpha = _Alpha;
|
||||
}
|
||||
|
||||
#pragma only_renderers d3d11 gles3 gles
|
||||
|
||||
ENDCG
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e52aa58207bbf24d8eb8ec969e9ae88
|
||||
timeCreated: 1525971190
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,39 @@
|
||||
Shader "OvrAvatar/AvatarSurfaceShaderPBSV2" {
|
||||
Properties {
|
||||
_AlbedoMultiplier ("Albedo Multiplier", Color) = (1,1,1,1)
|
||||
_Albedo ("Albedo (RGB)", 2D) = "white" {}
|
||||
_Metallicness("Metallicness", 2D) = "grey" {}
|
||||
_GlossinessScale ("Glossiness Scale", Range(0,1)) = 0.5
|
||||
}
|
||||
SubShader {
|
||||
Tags { "RenderType"="Opaque" }
|
||||
LOD 200
|
||||
|
||||
CGPROGRAM
|
||||
// Physically based Standard lighting model, and enable shadows on all light types
|
||||
#pragma surface surf Standard fullforwardshadows
|
||||
|
||||
// Use shader model 3.0 target, to get nicer looking lighting
|
||||
#pragma target 3.0
|
||||
|
||||
sampler2D _Albedo;
|
||||
sampler2D _Metallicness;
|
||||
|
||||
struct Input {
|
||||
float2 uv_Albedo;
|
||||
};
|
||||
|
||||
float _GlossinessScale;
|
||||
float4 _AlbedoMultiplier;
|
||||
|
||||
void surf (Input IN, inout SurfaceOutputStandard o) {
|
||||
fixed4 c = tex2D (_Albedo, IN.uv_Albedo) * _AlbedoMultiplier;
|
||||
o.Albedo = c.rgb;
|
||||
o.Metallic = tex2D (_Metallicness, IN.uv_Albedo).r;
|
||||
o.Smoothness = _GlossinessScale;
|
||||
o.Alpha = 1.0;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 176faebcc612eb147900defeda2149cb
|
||||
timeCreated: 1525971187
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,175 @@
|
||||
Shader "OvrAvatar/AvatarSurfaceShaderSelfOccluding" {
|
||||
Properties{
|
||||
// Global parameters
|
||||
_Alpha("Alpha", Range(0.0, 1.0)) = 1.0
|
||||
_DarkMultiplier("Dark Multiplier", Color) = (0.6, 0.6, 0.6, 1.0)
|
||||
_BaseColor("Base Color", Color) = (0.0, 0.0, 0.0, 0.0)
|
||||
_BaseMaskType("Base Mask Type", Int) = 0
|
||||
_BaseMaskParameters("Base Mask Parameters", Vector) = (0, 0, 0, 0)
|
||||
_BaseMaskAxis("Base Mask Axis", Vector) = (0, 1, 0, 0)
|
||||
_AlphaMask("Alpha Mask", 2D) = "white" {}
|
||||
_NormalMap("Normal Map", 2D) = "" {}
|
||||
_ParallaxMap("Parallax Map", 2D) = "" {}
|
||||
_RoughnessMap("Roughness Map", 2D) = "" {}
|
||||
|
||||
// Layer 0 parameters
|
||||
_LayerSampleMode0("Layer Sample Mode 0", Int) = 0
|
||||
_LayerBlendMode0("Layer Blend Mode 0", Int) = 0
|
||||
_LayerMaskType0("Layer Mask Type 0", Int) = 0
|
||||
_LayerColor0("Layer Color 0", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface0("Layer Surface 0", 2D) = "" {}
|
||||
_LayerSampleParameters0("Layer Sample Parameters 0", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters0("Layer Mask Parameters 0", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis0("Layer Mask Axis 0", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 1 parameters
|
||||
_LayerSampleMode1("Layer Sample Mode 1", Int) = 0
|
||||
_LayerBlendMode1("Layer Blend Mode 1", Int) = 0
|
||||
_LayerMaskType1("Layer Mask Type 1", Int) = 0
|
||||
_LayerColor1("Layer Color 1", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface1("Layer Surface 1", 2D) = "" {}
|
||||
_LayerSampleParameters1("Layer Sample Parameters 1", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters1("Layer Mask Parameters 1", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis1("Layer Mask Axis 1", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 2 parameters
|
||||
_LayerSampleMode2("Layer Sample Mode 2", Int) = 0
|
||||
_LayerBlendMode2("Layer Blend Mode 2", Int) = 0
|
||||
_LayerMaskType2("Layer Mask Type 2", Int) = 0
|
||||
_LayerColor2("Layer Color 2", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface2("Layer Surface 2", 2D) = "" {}
|
||||
_LayerSampleParameters2("Layer Sample Parameters 2", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters2("Layer Mask Parameters 2", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis2("Layer Mask Axis 2", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 3 parameters
|
||||
_LayerSampleMode3("Layer Sample Mode 3", Int) = 0
|
||||
_LayerBlendMode3("Layer Blend Mode 3", Int) = 0
|
||||
_LayerMaskType3("Layer Mask Type 3", Int) = 0
|
||||
_LayerColor3("Layer Color 3", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface3("Layer Surface 3", 2D) = "" {}
|
||||
_LayerSampleParameters3("Layer Sample Parameters 3", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters3("Layer Mask Parameters 3", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis3("Layer Mask Axis 3", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 4 parameters
|
||||
_LayerSampleMode4("Layer Sample Mode 4", Int) = 0
|
||||
_LayerBlendMode4("Layer Blend Mode 4", Int) = 0
|
||||
_LayerMaskType4("Layer Mask Type 4", Int) = 0
|
||||
_LayerColor4("Layer Color 4", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface4("Layer Surface 4", 2D) = "" {}
|
||||
_LayerSampleParameters4("Layer Sample Parameters 4", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters4("Layer Mask Parameters 4", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis4("Layer Mask Axis 4", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 5 parameters
|
||||
_LayerSampleMode5("Layer Sample Mode 5", Int) = 0
|
||||
_LayerBlendMode5("Layer Blend Mode 5", Int) = 0
|
||||
_LayerMaskType5("Layer Mask Type 5", Int) = 0
|
||||
_LayerColor5("Layer Color 5", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface5("Layer Surface 5", 2D) = "" {}
|
||||
_LayerSampleParameters5("Layer Sample Parameters 5", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters5("Layer Mask Parameters 5", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis5("Layer Mask Axis 5", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 6 parameters
|
||||
_LayerSampleMode6("Layer Sample Mode 6", Int) = 0
|
||||
_LayerBlendMode6("Layer Blend Mode 6", Int) = 0
|
||||
_LayerMaskType6("Layer Mask Type 6", Int) = 0
|
||||
_LayerColor6("Layer Color 6", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface6("Layer Surface 6", 2D) = "" {}
|
||||
_LayerSampleParameters6("Layer Sample Parameters 6", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters6("Layer Mask Parameters 6", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis6("Layer Mask Axis 6", Vector) = (0, 1, 0, 0)
|
||||
|
||||
// Layer 7 parameters
|
||||
_LayerSampleMode7("Layer Sample Mode 7", Int) = 0
|
||||
_LayerBlendMode7("Layer Blend Mode 7", Int) = 0
|
||||
_LayerMaskType7("Layer Mask Type 7", Int) = 0
|
||||
_LayerColor7("Layer Color 7", Color) = (1.0, 1.0, 1.0, 1.0)
|
||||
_LayerSurface7("Layer Surface 7", 2D) = "" {}
|
||||
_LayerSampleParameters7("Layer Sample Parameters 7", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskParameters7("Layer Mask Parameters 7", Vector) = (0, 0, 0, 0)
|
||||
_LayerMaskAxis7("Layer Mask Axis 7", Vector) = (0, 1, 0, 0)
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags
|
||||
{
|
||||
"Queue" = "Transparent"
|
||||
"RenderType" = "Transparent"
|
||||
}
|
||||
|
||||
Pass
|
||||
{
|
||||
ZWrite On
|
||||
Cull Off
|
||||
ColorMask 0
|
||||
Offset 1, 1
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.0
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 position : SV_POSITION;
|
||||
};
|
||||
|
||||
v2f vert(appdata_full v)
|
||||
{
|
||||
// Output
|
||||
v2f output;
|
||||
output.position = UnityObjectToClipPos(v.vertex);
|
||||
return output;
|
||||
}
|
||||
|
||||
float4 frag(v2f input) : COLOR
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
ZWrite Off
|
||||
LOD 200
|
||||
|
||||
Pass
|
||||
{
|
||||
Name "FORWARD"
|
||||
Tags
|
||||
{
|
||||
"LightMode" = "ForwardBase"
|
||||
}
|
||||
|
||||
CGPROGRAM
|
||||
#pragma only_renderers d3d11 gles3 gles
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.0
|
||||
#pragma multi_compile PROJECTOR_OFF PROJECTOR_ON
|
||||
#pragma multi_compile NORMAL_MAP_OFF NORMAL_MAP_ON
|
||||
#pragma multi_compile PARALLAX_OFF PARALLAX_ON
|
||||
#pragma multi_compile ROUGHNESS_OFF ROUGHNESS_ON
|
||||
#pragma multi_compile VERTALPHA_OFF VERTALPHA_ON
|
||||
#pragma multi_compile LAYERS_1 LAYERS_2 LAYERS_3 LAYERS_4 LAYERS_5 LAYERS_6 LAYERS_7 LAYERS_8
|
||||
|
||||
#include "Assets/Oculus/Avatar/Resources/Materials/AvatarMaterialStateShader.cginc"
|
||||
|
||||
float4 frag(VertexOutput IN) : SV_Target
|
||||
{
|
||||
return ComputeSurface(IN);
|
||||
}
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
|
||||
FallBack "Diffuse"
|
||||
CustomEditor "AvatarMaterialEditor"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 69f342b79d37541489919a19cfd8a924
|
||||
timeCreated: 1525971190
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Resources/Materials/Expressive.meta
Normal file
9
Assets/Oculus/Avatar/Resources/Materials/Expressive.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 08113db6bc6c49046beb604cc64556ba
|
||||
folderAsset: yes
|
||||
timeCreated: 1540579933
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,86 @@
|
||||
//
|
||||
// OvrAvatar eye lens shader
|
||||
//
|
||||
// Generates glint on the eye lens of expressive avatars
|
||||
//
|
||||
|
||||
Shader "OvrAvatar/Avatar_EyeLens"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_Cube("Cubemap Reflection", CUBE) = "black" {}
|
||||
_ReflectionIntensity("Reflection Intensity", Range(0.0,1.0)) = 0.2
|
||||
_GlintStrength("Glint Strength", Range(0, 10)) = 1.57
|
||||
_GlintSpead("Glint Spead", Range(32, 2048)) = 600
|
||||
_Alpha("Alpha", Range(0.0,1.0)) = 1.0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "LightMode" = "ForwardBase" "Queue" = "Transparent" "RenderType" = "Transparent" "IgnoreProjector" = "True" }
|
||||
Pass
|
||||
{
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
#pragma target 3.0
|
||||
#include "UnityCG.cginc"
|
||||
#include "UnityLightingCommon.cginc"
|
||||
#include "AutoLight.cginc"
|
||||
|
||||
samplerCUBE _Cube;
|
||||
half _ReflectionIntensity;
|
||||
half _GlintStrength;
|
||||
half _GlintSpead;
|
||||
half _Alpha;
|
||||
|
||||
struct VertexInput
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float3 normal : NORMAL;
|
||||
};
|
||||
|
||||
struct VertexOutput
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float4 posWorld : TEXCOORD1;
|
||||
float3 normalDir : TEXCOORD2;
|
||||
};
|
||||
|
||||
VertexOutput vert(VertexInput v)
|
||||
{
|
||||
VertexOutput o = (VertexOutput)0;
|
||||
o.normalDir = UnityObjectToWorldNormal(v.normal);
|
||||
o.posWorld = mul(unity_ObjectToWorld, v.vertex);
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
return o;
|
||||
}
|
||||
|
||||
float4 frag(VertexOutput i) : COLOR
|
||||
{
|
||||
i.normalDir = normalize(i.normalDir);
|
||||
half3 viewDirection = normalize(_WorldSpaceCameraPos.xyz - i.posWorld.xyz);
|
||||
half NdotLV = max(0, dot(i.normalDir, normalize(_WorldSpaceLightPos0.xyz + viewDirection)));
|
||||
half3 spec = pow(NdotLV, _GlintSpead) * _GlintStrength;
|
||||
|
||||
// Sample the default reflection cubemap using the reflection vector
|
||||
half3 viewReflectDirection = reflect(-viewDirection, i.normalDir);
|
||||
half4 skyData = UNITY_SAMPLE_TEXCUBE(unity_SpecCube0, viewReflectDirection);
|
||||
// Decode cubemap data into actual color
|
||||
half3 reflectionColor = DecodeHDR(skyData, unity_SpecCube0_HDR);
|
||||
|
||||
half4 finalColor;
|
||||
finalColor.rgb = reflectionColor.rgb * _ReflectionIntensity;
|
||||
finalColor.rgb += spec;
|
||||
finalColor.a = (finalColor.r + finalColor.g + finalColor.b) / 3;
|
||||
|
||||
return finalColor;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8392f54e79937ed4bb1b692a143dc02b
|
||||
timeCreated: 1539383496
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,280 @@
|
||||
//
|
||||
// OvrAvatar Mobile combined mesh expressive shader
|
||||
// For use on expressive face meshes
|
||||
// Texture array approach for rendering a combined mesh avatar with blend shape expression
|
||||
// Coupled with OvrAvatarMaterialManager to populate the texture arrays
|
||||
//
|
||||
// Unity vertex-fragnment implementation
|
||||
// Simplified lighting model recommended for use on mobile supporting one directional light
|
||||
// Surface shader recommended on PC
|
||||
//
|
||||
// Uses transparent queue for fade effects
|
||||
//
|
||||
// Color and appearance of the facial regions controlled via G&B channels in roughness texture
|
||||
// Pupil size controlled by manipulating UV coordinates
|
||||
//
|
||||
// Shader keywords:
|
||||
// - SECONDARY_LIGHT_ON SECONDARY_LIGHT_OFF
|
||||
// Enable SECONDARY_LIGHT_ON for a second "light" comprised of _SecondaryLightDirection and
|
||||
// _SecondaryLightColor This will influence the rim effect providing a lit contour to the avatar
|
||||
//
|
||||
|
||||
|
||||
Shader "OvrAvatar/Avatar_Mobile_CombinedMeshExpressive"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
[NoScaleOffset] _MainTex("Main Texture Array", 2DArray) = "white" {}
|
||||
[NoScaleOffset] _NormalMap("Normal Map Array", 2DArray) = "bump" {}
|
||||
[NoScaleOffset] _RoughnessMap("Roughness Map Array", 2DArray) = "black" {}
|
||||
|
||||
_Dimmer("Dimmer", Range(0.0,1.0)) = 1.0
|
||||
_Alpha("Alpha", Range(0.0,1.0)) = 1.0
|
||||
|
||||
// Index into the texture array needs an offset for precision
|
||||
_Slices("Texture Array Slices", int) = 4.97
|
||||
|
||||
_PupilSize("Pupil Size", Range(-1, 2)) = 0
|
||||
_LipSmoothness("Lip Smoothness", Range(0, 1)) = 0
|
||||
|
||||
_MaskColorIris("Iris Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorLips("Lips Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorBrows("Brows Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorLashes("Lashes Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorSclera("Sclera Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorGums("Gums Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorTeeth("Teeth Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
|
||||
[HideInInspector] _SrcBlend("", Float) = 1
|
||||
[HideInInspector] _DstBlend("", Float) = 0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "LightMode" = "ForwardBase" "IgnoreProjector" = "True"}
|
||||
Pass
|
||||
{
|
||||
Blend [_SrcBlend] [_DstBlend]
|
||||
Cull Back
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.5
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
#pragma multi_compile SECONDARY_LIGHT_OFF SECONDARY_LIGHT_ON
|
||||
#include "UnityCG.cginc"
|
||||
#include "UnityLightingCommon.cginc"
|
||||
|
||||
UNITY_DECLARE_TEX2DARRAY(_MainTex);
|
||||
UNITY_DECLARE_TEX2DARRAY(_NormalMap);
|
||||
float4 _NormalMap_ST;
|
||||
UNITY_DECLARE_TEX2DARRAY(_RoughnessMap);
|
||||
|
||||
int _Slices;
|
||||
|
||||
half _Dimmer;
|
||||
half _Alpha;
|
||||
|
||||
half4 _BaseColor[5];
|
||||
half _DiffuseIntensity[5];
|
||||
half _RimIntensity[5];
|
||||
half _ReflectionIntensity[5];
|
||||
|
||||
half3 _SecondaryLightDirection;
|
||||
half4 _SecondaryLightColor;
|
||||
|
||||
half _PupilSize;
|
||||
half _LipSmoothness;
|
||||
|
||||
fixed4 _MaskColorIris;
|
||||
fixed4 _MaskColorSclera;
|
||||
fixed4 _MaskColorBrows;
|
||||
fixed4 _MaskColorLashes;
|
||||
fixed4 _MaskColorLashesEnd;
|
||||
fixed4 _MaskColorLips;
|
||||
fixed4 _MaskColorGums;
|
||||
fixed4 _MaskColorTeeth;
|
||||
|
||||
static const int ONE = 1;
|
||||
static const fixed ALPHA_CLIP_THRESHOLD = 0.7;
|
||||
static const int IRIS_BRIGHTNESS_MODIFIER = 2;
|
||||
static const fixed SCLERA_BRIGHTNESS_MODIFIER = 1.2;
|
||||
static const fixed LIP_SMOOTHNESS_MULTIPLIER = 0.5;
|
||||
static const fixed LIP_SMOOTHNESS_MIN_NDOTL = 0.3;
|
||||
static const fixed BROWS_LASHES_DIFFUSEINTENSITY = ONE - 0.25;
|
||||
static const int COLOR_MULTIPLIER = 255;
|
||||
static const half2 PUPIL_CENTER_UV = half2(0.127, 0.1175);
|
||||
static const half DILATION_ENVELOPE = 0.024;
|
||||
static const half2 EYE_REGION_UV = PUPIL_CENTER_UV + DILATION_ENVELOPE;
|
||||
|
||||
static const int MASK_SLICE_SIZE = 17;
|
||||
static const half MASK_SLICE_THRESHOLD = MASK_SLICE_SIZE * 0.5f;
|
||||
static const int MASK_INDEX_IRIS = 255;
|
||||
static const int MASK_INDEX_SCLERA = 238;
|
||||
static const int MASK_INDEX_LASHES = 221;
|
||||
static const int MASK_INDEX_LIPS = 204;
|
||||
static const int MASK_INDEX_GUMS = 187;
|
||||
static const int MASK_INDEX_TEETH = 170;
|
||||
static const int MASK_INDEX_BROWS = 153;
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex: POSITION;
|
||||
float3 normal: NORMAL;
|
||||
float4 tangent: TANGENT;
|
||||
float2 texcoord: TEXCOORD0;
|
||||
float4 vertexColor : COLOR0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float3 uv : TEXCOORD0;
|
||||
float4 posWorld: TEXCOORD1;
|
||||
float3 normalDir: TEXCOORD2;
|
||||
float3 tangentDir: TEXCOORD3;
|
||||
float3 bitangentDir: TEXCOORD4;
|
||||
};
|
||||
|
||||
v2f vert(appdata v)
|
||||
{
|
||||
v2f o;
|
||||
|
||||
// Calculate tangents for normal mapping
|
||||
o.normalDir = normalize(UnityObjectToWorldNormal(v.normal));
|
||||
o.tangentDir = normalize(mul(unity_ObjectToWorld, half4(v.tangent.xyz, 0.0)).xyz);
|
||||
o.bitangentDir = normalize(cross(o.normalDir, o.tangentDir) * v.tangent.w);
|
||||
|
||||
o.posWorld = mul(unity_ObjectToWorld, v.vertex);
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
o.uv.xy = v.texcoord;
|
||||
o.uv.z = v.vertexColor.x * _Slices;
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : COLOR
|
||||
{
|
||||
// Pupil size offsets uv coords
|
||||
if (all(i.uv.xy < EYE_REGION_UV))
|
||||
{
|
||||
i.uv.xy -= PUPIL_CENTER_UV;
|
||||
half pupil = saturate(length(i.uv.xy) / DILATION_ENVELOPE);
|
||||
i.uv.xy *= lerp(1.0, pupil, _PupilSize);
|
||||
i.uv.xy += PUPIL_CENTER_UV;
|
||||
}
|
||||
|
||||
// Diffuse texture sample
|
||||
float4 albedoColor = UNITY_SAMPLE_TEX2DARRAY(_MainTex, i.uv);
|
||||
|
||||
// Process normal map
|
||||
float3 transformedNormalUV = i.uv;
|
||||
transformedNormalUV.xy = float2(TRANSFORM_TEX(i.uv.xy, _NormalMap));
|
||||
float3 normalMap = UNITY_SAMPLE_TEX2DARRAY(_NormalMap, transformedNormalUV) * 2.0 - ONE;
|
||||
float3x3 tangentTransform = float3x3(i.tangentDir, i.bitangentDir, i.normalDir);
|
||||
float3 normalDirection = normalize(mul(normalMap.rgb, tangentTransform));
|
||||
|
||||
// Roughness contains metallic in r, smoothness in a, mask region in b and mask control in g
|
||||
half4 roughnessTex = UNITY_SAMPLE_TEX2DARRAY(_RoughnessMap, i.uv);
|
||||
|
||||
// Normal/Light/View calculations
|
||||
half3 viewDirection = normalize(_WorldSpaceCameraPos.xyz - i.posWorld.xyz);
|
||||
half VdotN = saturate(dot(viewDirection, normalDirection));
|
||||
half NdotL = saturate(dot(normalDirection, normalize(_WorldSpaceLightPos0.xyz)));
|
||||
|
||||
// Sample the default reflection cubemap using the reflection vector
|
||||
float3 worldReflection = reflect(-viewDirection, normalDirection);
|
||||
half4 skyData = UNITY_SAMPLE_TEXCUBE(unity_SpecCube0, worldReflection);
|
||||
// Decode cubemap data into actual color
|
||||
half3 reflectionColor = DecodeHDR(skyData, unity_SpecCube0_HDR);
|
||||
|
||||
// Get index into texture array
|
||||
int componentIndex = floor(i.uv.z + 0.5);
|
||||
|
||||
// Base color from array
|
||||
float4 baseColor = _BaseColor[componentIndex];
|
||||
|
||||
// Color space conversions if we are in linear
|
||||
#ifndef UNITY_COLORSPACE_GAMMA
|
||||
_MaskColorIris.rgb = LinearToGammaSpace(_MaskColorIris.rgb);
|
||||
_MaskColorLips.rgb = LinearToGammaSpace(_MaskColorLips.rgb);
|
||||
_MaskColorBrows.rgb = LinearToGammaSpace(_MaskColorBrows.rgb);
|
||||
_MaskColorLashes.rgb = LinearToGammaSpace(_MaskColorLashes.rgb);
|
||||
_MaskColorLashesEnd.rgb = LinearToGammaSpace(_MaskColorLashesEnd.rgb);
|
||||
_MaskColorSclera.rgb = LinearToGammaSpace(_MaskColorSclera.rgb);
|
||||
_MaskColorGums.rgb = LinearToGammaSpace(_MaskColorGums.rgb);
|
||||
_MaskColorTeeth.rgb = LinearToGammaSpace(_MaskColorTeeth.rgb);
|
||||
#endif
|
||||
|
||||
// Calculate color masks
|
||||
half irisScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_IRIS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half lipsScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_LIPS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half browsScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_BROWS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;;
|
||||
half lashesScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_LASHES) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half scleraScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_SCLERA) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half teethScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_TEETH) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;;
|
||||
half gumsScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_GUMS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;;
|
||||
|
||||
half3 maskIris = irisScalar * (_MaskColorIris * IRIS_BRIGHTNESS_MODIFIER - baseColor.rgb);
|
||||
half3 maskBrows = browsScalar * (_MaskColorBrows - baseColor.rgb);
|
||||
half3 maskLashes = lashesScalar * (_MaskColorLashes - baseColor.rgb);
|
||||
half3 maskSclera = scleraScalar * (_MaskColorSclera * SCLERA_BRIGHTNESS_MODIFIER - baseColor.rgb);
|
||||
half3 maskTeeth = teethScalar * (_MaskColorTeeth - baseColor.rgb);
|
||||
half3 maskGums = gumsScalar * (_MaskColorGums - baseColor.rgb);
|
||||
// Lip tint excluded from color mask as it lerps with texture color
|
||||
half3 colorMask = maskIris + maskBrows + maskLashes + maskSclera + maskTeeth + maskGums;
|
||||
|
||||
// Diffuse intensity from array
|
||||
half diffuseIntensity = _DiffuseIntensity[componentIndex];
|
||||
|
||||
// Lerp diffuseIntensity with roughness map
|
||||
diffuseIntensity = lerp(diffuseIntensity, ONE, roughnessTex.a);
|
||||
|
||||
// Brows and lashes modify DiffuseIntensity
|
||||
diffuseIntensity *= ONE - (saturate(browsScalar + lashesScalar) * BROWS_LASHES_DIFFUSEINTENSITY);
|
||||
|
||||
// Add in diffuseIntensity and main lighting to base color
|
||||
baseColor.rgb += diffuseIntensity * NdotL * _LightColor0;
|
||||
|
||||
// Add in color mask to base color if this is the head component (index == 0)
|
||||
baseColor.rgb += clamp(ONE - componentIndex, 0, ONE) * colorMask;
|
||||
|
||||
// Multiply texture with base color with special case for lips
|
||||
albedoColor.rgb = lerp(albedoColor.rgb * baseColor.rgb, _MaskColorLips.rgb, lipsScalar * _MaskColorLips.a);
|
||||
|
||||
// Smoothness multiplier on lip region
|
||||
albedoColor.rgb += lipsScalar * reflectionColor * (_LipSmoothness * LIP_SMOOTHNESS_MULTIPLIER) *
|
||||
lerp(LIP_SMOOTHNESS_MIN_NDOTL, ONE, NdotL);
|
||||
|
||||
// Reflection from cubemap
|
||||
albedoColor.rgb += reflectionColor * (roughnessTex.a * _ReflectionIntensity[componentIndex]) * NdotL;
|
||||
|
||||
// Rim term
|
||||
#ifdef SECONDARY_LIGHT_ON
|
||||
// Secondary light proxy (direction and color) passed into the rim term
|
||||
NdotL = saturate(dot(normalDirection, _SecondaryLightDirection));
|
||||
albedoColor.rgb += pow(ONE - VdotN, _RimIntensity[componentIndex]) * NdotL * _SecondaryLightColor;
|
||||
#else
|
||||
albedoColor.rgb += pow(ONE - VdotN, _RimIntensity[componentIndex]) * NdotL;
|
||||
#endif
|
||||
|
||||
// Global dimmer
|
||||
albedoColor.rgb *= _Dimmer;
|
||||
|
||||
#if !defined(UNITY_COLORSPACE_GAMMA)
|
||||
albedoColor.rgb = GammaToLinearSpace(albedoColor.rgb);
|
||||
#endif
|
||||
albedoColor.rgb = saturate(albedoColor.rgb);
|
||||
|
||||
// Set alpha, with special case for lashes
|
||||
albedoColor.a = saturate(albedoColor.a * lerp(ONE, _Alpha, ONE - lashesScalar) * _Alpha);
|
||||
|
||||
// Clip fragments in the lash region for clean lash transparency
|
||||
clip(albedoColor.a - lerp(0.0, ALPHA_CLIP_THRESHOLD, lashesScalar));
|
||||
|
||||
// Return clamped final color
|
||||
return albedoColor;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0600fe59b0c043344affd1d1368b9ef2
|
||||
timeCreated: 1539810396
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,272 @@
|
||||
//
|
||||
// OvrAvatar Mobile single component expressive face shader
|
||||
// For use on expressive face meshes
|
||||
//
|
||||
// Unity vertex-fragnment implementation
|
||||
// Simplified lighting model recommended for use on mobile supporting one directional light
|
||||
// Surface shader recommended on PC
|
||||
//
|
||||
// Uses transparent queue for fade effects
|
||||
//
|
||||
// Color and appearance of the facial regions controlled via G&B channels in roughness texture
|
||||
// Pupil size controlled by manipulating UV coordinates
|
||||
//
|
||||
// Shader keywords:
|
||||
// - SECONDARY_LIGHT_ON SECONDARY_LIGHT_OFF
|
||||
// Enable SECONDARY_LIGHT_ON for a second "light" comprised of _SecondaryLightDirection and
|
||||
// _SecondaryLightColor This will influence the rim effect providing additional contour to the
|
||||
// avatar
|
||||
//
|
||||
|
||||
Shader "OvrAvatar/Avatar_Mobile_SingleComponentExpressive"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
[NoScaleOffset] _MainTex("Main Texture", 2D) = "white" {}
|
||||
[NoScaleOffset] _NormalMap("Normal Map", 2D) = "bump" {}
|
||||
[NoScaleOffset] _RoughnessMap("Roughness Map", 2D) = "black" {}
|
||||
|
||||
_BaseColor("Color Tint", Color) = (1.0,1.0,1.0,1.0)
|
||||
_Dimmer("Dimmer", Range(0.0,1.0)) = 1.0
|
||||
_Alpha("Alpha", Range(0.0,1.0)) = 1.0
|
||||
|
||||
_DiffuseIntensity("Diffuse Intensity", Range(0.0,1.0)) = 0.3
|
||||
_ReflectionIntensity("Reflection Intensity", Range(0.0,1.0)) = 0.0
|
||||
_RimIntensity("Rim Intensity", Range(0.0,10.0)) = 5.0
|
||||
|
||||
_PupilSize("Pupil Size", Range(-1, 2)) = 0
|
||||
_LipSmoothness("Lip Smoothness", Range(0, 1)) = 0
|
||||
|
||||
_MaskColorIris("Iris Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorLips("Lips Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorBrows("Brows Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorLashes("Lashes Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorSclera("Sclera Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorGums("Gums Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorTeeth("Teeth Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
|
||||
[HideInInspector] _SrcBlend("", Float) = 1
|
||||
[HideInInspector] _DstBlend("", Float) = 0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "LightMode" = "ForwardBase" "IgnoreProjector" = "True"}
|
||||
Pass
|
||||
{
|
||||
Blend [_SrcBlend] [_DstBlend]
|
||||
Cull Back
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.0
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
#pragma multi_compile SECONDARY_LIGHT_OFF SECONDARY_LIGHT_ON
|
||||
#include "UnityCG.cginc"
|
||||
#include "UnityLightingCommon.cginc"
|
||||
|
||||
sampler2D _MainTex;
|
||||
sampler2D _NormalMap;
|
||||
float4 _NormalMap_ST;
|
||||
sampler2D _RoughnessMap;
|
||||
|
||||
half4 _BaseColor;
|
||||
half _Dimmer;
|
||||
half _Alpha;
|
||||
|
||||
half _DiffuseIntensity;
|
||||
half _RimIntensity;
|
||||
half _ReflectionIntensity;
|
||||
|
||||
half3 _SecondaryLightDirection;
|
||||
half4 _SecondaryLightColor;
|
||||
|
||||
half _PupilSize;
|
||||
half _LipSmoothness;
|
||||
|
||||
fixed4 _MaskColorIris;
|
||||
fixed4 _MaskColorSclera;
|
||||
fixed4 _MaskColorBrows;
|
||||
fixed4 _MaskColorLashes;
|
||||
fixed4 _MaskColorLashesEnd;
|
||||
fixed4 _MaskColorLips;
|
||||
fixed4 _MaskColorGums;
|
||||
fixed4 _MaskColorTeeth;
|
||||
|
||||
static const int ONE = 1;
|
||||
static const fixed ALPHA_CLIP_THRESHOLD = 0.7;
|
||||
static const int IRIS_BRIGHTNESS_MODIFIER = 2;
|
||||
static const fixed SCLERA_BRIGHTNESS_MODIFIER = 1.2;
|
||||
static const fixed LIP_SMOOTHNESS_MULTIPLIER = 0.5;
|
||||
static const fixed LIP_SMOOTHNESS_MIN_NDOTL = 0.3;
|
||||
static const fixed BROWS_LASHES_DIFFUSEINTENSITY = ONE - 0.25;
|
||||
static const int COLOR_MULTIPLIER = 255;
|
||||
static const half2 PUPIL_CENTER_UV = half2(0.127, 0.1175);
|
||||
static const half DILATION_ENVELOPE = 0.024;
|
||||
static const half2 EYE_REGION_UV = PUPIL_CENTER_UV + DILATION_ENVELOPE;
|
||||
|
||||
static const int MASK_SLICE_SIZE = 17;
|
||||
static const half MASK_SLICE_THRESHOLD = MASK_SLICE_SIZE * 0.5f;
|
||||
static const int MASK_INDEX_IRIS = 255;
|
||||
static const int MASK_INDEX_SCLERA = 238;
|
||||
static const int MASK_INDEX_LASHES = 221;
|
||||
static const int MASK_INDEX_LIPS = 204;
|
||||
static const int MASK_INDEX_GUMS = 187;
|
||||
static const int MASK_INDEX_TEETH = 170;
|
||||
static const int MASK_INDEX_BROWS = 153;
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex: POSITION;
|
||||
float3 normal: NORMAL;
|
||||
float4 tangent: TANGENT;
|
||||
float4 uv: TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 posWorld: TEXCOORD1;
|
||||
float3 normalDir: TEXCOORD2;
|
||||
float3 tangentDir: TEXCOORD3;
|
||||
float3 bitangentDir: TEXCOORD4;
|
||||
};
|
||||
|
||||
v2f vert(appdata v)
|
||||
{
|
||||
v2f o;
|
||||
|
||||
// Calculate tangents for normal mapping
|
||||
o.normalDir = normalize(UnityObjectToWorldNormal(v.normal));
|
||||
o.tangentDir = normalize(mul(unity_ObjectToWorld, half4(v.tangent.xyz, 0.0)).xyz);
|
||||
o.bitangentDir = normalize(cross(o.normalDir, o.tangentDir) * v.tangent.w);
|
||||
|
||||
o.posWorld = mul(unity_ObjectToWorld, v.vertex);
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
o.uv = v.uv;
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : COLOR
|
||||
{
|
||||
// Pupil size offsets uv coords
|
||||
if (all(i.uv < EYE_REGION_UV))
|
||||
{
|
||||
i.uv -= PUPIL_CENTER_UV;
|
||||
half pupil = saturate(length(i.uv) / DILATION_ENVELOPE);
|
||||
i.uv *= lerp(1.0, pupil, _PupilSize);
|
||||
i.uv += PUPIL_CENTER_UV;
|
||||
}
|
||||
|
||||
// Diffuse texture sample
|
||||
half4 albedoColor = tex2D(_MainTex, i.uv);
|
||||
|
||||
// Process normal map
|
||||
#if (UNITY_VERSION >= 20171)
|
||||
float3 normalMap = UnpackNormal(tex2D(_NormalMap, i.uv));
|
||||
#else
|
||||
float3 normalMap = tex2D(_NormalMap, i.uv) * 2.0 - ONE;
|
||||
#endif
|
||||
float3x3 tangentTransform = float3x3(i.tangentDir, i.bitangentDir, i.normalDir);
|
||||
float3 normalDirection = normalize(mul(normalMap.rgb, tangentTransform));
|
||||
|
||||
// Roughness contains metallic in r, smoothness in a, mask region in b and mask control in g
|
||||
half4 roughnessTex = tex2D(_RoughnessMap, i.uv);
|
||||
|
||||
// Normal/Light/View calculations
|
||||
half3 viewDirection = normalize(_WorldSpaceCameraPos.xyz - i.posWorld.xyz);
|
||||
half VdotN = saturate(dot(viewDirection, normalDirection));
|
||||
half NdotL = saturate(dot(normalDirection, normalize(_WorldSpaceLightPos0.xyz)));
|
||||
|
||||
// Sample the default reflection cubemap using the reflection vector
|
||||
float3 worldReflection = reflect(-viewDirection, normalDirection);
|
||||
half4 skyData = UNITY_SAMPLE_TEXCUBE(unity_SpecCube0, worldReflection);
|
||||
// Decode cubemap data into actual color
|
||||
half3 reflectionColor = DecodeHDR(skyData, unity_SpecCube0_HDR);
|
||||
|
||||
// Color space conversions if we are in linear
|
||||
#ifndef UNITY_COLORSPACE_GAMMA
|
||||
_BaseColor.rgb = LinearToGammaSpace(_BaseColor.rgb);
|
||||
_MaskColorIris.rgb = LinearToGammaSpace(_MaskColorIris);
|
||||
_MaskColorLips.rgb = LinearToGammaSpace(_MaskColorLips.rgb);
|
||||
_MaskColorBrows.rgb = LinearToGammaSpace(_MaskColorBrows.rgb);
|
||||
_MaskColorLashes.rgb = LinearToGammaSpace(_MaskColorLashes.rgb);
|
||||
_MaskColorLashesEnd.rgb = LinearToGammaSpace(_MaskColorLashesEnd.rgb);
|
||||
_MaskColorSclera.rgb = LinearToGammaSpace(_MaskColorSclera.rgb);
|
||||
_MaskColorGums.rgb = LinearToGammaSpace(_MaskColorGums.rgb);
|
||||
_MaskColorTeeth.rgb = LinearToGammaSpace(_MaskColorTeeth.rgb);
|
||||
#endif
|
||||
|
||||
// Calculate color masks
|
||||
half irisScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_IRIS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half lipsScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_LIPS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half browsScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_BROWS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;;
|
||||
half lashesScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_LASHES) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half scleraScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_SCLERA) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half teethScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_TEETH) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;;
|
||||
half gumsScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_GUMS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;;
|
||||
|
||||
half3 maskIris = irisScalar * (_MaskColorIris * IRIS_BRIGHTNESS_MODIFIER - _BaseColor.rgb);
|
||||
half3 maskBrows = browsScalar * (_MaskColorBrows - _BaseColor.rgb);
|
||||
half3 maskLashes = lashesScalar * (_MaskColorLashes - _BaseColor.rgb);
|
||||
half3 maskSclera = scleraScalar * (_MaskColorSclera * SCLERA_BRIGHTNESS_MODIFIER - _BaseColor.rgb);
|
||||
half3 maskTeeth = teethScalar * (_MaskColorTeeth - _BaseColor.rgb);
|
||||
half3 maskGums = gumsScalar * (_MaskColorGums - _BaseColor.rgb);
|
||||
// Lip tint excluded from color mask as it lerps with texture color
|
||||
half3 colorMask = maskIris + maskBrows + maskLashes + maskSclera + maskTeeth + maskGums;
|
||||
|
||||
// Lerp diffuseIntensity with roughness map
|
||||
_DiffuseIntensity = lerp(_DiffuseIntensity, ONE, roughnessTex.a);
|
||||
|
||||
// Brows and lashes modify DiffuseIntensity
|
||||
_DiffuseIntensity *= ONE - (saturate(browsScalar + lashesScalar) * BROWS_LASHES_DIFFUSEINTENSITY);
|
||||
|
||||
// Add in diffuseIntensity and main lighting to base color
|
||||
_BaseColor.rgb += _DiffuseIntensity * NdotL * _LightColor0;
|
||||
|
||||
// Add in color mask to base color
|
||||
_BaseColor.rgb += colorMask;
|
||||
|
||||
// Multiply texture with base color with special case for lips
|
||||
albedoColor.rgb = lerp(albedoColor.rgb * _BaseColor.rgb, _MaskColorLips.rgb, lipsScalar * _MaskColorLips.a);
|
||||
|
||||
// Smoothness multiplier on lip region
|
||||
albedoColor.rgb += lipsScalar * reflectionColor * (_LipSmoothness * LIP_SMOOTHNESS_MULTIPLIER) *
|
||||
lerp(LIP_SMOOTHNESS_MIN_NDOTL, ONE, NdotL);
|
||||
|
||||
// Reflection from cubemap
|
||||
albedoColor.rgb += reflectionColor * (roughnessTex.a * _ReflectionIntensity) * NdotL;
|
||||
|
||||
// Rim term
|
||||
#ifdef SECONDARY_LIGHT_ON
|
||||
// Secondary light proxy (direction and color) passed into the rim term
|
||||
NdotL = saturate(dot(normalDirection, _SecondaryLightDirection));
|
||||
albedoColor.rgb += pow(ONE - VdotN, _RimIntensity) * NdotL * _SecondaryLightColor;
|
||||
#else
|
||||
albedoColor.rgb += pow(ONE - VdotN, _RimIntensity) * NdotL;
|
||||
#endif
|
||||
|
||||
// Global dimmer
|
||||
albedoColor.rgb *= _Dimmer;
|
||||
|
||||
// Convert back to linear color space if we are in linear
|
||||
#if !defined(UNITY_COLORSPACE_GAMMA)
|
||||
albedoColor.rgb = GammaToLinearSpace(albedoColor.rgb);
|
||||
#endif
|
||||
albedoColor.rgb = saturate(albedoColor.rgb);
|
||||
|
||||
// Set alpha, with special case for lashes
|
||||
albedoColor.a = saturate(albedoColor.a * lerp(ONE, _Alpha, ONE - lashesScalar) * _Alpha);
|
||||
|
||||
// Clip fragments in the lash region for clean lash transparency
|
||||
clip(albedoColor.a - lerp(0.0, ALPHA_CLIP_THRESHOLD, lashesScalar));
|
||||
|
||||
// Return clamped final color
|
||||
return albedoColor;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
Fallback "Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2fe0ac0c2373ab143a6f21314b785d7d
|
||||
timeCreated: 1544020283
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,216 @@
|
||||
//
|
||||
// OvrAvatar PC single component expressive face shader
|
||||
// For use on expressive face meshes
|
||||
//
|
||||
// Unity Surface Shader implementation
|
||||
// Mobile vertex/fragment shader is recommended for use on mobile platforms for performance.
|
||||
//
|
||||
// Uses transparent queue for fade effects
|
||||
//
|
||||
// Color and appearance of the facial regions controlled via G&B channels in roughness texture
|
||||
// Pupil size controlled by manipulating UV coordinates
|
||||
//
|
||||
|
||||
Shader "OvrAvatar/Avatar_PC_SingleComponentExpressive"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
[NoScaleOffset] _MainTex("Color (RGB)", 2D) = "white" {}
|
||||
[NoScaleOffset] _NormalMap("Normal Map", 2D) = "bump" {}
|
||||
[NoScaleOffset] _RoughnessMap("Roughness Map", 2D) = "black" {}
|
||||
|
||||
_BaseColor("Color Tint", Color) = (1.0,1.0,1.0,1.0)
|
||||
_Dimmer("Dimmer", Range(0.0,1.0)) = 1.0
|
||||
_Alpha("Alpha", Range(0.0,1.0)) = 1.0
|
||||
|
||||
_DiffuseIntensity("Diffuse Intensity", Range(0.0,1.0)) = 0.3
|
||||
_SmoothnessMultiplier("Smoothness Multiplier", Range(0.0,1.0)) = 1.0
|
||||
_MetallicMultiplier("Metallic Multiplier", Range(0.0,1.0)) = 0.3
|
||||
_RimIntensity("Rim Intensity", Range(0.0,10.0)) = 5.0
|
||||
|
||||
_PupilSize("Pupil Size", Range(-1, 2)) = 0
|
||||
_LipSmoothness("Lip Smoothness", Range(0, 1)) = 0
|
||||
|
||||
_MaskColorIris("Iris Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorLips("Lips Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorBrows("Brows Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorLashes("Lashes Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorSclera("Sclera Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorGums("Gums Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
_MaskColorTeeth("Teeth Color", Color) = (0.0,0.0,0.0,1.0)
|
||||
|
||||
[HideInInspector] _SrcBlend("", Float) = 1
|
||||
[HideInInspector] _DstBlend("", Float) = 0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Blend [_SrcBlend] [_DstBlend]
|
||||
Cull Back
|
||||
CGPROGRAM
|
||||
#pragma surface surf Standard keepalpha fullforwardshadows
|
||||
#pragma target 3.0
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
sampler2D _MainTex;
|
||||
sampler2D _NormalMap;
|
||||
sampler2D _RoughnessMap;
|
||||
|
||||
half4 _BaseColor;
|
||||
half _Dimmer;
|
||||
half _Alpha;
|
||||
|
||||
half _DiffuseIntensity;
|
||||
half _SmoothnessMultiplier;
|
||||
half _SmoothnessMultiplierLips;
|
||||
half _MetallicMultiplier;
|
||||
half _RimIntensity;
|
||||
|
||||
half _PupilSize;
|
||||
half _LipSmoothness;
|
||||
|
||||
fixed4 _MaskColorIris;
|
||||
fixed4 _MaskColorLips;
|
||||
fixed4 _MaskColorBrows;
|
||||
fixed4 _MaskColorLashes;
|
||||
fixed4 _MaskColorLashesEnd;
|
||||
fixed4 _MaskColorSclera;
|
||||
fixed4 _MaskColorGums;
|
||||
fixed4 _MaskColorTeeth;
|
||||
|
||||
static const int ONE = 1;
|
||||
static const fixed ALPHA_CLIP_THRESHOLD = 0.7;
|
||||
static const int IRIS_BRIGHTNESS_MODIFIER = 2;
|
||||
static const fixed SCLERA_BRIGHTNESS_MODIFIER = 1.2;
|
||||
static const fixed LIP_SMOOTHNESS_MULTIPLIER = 0.5;
|
||||
static const fixed LIP_SMOOTHNESS_MIN_NDOTL = 0.3;
|
||||
static const fixed BROWS_LASHES_DIFFUSEINTENSITY = ONE - 0.25;
|
||||
static const int COLOR_MULTIPLIER = 255;
|
||||
static const half2 PUPIL_CENTER_UV = half2(0.127, 0.1175);
|
||||
static const half DILATION_ENVELOPE = 0.024;
|
||||
static const half2 EYE_REGION_UV = PUPIL_CENTER_UV + DILATION_ENVELOPE;
|
||||
|
||||
static const int MASK_SLICE_SIZE = 17;
|
||||
static const half MASK_SLICE_THRESHOLD = MASK_SLICE_SIZE * 0.5f;
|
||||
static const int MASK_INDEX_IRIS = 255;
|
||||
static const int MASK_INDEX_SCLERA = 238;
|
||||
static const int MASK_INDEX_LASHES = 221;
|
||||
static const int MASK_INDEX_LIPS = 204;
|
||||
static const int MASK_INDEX_GUMS = 187;
|
||||
static const int MASK_INDEX_TEETH = 170;
|
||||
static const int MASK_INDEX_BROWS = 153;
|
||||
|
||||
struct Input
|
||||
{
|
||||
float2 uv_MainTex;
|
||||
float2 uv_NormalMap;
|
||||
float2 uv_RoughnessMap;
|
||||
float3 viewDir;
|
||||
float3 worldNormal; INTERNAL_DATA
|
||||
};
|
||||
|
||||
void surf(Input IN, inout SurfaceOutputStandard o)
|
||||
{
|
||||
// Pupil size offsets uv coords
|
||||
if (all(IN.uv_MainTex < EYE_REGION_UV))
|
||||
{
|
||||
IN.uv_MainTex -= PUPIL_CENTER_UV;
|
||||
half pupil = saturate(length(IN.uv_MainTex) / DILATION_ENVELOPE);
|
||||
IN.uv_MainTex *= lerp(ONE, pupil, _PupilSize);
|
||||
IN.uv_MainTex += PUPIL_CENTER_UV;
|
||||
}
|
||||
|
||||
// Diffuse texture sample
|
||||
half4 albedoColor = tex2D(_MainTex, IN.uv_MainTex);
|
||||
|
||||
// Unpack normal map
|
||||
#if (UNITY_VERSION >= 20171)
|
||||
o.Normal = UnpackNormal(tex2D(_NormalMap, IN.uv_MainTex));
|
||||
#else
|
||||
o.Normal = tex2D(_NormalMap, IN.uv_MainTex) * 2.0 - ONE;
|
||||
#endif
|
||||
// Roughness contains metallic in r, smoothness in a, mask region in b and mask control in g
|
||||
half4 roughnessTex = tex2D(_RoughnessMap, IN.uv_MainTex);
|
||||
|
||||
// Normal/Light/View calculations
|
||||
half NdotL = saturate(dot(WorldNormalVector(IN, o.Normal), _WorldSpaceLightPos0.xyz));
|
||||
half VdotN = saturate(dot(normalize(IN.viewDir), o.Normal));
|
||||
|
||||
// Color space conversions if we are in linear
|
||||
#ifndef UNITY_COLORSPACE_GAMMA
|
||||
_BaseColor.rgb = LinearToGammaSpace(_BaseColor.rgb);
|
||||
_MaskColorIris.rgb = LinearToGammaSpace(_MaskColorIris.rgb);
|
||||
_MaskColorLips.rgb = LinearToGammaSpace(_MaskColorLips.rgb);
|
||||
_MaskColorBrows.rgb = LinearToGammaSpace(_MaskColorBrows.rgb);
|
||||
_MaskColorLashes.rgb = LinearToGammaSpace(_MaskColorLashes.rgb);
|
||||
_MaskColorLashesEnd.rgb = LinearToGammaSpace(_MaskColorLashesEnd.rgb);
|
||||
_MaskColorSclera.rgb = LinearToGammaSpace(_MaskColorSclera.rgb);
|
||||
_MaskColorGums.rgb = LinearToGammaSpace(_MaskColorGums.rgb);
|
||||
_MaskColorTeeth.rgb = LinearToGammaSpace(_MaskColorTeeth.rgb);
|
||||
#endif
|
||||
|
||||
// Mask regions and colors
|
||||
half irisScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_IRIS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half lipsScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_LIPS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half browsScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_BROWS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;;
|
||||
half lashesScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_LASHES) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half scleraScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_SCLERA) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
half teethScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_TEETH) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;;
|
||||
half gumsScalar = abs(roughnessTex.b * COLOR_MULTIPLIER - MASK_INDEX_GUMS) <= MASK_SLICE_THRESHOLD ? roughnessTex.g : 0.0f;
|
||||
|
||||
half3 maskIris = irisScalar * (_MaskColorIris.rgb * IRIS_BRIGHTNESS_MODIFIER - _BaseColor.rgb);
|
||||
half3 maskBrows = browsScalar * (_MaskColorBrows.rgb - _BaseColor.rgb);
|
||||
half3 maskLashes = lashesScalar * (_MaskColorLashes.rgb - _BaseColor.rgb);
|
||||
half3 maskSclera = scleraScalar * (_MaskColorSclera.rgb * SCLERA_BRIGHTNESS_MODIFIER - _BaseColor.rgb);
|
||||
half3 maskTeeth = teethScalar * (_MaskColorTeeth.rgb - _BaseColor.rgb);
|
||||
half3 maskGums = gumsScalar * (_MaskColorGums.rgb - _BaseColor.rgb);
|
||||
// Lip tint excluded from color mask as it lerps with texture color
|
||||
half3 colorMask = maskIris + maskBrows + maskLashes + maskSclera + maskTeeth + maskGums;
|
||||
|
||||
// Set smoothness
|
||||
o.Smoothness = roughnessTex.a * _SmoothnessMultiplier;
|
||||
|
||||
// Force no smoothness on gums & teeth
|
||||
o.Smoothness *= ONE - saturate(teethScalar + gumsScalar);
|
||||
|
||||
// Use global smoothness or lip smoothness modifier
|
||||
o.Smoothness += (_LipSmoothness * LIP_SMOOTHNESS_MULTIPLIER) * lipsScalar;
|
||||
|
||||
// Set metallic with global modifier
|
||||
o.Metallic = roughnessTex.r * _MetallicMultiplier;
|
||||
|
||||
// Brows and lashes modify DiffuseIntensity
|
||||
_DiffuseIntensity *= ONE - (saturate(browsScalar + lashesScalar) * BROWS_LASHES_DIFFUSEINTENSITY);
|
||||
|
||||
// Modify base color with DiffuseIntensity * NdotL for lighting gradient
|
||||
_BaseColor.rgb += _DiffuseIntensity * NdotL;
|
||||
|
||||
// Add in color mask
|
||||
_BaseColor.rgb += colorMask;
|
||||
|
||||
// Multiply texture with base color with special case for lips
|
||||
o.Albedo.rgb = lerp(albedoColor.rgb * _BaseColor.rgb, _MaskColorLips.rgb, lipsScalar * _MaskColorLips.a);
|
||||
|
||||
// Rim term
|
||||
o.Albedo += pow(ONE - VdotN, _RimIntensity) * NdotL;
|
||||
|
||||
// Global dimmer
|
||||
o.Albedo *= _Dimmer;
|
||||
|
||||
// Convert back to linear color space if we are in linear
|
||||
#if !defined(UNITY_COLORSPACE_GAMMA)
|
||||
o.Albedo = GammaToLinearSpace(o.Albedo);
|
||||
#endif
|
||||
o.Albedo = saturate(o.Albedo);
|
||||
|
||||
// Set alpha, with special case for lashes
|
||||
o.Alpha = saturate(albedoColor.a * lerp(ONE, _Alpha, ONE - lashesScalar) * _Alpha);
|
||||
|
||||
// Clip fragments in the lash region for clean lash transparency
|
||||
clip(o.Alpha - lerp(0.0, ALPHA_CLIP_THRESHOLD, lashesScalar));
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
Fallback "Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 93b478e926e46654889c1c20f87f253f
|
||||
timeCreated: 1539382777
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Resources/Materials/Version1.5.meta
Normal file
9
Assets/Oculus/Avatar/Resources/Materials/Version1.5.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ced8ef067736a0b468cde573cc63e3ec
|
||||
folderAsset: yes
|
||||
timeCreated: 1525971173
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,207 @@
|
||||
//
|
||||
// OvrAvatar Mobile combined mesh shader
|
||||
// For use on non-expressive face meshes and other components
|
||||
// Texture array approach for rendering a combined mesh avatar
|
||||
// Coupled with OvrAvatarMaterialManager to populate the texture arrays
|
||||
//
|
||||
// Unity vertex-fragnment implementation
|
||||
// Simplified lighting model recommended for use on mobile supporting one directional light
|
||||
// Surface shader recommended on PC
|
||||
//
|
||||
// Uses transparent queue for fade effects
|
||||
//
|
||||
// Simple mouth animation with speech done with vertex perturbation
|
||||
//
|
||||
// Shader keywords:
|
||||
// - SECONDARY_LIGHT_ON SECONDARY_LIGHT_OFF
|
||||
// Enable SECONDARY_LIGHT_ON for a second "light" comprised of _SecondaryLightDirection and
|
||||
// _SecondaryLightColor This will influence the rim effect providing a lit contour to the avatar
|
||||
//
|
||||
|
||||
Shader "OvrAvatar/Avatar_Mobile_CombinedMesh"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
[NoScaleOffset] _MainTex("Main Texture Array", 2DArray) = "white" {}
|
||||
[NoScaleOffset] _NormalMap("Normal Map Array", 2DArray) = "bump" {}
|
||||
[NoScaleOffset] _RoughnessMap("Roughness Map Array", 2DArray) = "black" {}
|
||||
|
||||
_Dimmer("Dimmer", Range(0.0,1.0)) = 1.0
|
||||
_Alpha("Alpha", Range(0.0,1.0)) = 1.0
|
||||
|
||||
// Index into the texture array needs an offset for precision
|
||||
_Slices("Texture Array Slices", int) = 4.97
|
||||
|
||||
_Voice("Voice", Range(0.0,1.0)) = 0.0
|
||||
[HideInInspector] _MouthPosition("Mouth position", Vector) = (0,0,0,1)
|
||||
[HideInInspector] _MouthDirection("Mouth direction", Vector) = (0,0,0,1)
|
||||
[HideInInspector] _MouthEffectDistance("Mouth Effect Distance", Float) = 0.03
|
||||
[HideInInspector] _MouthEffectScale("Mouth Effect Scaler", Float) = 1
|
||||
|
||||
[HideInInspector] _SrcBlend("", Float) = 1
|
||||
[HideInInspector] _DstBlend("", Float) = 0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "LightMode" = "ForwardBase" "IgnoreProjector" = "True"}
|
||||
Pass
|
||||
{
|
||||
Blend [_SrcBlend] [_DstBlend]
|
||||
Cull Back
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.5
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
#pragma multi_compile SECONDARY_LIGHT_OFF SECONDARY_LIGHT_ON
|
||||
#include "UnityCG.cginc"
|
||||
#include "UnityLightingCommon.cginc"
|
||||
|
||||
UNITY_DECLARE_TEX2DARRAY(_MainTex);
|
||||
UNITY_DECLARE_TEX2DARRAY(_NormalMap);
|
||||
float4 _NormalMap_ST;
|
||||
UNITY_DECLARE_TEX2DARRAY(_RoughnessMap);
|
||||
|
||||
int _Slices;
|
||||
|
||||
half _Dimmer;
|
||||
half _Alpha;
|
||||
|
||||
half4 _BaseColor[5];
|
||||
half _DiffuseIntensity[5];
|
||||
half _RimIntensity[5];
|
||||
half _ReflectionIntensity[5];
|
||||
|
||||
half3 _SecondaryLightDirection;
|
||||
half4 _SecondaryLightColor;
|
||||
|
||||
half _Voice;
|
||||
half4 _MouthPosition;
|
||||
half4 _MouthDirection;
|
||||
half _MouthEffectDistance;
|
||||
half _MouthEffectScale;
|
||||
|
||||
static const fixed MOUTH_ZSCALE = 0.5f;
|
||||
static const fixed MOUTH_DROPOFF = 0.01f;
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex: POSITION;
|
||||
float3 normal: NORMAL;
|
||||
float4 tangent: TANGENT;
|
||||
float2 texcoord: TEXCOORD0;
|
||||
float4 vertexColor : COLOR0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float3 uv : TEXCOORD0;
|
||||
float4 posWorld: TEXCOORD1;
|
||||
float3 normalDir: TEXCOORD2;
|
||||
float3 tangentDir: TEXCOORD3;
|
||||
float3 bitangentDir: TEXCOORD4;
|
||||
};
|
||||
|
||||
v2f vert(appdata v)
|
||||
{
|
||||
v2f o;
|
||||
|
||||
// Mouth vertex animation with voice
|
||||
float4 worldVert = mul(unity_ObjectToWorld, v.vertex);
|
||||
float3 delta = _MouthPosition - worldVert;
|
||||
delta.z *= MOUTH_ZSCALE;
|
||||
half dist = length(delta);
|
||||
half scaledMouthDropoff = _MouthEffectScale * MOUTH_DROPOFF;
|
||||
half scaledMouthEffect = _MouthEffectScale * _MouthEffectDistance;
|
||||
half displacement = _Voice * smoothstep(scaledMouthEffect + scaledMouthDropoff, scaledMouthEffect, dist);
|
||||
worldVert.xyz -= _MouthDirection * displacement;
|
||||
v.vertex = mul(unity_WorldToObject, worldVert);
|
||||
|
||||
// Calculate tangents for normal mapping
|
||||
o.normalDir = normalize(UnityObjectToWorldNormal(v.normal));
|
||||
o.tangentDir = normalize(mul(unity_ObjectToWorld, half4(v.tangent.xyz, 0.0)).xyz);
|
||||
o.bitangentDir = normalize(cross(o.normalDir, o.tangentDir) * v.tangent.w);
|
||||
|
||||
o.posWorld = worldVert;
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
o.uv.xy = v.texcoord;
|
||||
o.uv.z = v.vertexColor.x * _Slices;
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : COLOR
|
||||
{
|
||||
// Diffuse texture sample
|
||||
float4 albedoColor = UNITY_SAMPLE_TEX2DARRAY(_MainTex, i.uv);
|
||||
|
||||
// Process normal map
|
||||
float3 transformedNormalUV = i.uv;
|
||||
transformedNormalUV.xy = float2(TRANSFORM_TEX(i.uv.xy, _NormalMap));
|
||||
float3 normalMap = UNITY_SAMPLE_TEX2DARRAY(_NormalMap, transformedNormalUV) * 2.0 - 1.0;
|
||||
float3x3 tangentTransform = float3x3(i.tangentDir, i.bitangentDir, i.normalDir);
|
||||
float3 normalDirection = normalize(mul(normalMap.rgb, tangentTransform));
|
||||
|
||||
// Roughness contains metallic in r, smoothness in a, mask region in b and mask control in g
|
||||
half4 roughnessTex = UNITY_SAMPLE_TEX2DARRAY(_RoughnessMap, i.uv);
|
||||
|
||||
// Normal/Light/View calculations
|
||||
half3 viewDirection = normalize(_WorldSpaceCameraPos.xyz - i.posWorld.xyz);
|
||||
half VdotN = saturate(dot(viewDirection, normalDirection));
|
||||
half NdotL = saturate(dot(normalDirection, _WorldSpaceLightPos0.xyz));
|
||||
|
||||
// Sample the default reflection cubemap using the reflection vector
|
||||
float3 worldReflection = reflect(-viewDirection, normalDirection);
|
||||
half4 skyData = UNITY_SAMPLE_TEXCUBE(unity_SpecCube0, worldReflection);
|
||||
// Decode cubemap data into actual color
|
||||
half3 reflectionColor = DecodeHDR(skyData, unity_SpecCube0_HDR);
|
||||
|
||||
// Get index into texture array
|
||||
int componentIndex = floor(i.uv.z + 0.5);
|
||||
|
||||
// Base color from array
|
||||
float4 baseColor = _BaseColor[componentIndex];
|
||||
|
||||
// Diffuse intensity from array
|
||||
half diffuseIntensity = _DiffuseIntensity[componentIndex];
|
||||
|
||||
// Multiply in base color
|
||||
albedoColor.rgb *= baseColor.rgb;
|
||||
|
||||
// Lerp diffuseIntensity with roughness map
|
||||
diffuseIntensity = lerp(diffuseIntensity, 1.0, roughnessTex.a);
|
||||
|
||||
// Apply main light with a lerp between DiffuseIntensity and 1 based on the roughness
|
||||
albedoColor.rgb += diffuseIntensity * NdotL * _LightColor0;
|
||||
|
||||
// Reflection from cubemap
|
||||
albedoColor.rgb += reflectionColor * (roughnessTex.a * _ReflectionIntensity[componentIndex]) * NdotL;
|
||||
|
||||
// Rim term
|
||||
#ifdef SECONDARY_LIGHT_ON
|
||||
// Secondary light proxy (direction and color) passed into the rim term
|
||||
NdotL = saturate(dot(normalDirection, _SecondaryLightDirection));
|
||||
albedoColor.rgb += pow(1.0 - VdotN, _RimIntensity[componentIndex]) * NdotL * _SecondaryLightColor;
|
||||
#else
|
||||
albedoColor.rgb += pow(1.0 - VdotN, _RimIntensity[componentIndex]) * NdotL;
|
||||
#endif
|
||||
|
||||
// Global dimmer
|
||||
albedoColor.rgb *= _Dimmer;
|
||||
|
||||
#if !defined(UNITY_COLORSPACE_GAMMA)
|
||||
albedoColor.rgb = GammaToLinearSpace(albedoColor.rgb);
|
||||
#endif
|
||||
albedoColor.rgb = saturate(albedoColor.rgb);
|
||||
|
||||
// Set alpha, with special case for lashes
|
||||
albedoColor.a *= _Alpha;
|
||||
|
||||
// Return clamped final color
|
||||
return albedoColor;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37d2b8298f61cd2469465fc36108675d
|
||||
timeCreated: 1526311739
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,135 @@
|
||||
//
|
||||
// OvrAvatar Mobile Single Component Loading shader
|
||||
//
|
||||
// Cut-down single component version of the avatar shader to be used during combined mesh loading
|
||||
//
|
||||
// See OvrAvatarMaterialManager implementation notes
|
||||
//
|
||||
|
||||
Shader "OvrAvatar/Avatar_Mobile_Loader"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
[NoScaleOffset] _NormalMap("Normal Map", 2D) = "bump" {}
|
||||
|
||||
_BaseColor("Color Tint", Color) = (1.0,1.0,1.0,1.0)
|
||||
_Dimmer("Dimmer", Range(0.0,1.0)) = 1.0
|
||||
_LoadingDimmer("Loading Dimmer", Range(0.0,1.0)) = 1.0
|
||||
_Alpha("Alpha", Range(0.0,1.0)) = 1.0
|
||||
|
||||
_DiffuseIntensity("Diffuse Intensity", Range(0.0,1.0)) = 0.3
|
||||
_RimIntensity("Rim Intensity", Range(0.0,10.0)) = 5.0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "LightMode" = "ForwardBase" "IgnoreProjector" = "True"}
|
||||
Pass
|
||||
{
|
||||
Blend One Zero
|
||||
Cull Back
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.0
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
#include "UnityCG.cginc"
|
||||
#include "UnityLightingCommon.cginc"
|
||||
|
||||
sampler2D _NormalMap;
|
||||
float4 _NormalMap_ST;
|
||||
|
||||
float4 _BaseColor;
|
||||
float _Dimmer;
|
||||
float _LoadingDimmer;
|
||||
float _Alpha;
|
||||
|
||||
float _DiffuseIntensity;
|
||||
float _RimIntensity;
|
||||
|
||||
static const fixed MOUTH_ZSCALE = 0.5f;
|
||||
static const fixed MOUTH_DROPOFF = 0.01f;
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex: POSITION;
|
||||
float3 normal: NORMAL;
|
||||
float4 tangent: TANGENT;
|
||||
float4 uv: TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 posWorld: TEXCOORD1;
|
||||
float3 normalDir: TEXCOORD2;
|
||||
float3 tangentDir: TEXCOORD3;
|
||||
float3 bitangentDir: TEXCOORD4;
|
||||
};
|
||||
|
||||
v2f vert(appdata v)
|
||||
{
|
||||
v2f o;
|
||||
|
||||
// Calculate tangents for normal mapping
|
||||
o.normalDir = normalize(UnityObjectToWorldNormal(v.normal));
|
||||
o.tangentDir = normalize(mul(unity_ObjectToWorld, half4(v.tangent.xyz, 0.0)).xyz);
|
||||
o.bitangentDir = normalize(cross(o.normalDir, o.tangentDir) * v.tangent.w);
|
||||
|
||||
o.posWorld = mul(unity_ObjectToWorld, v.vertex);
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
o.uv = v.uv;
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : COLOR
|
||||
{
|
||||
// Process normal map
|
||||
#if (UNITY_VERSION >= 20171)
|
||||
float3 normalMap = UnpackNormal(tex2D(_NormalMap, i.uv));
|
||||
#else
|
||||
float3 normalMap = tex2D(_NormalMap, i.uv) * 2.0 - 1.0;
|
||||
#endif
|
||||
float3x3 tangentTransform = float3x3(i.tangentDir, i.bitangentDir, i.normalDir);
|
||||
float3 normalDirection = normalize(mul(normalMap.rgb, tangentTransform));
|
||||
|
||||
// Normal/Light/View calculations
|
||||
half3 viewDirection = normalize(_WorldSpaceCameraPos.xyz - i.posWorld.xyz);
|
||||
half VdotN = saturate(dot(viewDirection, normalDirection));
|
||||
half NdotL = saturate(dot(normalDirection, _WorldSpaceLightPos0.xyz));
|
||||
|
||||
// Calculate color
|
||||
float4 albedoColor;
|
||||
|
||||
#if !defined(UNITY_COLORSPACE_GAMMA)
|
||||
_BaseColor.rgb = LinearToGammaSpace(_BaseColor.rgb);
|
||||
#endif
|
||||
// Final base color including DiffuseIntensity and NdotL for lighting gradient
|
||||
_BaseColor.rgb += _DiffuseIntensity * NdotL * _LightColor0;
|
||||
|
||||
// No diffuse texture in the loader shader
|
||||
albedoColor = _BaseColor;
|
||||
|
||||
// Rim term
|
||||
albedoColor.rgb += pow(1.0 - VdotN, _RimIntensity) * NdotL;
|
||||
|
||||
// Global dimmer
|
||||
albedoColor.rgb *= lerp(_Dimmer, _LoadingDimmer, step(_LoadingDimmer, _Dimmer));
|
||||
|
||||
// Convert back to linear color space if we are in linear
|
||||
#if !defined(UNITY_COLORSPACE_GAMMA)
|
||||
albedoColor.rgb = GammaToLinearSpace(albedoColor.rgb);
|
||||
#endif
|
||||
albedoColor.rgb = saturate(albedoColor.rgb);
|
||||
|
||||
// Set alpha
|
||||
albedoColor.a *= _Alpha;
|
||||
|
||||
// Return clamped final color
|
||||
return albedoColor;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 822f5e641dc5dd54ca9555b727b3277f
|
||||
timeCreated: 1526311739
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,200 @@
|
||||
//
|
||||
// OvrAvatar Mobile single component shader
|
||||
// For use on non-expressive face meshes and other components
|
||||
//
|
||||
// Unity vertex-fragnment implementation
|
||||
// Simplified lighting model recommended for use on mobile supporting one directional light
|
||||
// Surface shader recommended on PC
|
||||
//
|
||||
// Uses transparent queue for fade effects
|
||||
//
|
||||
// Simple mouth animation with speech done with vertex perturbation
|
||||
//
|
||||
// Shader keywords:
|
||||
// - SECONDARY_LIGHT_ON SECONDARY_LIGHT_OFF
|
||||
// Enable SECONDARY_LIGHT_ON for a second "light" comprised of _SecondaryLightDirection and
|
||||
// _SecondaryLightColor This will influence the rim effect providing a lit contour to the avatar
|
||||
//
|
||||
|
||||
Shader "OvrAvatar/Avatar_Mobile_SingleComponent"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
[NoScaleOffset] _MainTex("Main Texture", 2D) = "white" {}
|
||||
[NoScaleOffset] _NormalMap("Normal Map", 2D) = "bump" {}
|
||||
[NoScaleOffset] _RoughnessMap("Roughness Map", 2D) = "black" {}
|
||||
|
||||
_BaseColor("Color Tint", Color) = (1.0,1.0,1.0,1.0)
|
||||
_Dimmer("Dimmer", Range(0.0,1.0)) = 1.0
|
||||
_Alpha("Alpha", Range(0.0,1.0)) = 1.0
|
||||
|
||||
_DiffuseIntensity("Diffuse Intensity", Range(0.0,1.0)) = 0.3
|
||||
_RimIntensity("Rim Intensity", Range(0.0,10.0)) = 5.0
|
||||
_ReflectionIntensity("Reflection Intensity", Range(0.0,1.0)) = 0.0
|
||||
|
||||
_Voice("Voice", Range(0.0,1.0)) = 0.0
|
||||
[HideInInspector] _MouthPosition("Mouth position", Vector) = (0,0,0,1)
|
||||
[HideInInspector] _MouthDirection("Mouth direction", Vector) = (0,0,0,1)
|
||||
[HideInInspector] _MouthEffectDistance("Mouth Effect Distance", Float) = 0.03
|
||||
[HideInInspector] _MouthEffectScale("Mouth Effect Scaler", Float) = 1
|
||||
|
||||
[HideInInspector] _SrcBlend("", Float) = 1
|
||||
[HideInInspector] _DstBlend("", Float) = 0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "LightMode" = "ForwardBase" "IgnoreProjector" = "True"}
|
||||
Pass
|
||||
{
|
||||
Blend [_SrcBlend] [_DstBlend]
|
||||
Cull Back
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.0
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
#pragma multi_compile SECONDARY_LIGHT_OFF SECONDARY_LIGHT_ON
|
||||
#include "UnityCG.cginc"
|
||||
#include "UnityLightingCommon.cginc"
|
||||
|
||||
sampler2D _MainTex;
|
||||
sampler2D _NormalMap;
|
||||
float4 _NormalMap_ST;
|
||||
sampler2D _RoughnessMap;
|
||||
|
||||
half4 _BaseColor;
|
||||
half _Dimmer;
|
||||
half _Alpha;
|
||||
|
||||
half _DiffuseIntensity;
|
||||
half _RimIntensity;
|
||||
half _ReflectionIntensity;
|
||||
|
||||
half3 _SecondaryLightDirection;
|
||||
half4 _SecondaryLightColor;
|
||||
|
||||
half _Voice;
|
||||
half4 _MouthPosition;
|
||||
half4 _MouthDirection;
|
||||
half _MouthEffectDistance;
|
||||
half _MouthEffectScale;
|
||||
|
||||
static const fixed MOUTH_ZSCALE = 0.5f;
|
||||
static const fixed MOUTH_DROPOFF = 0.01f;
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex: POSITION;
|
||||
float3 normal: NORMAL;
|
||||
float4 tangent: TANGENT;
|
||||
float4 uv: TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 posWorld: TEXCOORD1;
|
||||
float3 normalDir: TEXCOORD2;
|
||||
float3 tangentDir: TEXCOORD3;
|
||||
float3 bitangentDir: TEXCOORD4;
|
||||
};
|
||||
|
||||
v2f vert(appdata v)
|
||||
{
|
||||
v2f o;
|
||||
|
||||
// Mouth vertex animation with voice
|
||||
float4 worldVert = mul(unity_ObjectToWorld, v.vertex);
|
||||
float3 delta = _MouthPosition - worldVert;
|
||||
delta.z *= MOUTH_ZSCALE;
|
||||
half dist = length(delta);
|
||||
half scaledMouthDropoff = _MouthEffectScale * MOUTH_DROPOFF;
|
||||
half scaledMouthEffect = _MouthEffectScale * _MouthEffectDistance;
|
||||
half displacement = _Voice * smoothstep(scaledMouthEffect + scaledMouthDropoff, scaledMouthEffect, dist);
|
||||
worldVert.xyz -= _MouthDirection * displacement;
|
||||
v.vertex = mul(unity_WorldToObject, worldVert);
|
||||
|
||||
// Calculate tangents for normal mapping
|
||||
o.normalDir = normalize(UnityObjectToWorldNormal(v.normal));
|
||||
o.tangentDir = normalize(mul(unity_ObjectToWorld, half4(v.tangent.xyz, 0.0)).xyz);
|
||||
o.bitangentDir = normalize(cross(o.normalDir, o.tangentDir) * v.tangent.w);
|
||||
|
||||
o.posWorld = worldVert;
|
||||
o.pos = UnityObjectToClipPos(v.vertex);
|
||||
o.uv = v.uv;
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : COLOR
|
||||
{
|
||||
// Diffuse texture sample
|
||||
half4 albedoColor = tex2D(_MainTex, i.uv);
|
||||
|
||||
// Process normal map
|
||||
#if (UNITY_VERSION >= 20171)
|
||||
float3 normalMap = UnpackNormal(tex2D(_NormalMap, i.uv));
|
||||
#else
|
||||
float3 normalMap = tex2D(_NormalMap, i.uv) * 2.0 - ONE;
|
||||
#endif
|
||||
float3x3 tangentTransform = float3x3(i.tangentDir, i.bitangentDir, i.normalDir);
|
||||
float3 normalDirection = normalize(mul(normalMap.rgb, tangentTransform));
|
||||
|
||||
// Roughness contains metallic in r, smoothness in a, mask region in b and mask control in g
|
||||
half4 roughnessTex = tex2D(_RoughnessMap, i.uv);
|
||||
|
||||
// Normal/Light/View calculations
|
||||
half3 viewDirection = normalize(_WorldSpaceCameraPos.xyz - i.posWorld.xyz);
|
||||
half VdotN = saturate(dot(viewDirection, normalDirection));
|
||||
half NdotL = saturate(dot(normalDirection, _WorldSpaceLightPos0.xyz));
|
||||
|
||||
// Sample the default reflection cubemap using the reflection vector
|
||||
float3 worldReflection = reflect(-viewDirection, normalDirection);
|
||||
half4 skyData = UNITY_SAMPLE_TEXCUBE(unity_SpecCube0, worldReflection);
|
||||
// Decode cubemap data into actual color
|
||||
half3 reflectionColor = DecodeHDR(skyData, unity_SpecCube0_HDR);
|
||||
|
||||
#ifndef UNITY_COLORSPACE_GAMMA
|
||||
_BaseColor.rgb = LinearToGammaSpace(_BaseColor.rgb);
|
||||
#endif
|
||||
// Multiply in base color
|
||||
albedoColor.rgb *= _BaseColor.rgb;
|
||||
|
||||
// Lerp diffuseIntensity with roughness map
|
||||
_DiffuseIntensity = lerp(_DiffuseIntensity, 1.0, roughnessTex.a);
|
||||
|
||||
// Apply main light with a lerp between DiffuseIntensity and 1 based on the roughness
|
||||
albedoColor.rgb += _DiffuseIntensity * NdotL * _LightColor0;
|
||||
|
||||
// Rim term
|
||||
#ifdef SECONDARY_LIGHT_ON
|
||||
// Secondary light proxy (direction and color) passed into the rim term
|
||||
NdotL = saturate(dot(normalDirection, _SecondaryLightDirection));
|
||||
albedoColor.rgb += pow(1.0 - VdotN, _RimIntensity) * NdotL * _SecondaryLightColor;
|
||||
#else
|
||||
albedoColor.rgb += pow(1.0 - VdotN, _RimIntensity) * NdotL;
|
||||
#endif
|
||||
// Reflection from cubemap
|
||||
albedoColor.rgb += reflectionColor * (roughnessTex.a * _ReflectionIntensity) * NdotL;
|
||||
|
||||
// Global dimmer
|
||||
albedoColor.rgb *= _Dimmer;
|
||||
|
||||
// Convert back to linear color space if we are in linear
|
||||
#if !defined(UNITY_COLORSPACE_GAMMA)
|
||||
albedoColor.rgb = GammaToLinearSpace(albedoColor.rgb);
|
||||
#endif
|
||||
albedoColor.rgb = saturate(albedoColor.rgb);
|
||||
|
||||
// Set alpha
|
||||
albedoColor.a *= _Alpha;
|
||||
|
||||
// Return clamped final color
|
||||
return albedoColor;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
Fallback "Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c26fc51e445dcfd4db09305d861dc11c
|
||||
timeCreated: 1526311739
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,114 @@
|
||||
//
|
||||
// OvrAvatar PC single component shader
|
||||
// For use on non-expressive face meshes and other components
|
||||
//
|
||||
// Unity Surface Shader implementation
|
||||
// Mobile vertex/fragment shader is recommended for use on mobile platforms for performance
|
||||
//
|
||||
// Uses transparent queue for fade effects
|
||||
//
|
||||
|
||||
Shader "OvrAvatar/Avatar_PC_SingleComponent"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
[NoScaleOffset] _MainTex("Color (RGB)", 2D) = "white" {}
|
||||
[NoScaleOffset] _NormalMap("Normal Map", 2D) = "bump" {}
|
||||
[NoScaleOffset] _RoughnessMap("Roughness Map", 2D) = "black" {}
|
||||
|
||||
_BaseColor("Color Tint", Color) = (1.0,1.0,1.0,1.0)
|
||||
_Dimmer("Dimmer", Range(0.0,1.0)) = 1.0
|
||||
_Alpha("Alpha", Range(0.0,1.0)) = 1.0
|
||||
|
||||
_DiffuseIntensity("Diffuse Intensity", Range(0.0,1.0)) = 0.3
|
||||
_SmoothnessMultiplier("Smoothness Multiplier", Range(0.0,1.0)) = 1.0
|
||||
_MetallicMultiplier("Metallic Multiplier", Range(0.0,1.0)) = 1.0
|
||||
_RimIntensity("Rim Intensity", Range(0.0,10.0)) = 5.0
|
||||
|
||||
[HideInInspector] _SrcBlend("", Float) = 1
|
||||
[HideInInspector] _DstBlend("", Float) = 0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Blend [_SrcBlend] [_DstBlend]
|
||||
Cull Back
|
||||
CGPROGRAM
|
||||
#pragma surface surf Standard keepalpha fullforwardshadows
|
||||
#pragma target 3.0
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
sampler2D _MainTex;
|
||||
sampler2D _NormalMap;
|
||||
sampler2D _RoughnessMap;
|
||||
|
||||
half4 _BaseColor;
|
||||
half _Dimmer;
|
||||
half _Alpha;
|
||||
|
||||
half _DiffuseIntensity;
|
||||
half _SmoothnessMultiplier;
|
||||
half _MetallicMultiplier;
|
||||
half _RimIntensity;
|
||||
|
||||
struct Input
|
||||
{
|
||||
float2 uv_MainTex;
|
||||
float2 uv_NormalMap;
|
||||
float2 uv_RoughnessMap;
|
||||
float3 viewDir;
|
||||
float3 worldNormal; INTERNAL_DATA
|
||||
};
|
||||
|
||||
void surf(Input IN, inout SurfaceOutputStandard o)
|
||||
{
|
||||
// Diffuse texture sample
|
||||
half4 albedoColor = tex2D(_MainTex, IN.uv_MainTex);
|
||||
|
||||
// Unpack normal map
|
||||
#if (UNITY_VERSION >= 20171)
|
||||
o.Normal = UnpackNormal(tex2D(_NormalMap, IN.uv_MainTex));
|
||||
#else
|
||||
o.Normal = tex2D(_NormalMap, IN.uv_MainTex) * 2.0 - 1.0;
|
||||
#endif
|
||||
// Roughness contains metallic in r, smoothness in a
|
||||
half4 roughnessTex = tex2D(_RoughnessMap, IN.uv_MainTex);
|
||||
|
||||
// Normal/Light/View calculations
|
||||
half NdotL = saturate(dot(WorldNormalVector(IN, o.Normal), _WorldSpaceLightPos0.xyz));
|
||||
half VdotN = saturate(dot(normalize(IN.viewDir), o.Normal));
|
||||
|
||||
// Color space conversions if we are in linear
|
||||
#ifndef UNITY_COLORSPACE_GAMMA
|
||||
_BaseColor.rgb = LinearToGammaSpace(_BaseColor.rgb);
|
||||
#endif
|
||||
// Set smoothness and metallic
|
||||
o.Smoothness = roughnessTex.a * _SmoothnessMultiplier;
|
||||
o.Metallic = roughnessTex.r * _MetallicMultiplier;
|
||||
|
||||
// Final base color including DiffuseIntensity and NdotL for lighting gradient
|
||||
_BaseColor.rgb += _DiffuseIntensity * NdotL;
|
||||
|
||||
// Multiply texture with base color
|
||||
o.Albedo = albedoColor.rgb * _BaseColor;
|
||||
|
||||
// Rim term
|
||||
o.Albedo += pow(1.0 - VdotN, _RimIntensity) * NdotL;
|
||||
|
||||
// Global dimmer
|
||||
o.Albedo *= _Dimmer;
|
||||
|
||||
// Convert back to linear color space if we are in linear
|
||||
#if !defined(UNITY_COLORSPACE_GAMMA)
|
||||
o.Albedo = GammaToLinearSpace(o.Albedo);
|
||||
#endif
|
||||
o.Albedo = saturate(o.Albedo);
|
||||
|
||||
// Global alpha
|
||||
o.Alpha = albedoColor.a * _Alpha;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
Fallback "Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 36b8b481cf607814a8cec318f0148d63
|
||||
timeCreated: 1525971189
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples.meta
Normal file
9
Assets/Oculus/Avatar/Samples.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b18c7ae976868a4499e2dbd7f60e92a4
|
||||
folderAsset: yes
|
||||
timeCreated: 1467313717
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Oculus/Avatar/Samples/AvatarGallery.meta
Normal file
10
Assets/Oculus/Avatar/Samples/AvatarGallery.meta
Normal file
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 35f0ba21582517e45900137034e130af
|
||||
folderAsset: yes
|
||||
timeCreated: 1532639215
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1197
Assets/Oculus/Avatar/Samples/AvatarGallery/AvatarGallery.unity
Normal file
1197
Assets/Oculus/Avatar/Samples/AvatarGallery/AvatarGallery.unity
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7090d8e061d50cf459005277eef3e505
|
||||
timeCreated: 1532639215
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Oculus/Avatar/Samples/AvatarGallery/Scripts.meta
Normal file
10
Assets/Oculus/Avatar/Samples/AvatarGallery/Scripts.meta
Normal file
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 401f2fc661aa6af4da8c35c4f60718f8
|
||||
folderAsset: yes
|
||||
timeCreated: 1532729557
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,78 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Oculus.Avatar;
|
||||
|
||||
public class OvrAvatarTestDriver : OvrAvatarDriver {
|
||||
|
||||
private Vector3 headPos = new Vector3(0f, 1.6f, 0f);
|
||||
private Quaternion headRot = Quaternion.identity;
|
||||
|
||||
ControllerPose GetMalibuControllerPose(OVRInput.Controller controller)
|
||||
{
|
||||
ovrAvatarButton buttons = 0;
|
||||
if (OVRInput.Get(OVRInput.Button.PrimaryIndexTrigger, controller)) buttons |= ovrAvatarButton.One;
|
||||
|
||||
return new ControllerPose
|
||||
{
|
||||
buttons = buttons,
|
||||
touches = OVRInput.Get(OVRInput.Touch.PrimaryTouchpad) ? ovrAvatarTouch.One : 0,
|
||||
joystickPosition = OVRInput.Get(OVRInput.Axis2D.PrimaryTouchpad, controller),
|
||||
indexTrigger = 0f,
|
||||
handTrigger = 0f,
|
||||
isActive = (OVRInput.GetActiveController() & controller) != 0,
|
||||
};
|
||||
}
|
||||
|
||||
float voiceAmplitude = 0.0f;
|
||||
ControllerPose GetControllerPose(OVRInput.Controller controller)
|
||||
{
|
||||
ovrAvatarButton buttons = 0;
|
||||
if (OVRInput.Get(OVRInput.Button.One, controller)) buttons |= ovrAvatarButton.One;
|
||||
if (OVRInput.Get(OVRInput.Button.Two, controller)) buttons |= ovrAvatarButton.Two;
|
||||
if (OVRInput.Get(OVRInput.Button.Start, controller)) buttons |= ovrAvatarButton.Three;
|
||||
if (OVRInput.Get(OVRInput.Button.PrimaryThumbstick, controller)) buttons |= ovrAvatarButton.Joystick;
|
||||
|
||||
ovrAvatarTouch touches = 0;
|
||||
if (OVRInput.Get(OVRInput.Touch.One, controller)) touches |= ovrAvatarTouch.One;
|
||||
if (OVRInput.Get(OVRInput.Touch.Two, controller)) touches |= ovrAvatarTouch.Two;
|
||||
if (OVRInput.Get(OVRInput.Touch.PrimaryThumbstick, controller)) touches |= ovrAvatarTouch.Joystick;
|
||||
if (OVRInput.Get(OVRInput.Touch.PrimaryThumbRest, controller)) touches |= ovrAvatarTouch.ThumbRest;
|
||||
if (OVRInput.Get(OVRInput.Touch.PrimaryIndexTrigger, controller)) touches |= ovrAvatarTouch.Index;
|
||||
if (!OVRInput.Get(OVRInput.NearTouch.PrimaryIndexTrigger, controller)) touches |= ovrAvatarTouch.Pointing;
|
||||
if (!OVRInput.Get(OVRInput.NearTouch.PrimaryThumbButtons, controller)) touches |= ovrAvatarTouch.ThumbUp;
|
||||
|
||||
return new ControllerPose
|
||||
{
|
||||
buttons = buttons,
|
||||
touches = touches,
|
||||
joystickPosition = OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick, controller),
|
||||
indexTrigger = OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger, controller),
|
||||
handTrigger = OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger, controller),
|
||||
isActive = (OVRInput.GetActiveController() & controller) != 0,
|
||||
};
|
||||
}
|
||||
|
||||
private void CalculateCurrentPose()
|
||||
{
|
||||
CurrentPose = new PoseFrame
|
||||
{
|
||||
voiceAmplitude = voiceAmplitude,
|
||||
headPosition = headPos,
|
||||
headRotation = headRot,
|
||||
handLeftPosition = OVRInput.GetLocalControllerPosition(OVRInput.Controller.LTouch),
|
||||
handLeftRotation = OVRInput.GetLocalControllerRotation(OVRInput.Controller.LTouch),
|
||||
handRightPosition = OVRInput.GetLocalControllerPosition(OVRInput.Controller.RTouch),
|
||||
handRightRotation = OVRInput.GetLocalControllerRotation(OVRInput.Controller.RTouch),
|
||||
controllerLeftPose = GetControllerPose(OVRInput.Controller.LTouch),
|
||||
controllerRightPose = GetControllerPose(OVRInput.Controller.RTouch),
|
||||
};
|
||||
}
|
||||
|
||||
public override void UpdateTransforms(IntPtr sdkAvatar)
|
||||
{
|
||||
CalculateCurrentPose();
|
||||
UpdateTransformsFromPose(sdkAvatar);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 151f6ca5e4e605c4ca65b3199bfc3377
|
||||
timeCreated: 1532699599
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/Controllers.meta
Normal file
9
Assets/Oculus/Avatar/Samples/Controllers.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2856d681f3672e641a2e57df9676108c
|
||||
folderAsset: yes
|
||||
timeCreated: 1468456735
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1194
Assets/Oculus/Avatar/Samples/Controllers/Controllers.unity
Normal file
1194
Assets/Oculus/Avatar/Samples/Controllers/Controllers.unity
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a83dd010542d2744bf59af99b4bc47c
|
||||
timeCreated: 1468457372
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
7
Assets/Oculus/Avatar/Samples/CrossPlatform.meta
Normal file
7
Assets/Oculus/Avatar/Samples/CrossPlatform.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ad3077b9e8d4c4b4ea6177561faccbd2
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1138
Assets/Oculus/Avatar/Samples/CrossPlatform/CrossPlatform.unity
Normal file
1138
Assets/Oculus/Avatar/Samples/CrossPlatform/CrossPlatform.unity
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a95993f3779c6f842830a1f7ad81a478
|
||||
timeCreated: 1539938343
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
20
Assets/Oculus/Avatar/Samples/CrossPlatform/Readme.txt
Normal file
20
Assets/Oculus/Avatar/Samples/CrossPlatform/Readme.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
This CrossPlatform sample scene demonstrates how Oculus Avatars can now be used on non-Oculus devices.
|
||||
|
||||
For more detailed information on this sample and cross-platform Avatar functionality, including details on customization and redistribution requirements, see the topic on this sample at: https://developer.oculus.com/documentation/avatarsdk/latest/concepts/avatars-unity-crossplat-sample/
|
||||
|
||||
Setup instructions:
|
||||
1 - Install Steam and SteamVR
|
||||
2 - Create a new Unity Project
|
||||
3 - Import the Oculus Integration from the Unity Asset Store.
|
||||
4 - Open the CrossPlatform scene (in Assets/Oculus/Avatar/Samples/CrossPlatform)
|
||||
5 - Use the Oculus Dashboard (https://dashboard.oculus.com/) to create a placeholder Rift app and copy the App ID
|
||||
6 - Paste the App ID in Unity under Oculus Avatars > Edit Configuration > Oculus Rift App Id
|
||||
7 - Enable OpenVR:
|
||||
Open PlayerSettings in the Inspector tab (from menu bar, Edit > Project Settings > Player)
|
||||
Under Virtual Reality SDKs, add OpenVR if it's not there already
|
||||
Remove Oculus (or drag it below OpenVR) so that OpenVR is used when the scene is played.
|
||||
8 - Click Play
|
||||
|
||||
The scene should play using SteamVR rather than the Oculus platform, and you'll see 12 different Oculus Avatars in front of you.
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5ec1b7b12e3fb3e4b99590edb47d298f
|
||||
timeCreated: 1539938373
|
||||
licenseType: Store
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/GripPoses.meta
Normal file
9
Assets/Oculus/Avatar/Samples/GripPoses.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b8c4b9475079cf040953bf344ff4e44f
|
||||
folderAsset: yes
|
||||
timeCreated: 1477955918
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
2756
Assets/Oculus/Avatar/Samples/GripPoses/GripPoses.unity
Normal file
2756
Assets/Oculus/Avatar/Samples/GripPoses/GripPoses.unity
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 697c6df5e1eddad40b634d311b0bb2e5
|
||||
timeCreated: 1477966491
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/GripPoses/Scripts.meta
Normal file
9
Assets/Oculus/Avatar/Samples/GripPoses/Scripts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 85678699140c6c3429a87f4d679b1a17
|
||||
folderAsset: yes
|
||||
timeCreated: 1477957292
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,31 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
public class PoseEditHelper : MonoBehaviour {
|
||||
|
||||
public Transform poseRoot;
|
||||
|
||||
void OnDrawGizmos()
|
||||
{
|
||||
if (poseRoot != null)
|
||||
{
|
||||
DrawJoints(poseRoot);
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawJoints(Transform joint)
|
||||
{
|
||||
Gizmos.DrawWireSphere(joint.position, 0.005f);
|
||||
for (int i = 0; i < joint.childCount; ++i)
|
||||
{
|
||||
Transform child = joint.GetChild(i);
|
||||
if (child.name.EndsWith("_grip") || child.name.EndsWith("hand_ignore"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Gizmos.DrawLine(joint.position, child.position);
|
||||
DrawJoints(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6bc5b4ba964e02b4ea773b2aaca7dc67
|
||||
timeCreated: 1477957304
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/LocalAvatar.meta
Normal file
9
Assets/Oculus/Avatar/Samples/LocalAvatar.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2883b756c033a864ca988b3f522f3339
|
||||
folderAsset: yes
|
||||
timeCreated: 1467313725
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
671
Assets/Oculus/Avatar/Samples/LocalAvatar/LocalAvatar.unity
Normal file
671
Assets/Oculus/Avatar/Samples/LocalAvatar/LocalAvatar.unity
Normal file
@@ -0,0 +1,671 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 8
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.1838691, g: 0.22901776, b: 0.30311173, a: 1}
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 11
|
||||
m_GIWorkflowMode: 0
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 9
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 0
|
||||
m_CompAOExponentDirect: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 1
|
||||
m_BakeBackend: 0
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 500
|
||||
m_PVRBounces: 2
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ShowResolutionOverlay: 1
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_UseShadowmask: 1
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
accuratePlacement: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1001 &30431259
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1001 &479796876
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1001 &728245522
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.6
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: -0.00000016292068
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 158226, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: Little_LocalAvatar
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11437430, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: ShowThirdPerson
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.25
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.25
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.25
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11437430, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: ShowFirstPerson
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &855176794
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 855176795}
|
||||
m_Layer: 0
|
||||
m_Name: Table
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &855176795
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 855176794}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0.5}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 1517158095}
|
||||
- {fileID: 1903359377}
|
||||
m_Father: {fileID: 999742310}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &957641525
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 957641529}
|
||||
- component: {fileID: 957641528}
|
||||
- component: {fileID: 957641526}
|
||||
m_Layer: 0
|
||||
m_Name: Floor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 4294967295
|
||||
m_IsActive: 1
|
||||
--- !u!23 &957641526
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 957641525}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &957641528
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 957641525}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &957641529
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 957641525}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: -0.025, z: 0}
|
||||
m_LocalScale: {x: 2, y: 0.05, z: 2}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 999742310}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &999742309
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 999742310}
|
||||
m_Layer: 0
|
||||
m_Name: SceneGeometry
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &999742310
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 999742309}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 957641529}
|
||||
- {fileID: 855176795}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &1239677853
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11400010, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: usePerEyeCameras
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 20000012175207052, guid: 126d619cf4daa52469682f85c1378b4a,
|
||||
type: 2}
|
||||
propertyPath: m_Enabled
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2037080, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_Enabled
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 20000010189485334, guid: 126d619cf4daa52469682f85c1378b4a,
|
||||
type: 2}
|
||||
propertyPath: m_Enabled
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11400000, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: _trackingOriginType
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11400000, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: resetTrackerOnLoad
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &1517158094
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 1517158095}
|
||||
- component: {fileID: 1517158097}
|
||||
- component: {fileID: 1517158096}
|
||||
m_Layer: 0
|
||||
m_Name: Top
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1517158095
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1517158094}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0.6, z: 0}
|
||||
m_LocalScale: {x: 0.5, y: 0.02, z: 0.5}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 855176795}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!23 &1517158096
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1517158094}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &1517158097
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1517158094}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!1 &1658970730
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 1658970732}
|
||||
- component: {fileID: 1658970731}
|
||||
m_Layer: 0
|
||||
m_Name: Directional Light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &1658970731
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1658970730}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 8
|
||||
m_Type: 1
|
||||
m_Color: {r: 0.5955882, g: 0.5955882, b: 0.5955882, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 2
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_Lightmapping: 4
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
m_UseColorTemperature: 0
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
--- !u!4 &1658970732
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1658970730}
|
||||
m_LocalRotation: {x: 0.25000006, y: 0.25000006, z: -0.06698733, w: 0.9330127}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 30, y: 30, z: 0}
|
||||
--- !u!1 &1903359376
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 1903359377}
|
||||
- component: {fileID: 1903359379}
|
||||
- component: {fileID: 1903359378}
|
||||
m_Layer: 0
|
||||
m_Name: Pillar
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1903359377
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1903359376}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0.3, z: 0}
|
||||
m_LocalScale: {x: 0.05, y: 0.6, z: 0.05}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 855176795}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!23 &1903359378
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1903359376}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &1903359379
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1903359376}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c65ef87480e70eb43931036c9c66d08d
|
||||
timeCreated: 1466730185
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/LocalAvatar/Prefabs.meta
Normal file
9
Assets/Oculus/Avatar/Samples/LocalAvatar/Prefabs.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6ab4fae765a78ff4891d22240708e124
|
||||
folderAsset: yes
|
||||
timeCreated: 1543419231
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,97 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1862311091348296}
|
||||
m_IsPrefabParent: 1
|
||||
--- !u!1 &1862311091348296
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4698346712314376}
|
||||
- component: {fileID: 33311121837070838}
|
||||
- component: {fileID: 23625037719976976}
|
||||
- component: {fileID: 114267226149696678}
|
||||
m_Layer: 0
|
||||
m_Name: GazeTarget
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4698346712314376
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1862311091348296}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.05, y: 0.05, z: 0.05}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!23 &23625037719976976
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1862311091348296}
|
||||
m_Enabled: 0
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &33311121837070838
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1862311091348296}
|
||||
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!114 &114267226149696678
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1862311091348296}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5bfcd054df64e334ba2f191666f3fe92, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Type: 2
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 38d5bb078fd83c9428125e487bef4a1a
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,58 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1886941009443022}
|
||||
m_IsPrefabParent: 1
|
||||
--- !u!1 &1886941009443022
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4372900245187776}
|
||||
- component: {fileID: 114195579247105032}
|
||||
m_Layer: 0
|
||||
m_Name: GazeTargetSpawner
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4372900245187776
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1886941009443022}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &114195579247105032
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1886941009443022}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3864ef0c62744294899fddc93640130f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
GazeTargetPrefab: {fileID: 1862311091348296, guid: 38d5bb078fd83c9428125e487bef4a1a,
|
||||
type: 2}
|
||||
NumberOfDummyTargets: 100
|
||||
RadiusMultiplier: 3
|
||||
isVisible: 0
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 93c8b27ca530be741a2ea419a122d453
|
||||
timeCreated: 1543419517
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
mainObjectFileID: 100100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Oculus/Avatar/Samples/LocalAvatar/Scripts.meta
Normal file
8
Assets/Oculus/Avatar/Samples/LocalAvatar/Scripts.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1391b4a6e544aab4bb1d8cf41ef93d8e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,48 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class GazeTargetSpawner : MonoBehaviour
|
||||
{
|
||||
public GameObject GazeTargetPrefab;
|
||||
public int NumberOfDummyTargets = 100;
|
||||
public int RadiusMultiplier = 3;
|
||||
[SerializeField]
|
||||
private bool isVisible;
|
||||
public bool IsVisible
|
||||
{
|
||||
get
|
||||
{
|
||||
return isVisible;
|
||||
}
|
||||
set
|
||||
{
|
||||
isVisible = value;
|
||||
GazeTarget[] dummyGazeTargets = gameObject.GetComponentsInChildren<GazeTarget>();
|
||||
for (int i = 0; i < dummyGazeTargets.Length; ++i)
|
||||
{
|
||||
MeshRenderer dummyMesh = dummyGazeTargets[i].GetComponent<MeshRenderer>();
|
||||
if (dummyMesh != null)
|
||||
{
|
||||
dummyMesh.enabled = isVisible;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Start ()
|
||||
{
|
||||
for (int i = 0; i < NumberOfDummyTargets; ++i)
|
||||
{
|
||||
GameObject target = Instantiate(GazeTargetPrefab, transform);
|
||||
target.name += "_" + i;
|
||||
target.transform.localPosition = Random.insideUnitSphere * RadiusMultiplier;
|
||||
target.transform.rotation = Quaternion.identity;
|
||||
target.GetComponent<MeshRenderer>().enabled = IsVisible;
|
||||
}
|
||||
}
|
||||
|
||||
void OnValidate()
|
||||
{
|
||||
// Run through OnValidate to pick up changes from inspector
|
||||
IsVisible = isVisible;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3864ef0c62744294899fddc93640130f
|
||||
timeCreated: 1543418975
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/RemoteLoopback.meta
Normal file
9
Assets/Oculus/Avatar/Samples/RemoteLoopback.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f26892c9951b6f54c82a5f1bf34e8d8a
|
||||
folderAsset: yes
|
||||
timeCreated: 1468000039
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
513
Assets/Oculus/Avatar/Samples/RemoteLoopback/RemoteLoopback.unity
Normal file
513
Assets/Oculus/Avatar/Samples/RemoteLoopback/RemoteLoopback.unity
Normal file
@@ -0,0 +1,513 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 8
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.18386917, g: 0.2290177, b: 0.30311212, a: 1}
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 11
|
||||
m_GIWorkflowMode: 0
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 9
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 0
|
||||
m_CompAOExponentDirect: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 1
|
||||
m_BakeBackend: 0
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 500
|
||||
m_PVRBounces: 2
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ShowResolutionOverlay: 1
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_UseShadowmask: 1
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
accuratePlacement: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1001 &672535801
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 496618, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 496618, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 496618, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 496618, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 496618, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 496618, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 496618, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: -0.00000016292068
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 496618, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &957641525
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 957641529}
|
||||
- component: {fileID: 957641528}
|
||||
- component: {fileID: 957641527}
|
||||
- component: {fileID: 957641526}
|
||||
m_Layer: 0
|
||||
m_Name: Floor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 4294967295
|
||||
m_IsActive: 1
|
||||
--- !u!23 &957641526
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 957641525}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!65 &957641527
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 957641525}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1, y: 1, z: 1}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &957641528
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 957641525}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &957641529
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 957641525}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: -0.5, z: 0}
|
||||
m_LocalScale: {x: 10, y: 1, z: 10}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &1233912640
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 1.6
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 6
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4372900245187776, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 114195579247105032, guid: 93c8b27ca530be741a2ea419a122d453,
|
||||
type: 2}
|
||||
propertyPath: NumberOfDummyTargets
|
||||
value: 10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 114195579247105032, guid: 93c8b27ca530be741a2ea419a122d453,
|
||||
type: 2}
|
||||
propertyPath: RadiusMultiplier
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 93c8b27ca530be741a2ea419a122d453, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &1350565873
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 1350565874}
|
||||
- component: {fileID: 1350565875}
|
||||
m_Layer: 0
|
||||
m_Name: RemoteLoopbackManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1350565874
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1350565873}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0.57821083, y: 1.1191388, z: 0.57511383}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1350565875
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1350565873}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1675d6690178fd0459887aed66409f70, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
LocalAvatar: {fileID: 1997500170}
|
||||
LoopbackAvatar: {fileID: 1966604974}
|
||||
LatencySettings:
|
||||
FakeLatencyMax: 0.25
|
||||
FakeLatencyMin: 0.002
|
||||
LatencyWeight: 0.25
|
||||
MaxSamples: 4
|
||||
--- !u!1001 &1473758005
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400004, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11400000, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: resetTrackerOnLoad
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11400000, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
propertyPath: _trackingOriginType
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 126d619cf4daa52469682f85c1378b4a, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &1658970730
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 1658970732}
|
||||
- component: {fileID: 1658970731}
|
||||
m_Layer: 0
|
||||
m_Name: Directional Light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &1658970731
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1658970730}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 8
|
||||
m_Type: 1
|
||||
m_Color: {r: 0.5955882, g: 0.5955882, b: 0.5955882, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 2
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_Lightmapping: 4
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
m_UseColorTemperature: 0
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
--- !u!4 &1658970732
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1658970730}
|
||||
m_LocalRotation: {x: 0.25000006, y: -0.24999997, z: 0.066987306, w: 0.9330127}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 30, y: -30, z: 0}
|
||||
--- !u!1001 &1742914067
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 463470, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!114 &1966604974 stripped
|
||||
MonoBehaviour:
|
||||
m_PrefabParentObject: {fileID: 11464902, guid: 90bf33f968e6bb44ea0208fc82c90a44,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 672535801}
|
||||
m_Script: {fileID: 11500000, guid: 00f3402a2ea5bff4880c0313515240cd, type: 3}
|
||||
--- !u!114 &1997500170 stripped
|
||||
MonoBehaviour:
|
||||
m_PrefabParentObject: {fileID: 11437430, guid: 84c8b8609f9bb434eaf5248f17ff1293,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1742914067}
|
||||
m_Script: {fileID: 11500000, guid: 00f3402a2ea5bff4880c0313515240cd, type: 3}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aa35ff5ba76fb384d839383c84209da9
|
||||
timeCreated: 1468000130
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/RemoteLoopback/Scripts.meta
Normal file
9
Assets/Oculus/Avatar/Samples/RemoteLoopback/Scripts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: edf34aa3892fd9f4eb0795663f7e3ffc
|
||||
folderAsset: yes
|
||||
timeCreated: 1468000607
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,155 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Oculus.Avatar;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class RemoteLoopbackManager : MonoBehaviour
|
||||
{
|
||||
class PacketLatencyPair
|
||||
{
|
||||
public byte[] PacketData;
|
||||
public float FakeLatency;
|
||||
};
|
||||
|
||||
public OvrAvatar LocalAvatar;
|
||||
public OvrAvatar LoopbackAvatar;
|
||||
|
||||
[System.Serializable]
|
||||
public class SimulatedLatencySettings
|
||||
{
|
||||
[Range(0.0f, 0.5f)]
|
||||
public float FakeLatencyMax = 0.25f; //250 ms max latency
|
||||
|
||||
[Range(0.0f, 0.5f)]
|
||||
public float FakeLatencyMin = 0.002f; //2ms min latency
|
||||
|
||||
[Range(0.0f, 1.0f)]
|
||||
public float LatencyWeight = 0.25f; // How much the latest sample impacts the current latency
|
||||
|
||||
[Range(0,10)]
|
||||
public int MaxSamples = 4; //How many samples in our window
|
||||
|
||||
internal float AverageWindow = 0f;
|
||||
internal float LatencySum = 0f;
|
||||
internal LinkedList<float> LatencyValues = new LinkedList<float>();
|
||||
|
||||
public float NextValue()
|
||||
{
|
||||
AverageWindow = LatencySum / (float)LatencyValues.Count;
|
||||
float RandomLatency = UnityEngine.Random.Range(FakeLatencyMin, FakeLatencyMax);
|
||||
float FakeLatency = AverageWindow * (1f - LatencyWeight) + LatencyWeight * RandomLatency;
|
||||
|
||||
if (LatencyValues.Count >= MaxSamples)
|
||||
{
|
||||
LatencySum -= LatencyValues.First.Value;
|
||||
LatencyValues.RemoveFirst();
|
||||
}
|
||||
|
||||
LatencySum += FakeLatency;
|
||||
LatencyValues.AddLast(FakeLatency);
|
||||
|
||||
return FakeLatency;
|
||||
}
|
||||
};
|
||||
|
||||
public SimulatedLatencySettings LatencySettings = new SimulatedLatencySettings();
|
||||
|
||||
private int PacketSequence = 0;
|
||||
|
||||
LinkedList<PacketLatencyPair> packetQueue = new LinkedList<PacketLatencyPair>();
|
||||
|
||||
void Start()
|
||||
{
|
||||
LocalAvatar.RecordPackets = true;
|
||||
LocalAvatar.PacketRecorded += OnLocalAvatarPacketRecorded;
|
||||
float FirstValue = UnityEngine.Random.Range(LatencySettings.FakeLatencyMin, LatencySettings.FakeLatencyMax);
|
||||
LatencySettings.LatencyValues.AddFirst(FirstValue);
|
||||
LatencySettings.LatencySum += FirstValue;
|
||||
}
|
||||
|
||||
void OnLocalAvatarPacketRecorded(object sender, OvrAvatar.PacketEventArgs args)
|
||||
{
|
||||
using (MemoryStream outputStream = new MemoryStream())
|
||||
{
|
||||
BinaryWriter writer = new BinaryWriter(outputStream);
|
||||
|
||||
if (LocalAvatar.UseSDKPackets)
|
||||
{
|
||||
var size = CAPI.ovrAvatarPacket_GetSize(args.Packet.ovrNativePacket);
|
||||
byte[] data = new byte[size];
|
||||
CAPI.ovrAvatarPacket_Write(args.Packet.ovrNativePacket, size, data);
|
||||
|
||||
writer.Write(PacketSequence++);
|
||||
writer.Write(size);
|
||||
writer.Write(data);
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.Write(PacketSequence++);
|
||||
args.Packet.Write(outputStream);
|
||||
}
|
||||
|
||||
SendPacketData(outputStream.ToArray());
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (packetQueue.Count > 0)
|
||||
{
|
||||
List<PacketLatencyPair> deadList = new List<PacketLatencyPair>();
|
||||
foreach (var packet in packetQueue)
|
||||
{
|
||||
packet.FakeLatency -= Time.deltaTime;
|
||||
|
||||
if (packet.FakeLatency < 0f)
|
||||
{
|
||||
ReceivePacketData(packet.PacketData);
|
||||
deadList.Add(packet);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var packet in deadList)
|
||||
{
|
||||
packetQueue.Remove(packet);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SendPacketData(byte[] data)
|
||||
{
|
||||
PacketLatencyPair PacketPair = new PacketLatencyPair();
|
||||
PacketPair.PacketData = data;
|
||||
PacketPair.FakeLatency = LatencySettings.NextValue();
|
||||
|
||||
packetQueue.AddLast(PacketPair);
|
||||
}
|
||||
|
||||
void ReceivePacketData(byte[] data)
|
||||
{
|
||||
using (MemoryStream inputStream = new MemoryStream(data))
|
||||
{
|
||||
BinaryReader reader = new BinaryReader(inputStream);
|
||||
int sequence = reader.ReadInt32();
|
||||
|
||||
OvrAvatarPacket avatarPacket;
|
||||
if (LoopbackAvatar.UseSDKPackets)
|
||||
{
|
||||
int size = reader.ReadInt32();
|
||||
byte[] sdkData = reader.ReadBytes(size);
|
||||
|
||||
IntPtr packet = CAPI.ovrAvatarPacket_Read((UInt32)data.Length, sdkData);
|
||||
avatarPacket = new OvrAvatarPacket { ovrNativePacket = packet };
|
||||
}
|
||||
else
|
||||
{
|
||||
avatarPacket = OvrAvatarPacket.Read(inputStream);
|
||||
}
|
||||
|
||||
LoopbackAvatar.GetComponent<OvrAvatarRemoteDriver>().QueuePacket(sequence, avatarPacket);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1675d6690178fd0459887aed66409f70
|
||||
timeCreated: 1468000639
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/SocialStarter.meta
Normal file
9
Assets/Oculus/Avatar/Samples/SocialStarter.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f853d92f5be267947bcbbc142982b463
|
||||
folderAsset: yes
|
||||
timeCreated: 1517509658
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/SocialStarter/Assets.meta
Normal file
9
Assets/Oculus/Avatar/Samples/SocialStarter/Assets.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 95e9e8192781ad94bad26b153c265787
|
||||
folderAsset: yes
|
||||
timeCreated: 1517509663
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,783 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 8
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 11
|
||||
m_GIWorkflowMode: 0
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 9
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 256
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 1
|
||||
m_BakeBackend: 0
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 500
|
||||
m_PVRBounces: 2
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ShowResolutionOverlay: 1
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_UseShadowmask: 1
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
accuratePlacement: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &8653650
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 8653655}
|
||||
- component: {fileID: 8653654}
|
||||
- component: {fileID: 8653653}
|
||||
- component: {fileID: 8653652}
|
||||
- component: {fileID: 8653651}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &8653651
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 8653650}
|
||||
m_Enabled: 0
|
||||
--- !u!124 &8653652
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 8653650}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &8653653
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 8653650}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &8653654
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 8653650}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &8653655
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 8653650}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &206856059
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 206856064}
|
||||
- component: {fileID: 206856063}
|
||||
- component: {fileID: 206856062}
|
||||
- component: {fileID: 206856061}
|
||||
- component: {fileID: 206856060}
|
||||
m_Layer: 0
|
||||
m_Name: RoomCamera
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &206856060
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 206856059}
|
||||
m_Enabled: 0
|
||||
--- !u!92 &206856061
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 206856059}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &206856062
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 206856059}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &206856063
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 206856059}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &206856064
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 206856059}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 3, z: -9.5}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &780482174
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 780482176}
|
||||
- component: {fileID: 780482175}
|
||||
m_Layer: 0
|
||||
m_Name: Directional Light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &780482175
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 780482174}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 8
|
||||
m_Type: 1
|
||||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 2
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_Lightmapping: 4
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
m_UseColorTemperature: 0
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
--- !u!4 &780482176
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 780482174}
|
||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!1 &840719025
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 840719029}
|
||||
- component: {fileID: 840719028}
|
||||
- component: {fileID: 840719027}
|
||||
- component: {fileID: 840719026}
|
||||
m_Layer: 0
|
||||
m_Name: HelpPanel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!23 &840719026
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 840719025}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 4c18da23435024b43a2b78449cbb6ed0, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!64 &840719027
|
||||
MeshCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 840719025}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Convex: 0
|
||||
m_CookingOptions: 14
|
||||
m_SkinWidth: 0.01
|
||||
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!33 &840719028
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 840719025}
|
||||
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &840719029
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 840719025}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0.52, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &1390249324
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 400006, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400006, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400006, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400006, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400006, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400006, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400006, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400006, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 100014, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_TagString
|
||||
value: MainCamera
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 100010, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_TagString
|
||||
value: MainCamera
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11400002, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: _trackingOriginType
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 100008, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: m_IsActive
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11400010, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: SnapRotation
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11400010, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
propertyPath: EnableRotation
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &1390249325 stripped
|
||||
GameObject:
|
||||
m_PrefabParentObject: {fileID: 100014, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
m_PrefabInternal: {fileID: 1390249324}
|
||||
--- !u!1 &1390249326 stripped
|
||||
GameObject:
|
||||
m_PrefabParentObject: {fileID: 100010, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
m_PrefabInternal: {fileID: 1390249324}
|
||||
--- !u!20 &1390249327
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1390249325}
|
||||
m_Enabled: 0
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 2
|
||||
m_HDR: 0
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!20 &1390249328
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1390249326}
|
||||
m_Enabled: 0
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 1
|
||||
m_HDR: 0
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!1 &1390249329 stripped
|
||||
GameObject:
|
||||
m_PrefabParentObject: {fileID: 100008, guid: ce816f2e6abb0504092c23ed9b970dfd, type: 2}
|
||||
m_PrefabInternal: {fileID: 1390249324}
|
||||
--- !u!114 &1390249330
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1390249329}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 043fbfd0ae7027742bace7a3691feb13, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
localAvatarPrefab: {fileID: 11437430, guid: 84c8b8609f9bb434eaf5248f17ff1293, type: 2}
|
||||
remoteAvatarPrefab: {fileID: 11464902, guid: 90bf33f968e6bb44ea0208fc82c90a44, type: 2}
|
||||
helpPanel: {fileID: 840719025}
|
||||
riftMaterial: {fileID: 2100000, guid: 4c18da23435024b43a2b78449cbb6ed0, type: 2}
|
||||
gearMaterial: {fileID: 2100000, guid: 09c03a3c5049d234590b91bbc6e84462, type: 2}
|
||||
roomSphere: {fileID: 1902705651}
|
||||
roomFloor: {fileID: 2115777246}
|
||||
spyCamera: {fileID: 206856063}
|
||||
--- !u!1 &1902705651
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 1902705655}
|
||||
- component: {fileID: 1902705654}
|
||||
- component: {fileID: 1902705653}
|
||||
- component: {fileID: 1902705652}
|
||||
m_Layer: 0
|
||||
m_Name: Sphere
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!23 &1902705652
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1902705651}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 296de5be1228bf34380061dd6e6b0f49, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!135 &1902705653
|
||||
SphereCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1902705651}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_Radius: 0.5
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &1902705654
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1902705651}
|
||||
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &1902705655
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1902705651}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 3, y: 6, z: 3}
|
||||
m_LocalScale: {x: 2, y: 2, z: 2}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &2115777246
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 2115777250}
|
||||
- component: {fileID: 2115777249}
|
||||
- component: {fileID: 2115777248}
|
||||
- component: {fileID: 2115777247}
|
||||
m_Layer: 0
|
||||
m_Name: Plane
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!23 &2115777247
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2115777246}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: c466b89bb972b8a42bd266c102f8f2cb, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!64 &2115777248
|
||||
MeshCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2115777246}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Convex: 0
|
||||
m_CookingOptions: 14
|
||||
m_SkinWidth: 0.01
|
||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!33 &2115777249
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2115777246}
|
||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &2115777250
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2115777246}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 7, y: 1, z: 7}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 236a5f96528802e47a70d6e47ebd3c16
|
||||
timeCreated: 1496779803
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user