浏览代码

Added XR WaterSettings and turned off XR water off by default.

/boatattack-xr-add-xr-support
thomas-zeng 4 年前
当前提交
fecdb864
共有 3 个文件被更改,包括 41 次插入74 次删除
  1. 81
      Assets/scenes/demo_Island.unity
  2. 26
      Assets/Data/XR_WaterSettingsData.asset
  3. 8
      Assets/Data/XR_WaterSettingsData.asset.meta

81
Assets/scenes/demo_Island.unity


- 364a025bae9c84dab8e79037a0d9b6a3: {fileID: 1881355361}
- a3e90ce987ce547e49d06c6e77144da8: {fileID: 96716009}
- 935fa36aa65fc463ebdd9d1e498083b1: {fileID: 681645759}
--- !u!84 &1516690547
RenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: WaterDepthMap
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
m_IsAlphaChannelOptional: 0
serializedVersion: 3
m_Width: 1024
m_Height: 1024
m_AntiAliasing: 1
m_MipCount: -1
m_DepthFormat: 2
m_ColorFormat: 142
m_MipMap: 0
m_GenerateMips: 1
m_SRGB: 0
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 1
m_MipBias: 0
m_WrapU: 1
m_WrapV: 1
m_WrapW: 1
m_Dimension: 2
m_VolumeDepth: 1
--- !u!1 &1525960008
GameObject:
m_ObjectHideFlags: 0

m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
--- !u!84 &1785717451
RenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: WaterDepthMap
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
m_IsAlphaChannelOptional: 0
serializedVersion: 3
m_Width: 1024
m_Height: 1024
m_AntiAliasing: 1
m_MipCount: -1
m_DepthFormat: 2
m_ColorFormat: 142
m_MipMap: 0
m_GenerateMips: 1
m_SRGB: 0
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 1
m_MipBias: 0
m_WrapU: 1
m_WrapV: 1
m_WrapW: 1
m_Dimension: 2
m_VolumeDepth: 1
--- !u!1 &1819032311
GameObject:
m_ObjectHideFlags: 0

m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1329505928372831195, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1478924042743889166, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalPosition.x

type: 3}
propertyPath: _depthTex
value:
objectReference: {fileID: 1516690547}
objectReference: {fileID: 0}
objectReference: {fileID: 11400000, guid: ad45246eb89da4549a143c10e3a053b4,
objectReference: {fileID: 11400000, guid: 264acf2e6d4d2c9418ed57aa80e8f14d,
type: 2}
- target: {fileID: 3924426380732521610, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}

26
Assets/Data/XR_WaterSettingsData.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7ad544ee67a064d3eb407c8c47c67b8d, type: 3}
m_Name: XR_WaterSettingsData
m_EditorClassIdentifier:
waterGeomType: 0
refType: 0
planarSettings:
m_ResolutionMultiplier: 2
m_ClipPlaneOffset: 0.07
m_ReflectLayers:
serializedVersion: 2
m_Bits: 4294967295
m_Shadows: 0
cubemapRefType: {fileID: 0}
isInfinite: 0
originOffset: {x: 0, y: 0, z: 500, w: 500}

8
Assets/Data/XR_WaterSettingsData.asset.meta


fileFormatVersion: 2
guid: 264acf2e6d4d2c9418ed57aa80e8f14d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存