mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2024-11-24 03:50:10 +01:00
better light map
This commit is contained in:
parent
7e8dad401f
commit
9c96af0659
@ -121,8 +121,8 @@ Material:
|
|||||||
- _WorkflowMode: 1
|
- _WorkflowMode: 1
|
||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.9, g: 0.9, b: 0.9, a: 1}
|
- _BaseColor: {r: 0.85, g: 0.85, b: 0.85, a: 1}
|
||||||
- _Color: {r: 0.9, g: 0.9, b: 0.9, a: 1}
|
- _Color: {r: 0.85, g: 0.85, b: 0.85, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
@ -108,8 +108,8 @@ Material:
|
|||||||
- _WorkflowMode: 1
|
- _WorkflowMode: 1
|
||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.9, g: 0.9, b: 0.9, a: 1}
|
- _BaseColor: {r: 0.85, g: 0.85, b: 0.85, a: 1}
|
||||||
- _Color: {r: 0.9, g: 0.9, b: 0.9, a: 1}
|
- _Color: {r: 0.85, g: 0.85, b: 0.85, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
@ -58,7 +58,7 @@ Material:
|
|||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MainTex:
|
- _MainTex:
|
||||||
m_Texture: {fileID: 2800000, guid: 6660365cd3c564f4582541b1cf6cce84, type: 3}
|
m_Texture: {fileID: 2800000, guid: 1be2e053bc7b1e14d83c6d345916cc9a, type: 3}
|
||||||
m_Scale: {x: 1, y: -1}
|
m_Scale: {x: 1, y: -1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MetallicGlossMap:
|
- _MetallicGlossMap:
|
||||||
|
@ -58,7 +58,7 @@ Material:
|
|||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MainTex:
|
- _MainTex:
|
||||||
m_Texture: {fileID: 2800000, guid: 6660365cd3c564f4582541b1cf6cce84, type: 3}
|
m_Texture: {fileID: 2800000, guid: 1be2e053bc7b1e14d83c6d345916cc9a, type: 3}
|
||||||
m_Scale: {x: 1, y: -1}
|
m_Scale: {x: 1, y: -1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MetallicGlossMap:
|
- _MetallicGlossMap:
|
||||||
|
Binary file not shown.
@ -1621,7 +1621,7 @@ Camera:
|
|||||||
m_Depth: 0
|
m_Depth: 0
|
||||||
m_CullingMask:
|
m_CullingMask:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Bits: 4294967295
|
m_Bits: 503
|
||||||
m_RenderingPath: -1
|
m_RenderingPath: -1
|
||||||
m_TargetTexture: {fileID: 0}
|
m_TargetTexture: {fileID: 0}
|
||||||
m_TargetDisplay: 0
|
m_TargetDisplay: 0
|
||||||
|
@ -861,7 +861,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
RaySwitch: 1
|
RaySwitch: 1
|
||||||
Distance: 0.35
|
Distance: 0.4
|
||||||
--- !u!114 &1675997575752368890
|
--- !u!114 &1675997575752368890
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1435,7 +1435,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
RaySwitch: 1
|
RaySwitch: 1
|
||||||
Distance: 0.35
|
Distance: 0.4
|
||||||
--- !u!114 &8197275846363546882
|
--- !u!114 &8197275846363546882
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1814,7 +1814,7 @@ Camera:
|
|||||||
m_Depth: 0
|
m_Depth: 0
|
||||||
m_CullingMask:
|
m_CullingMask:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Bits: 4294967295
|
m_Bits: 503
|
||||||
m_RenderingPath: -1
|
m_RenderingPath: -1
|
||||||
m_TargetTexture: {fileID: 0}
|
m_TargetTexture: {fileID: 0}
|
||||||
m_TargetDisplay: 0
|
m_TargetDisplay: 0
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 565 KiB After Width: | Height: | Size: 576 KiB |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 315 KiB After Width: | Height: | Size: 357 KiB |
Binary file not shown.
@ -21,7 +21,7 @@ public class Locker : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void ToggleLocker()
|
public void ToggleLocker()
|
||||||
{
|
{
|
||||||
ToggleButtons();
|
ToggleButtons();
|
||||||
ToggleLocalmotion();
|
ToggleLocalmotion();
|
||||||
|
@ -74,11 +74,15 @@ public class NoneVRSettingManager : MonoBehaviour
|
|||||||
if (!NVRCameraObj.activeSelf)
|
if (!NVRCameraObj.activeSelf)
|
||||||
NVRCameraObj.SetActive(true);
|
NVRCameraObj.SetActive(true);
|
||||||
CameraSmooth.target = NVRCameraTargetFP;
|
CameraSmooth.target = NVRCameraTargetFP;
|
||||||
|
NVRCamera.cullingMask |= 1 << LayerMask.NameToLayer("FPSBlock"); // Enable FPBlock
|
||||||
|
NVRCamera.cullingMask &= ~(1 << LayerMask.NameToLayer("TPSBlock")); // Disable TPBlock
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (!NVRCameraObj.activeSelf)
|
if (!NVRCameraObj.activeSelf)
|
||||||
NVRCameraObj.SetActive(true);
|
NVRCameraObj.SetActive(true);
|
||||||
CameraSmooth.target = NVRCameraTargetTP;
|
CameraSmooth.target = NVRCameraTargetTP;
|
||||||
|
NVRCamera.cullingMask |= 1 << LayerMask.NameToLayer("TPSBlock"); // Enable TPBlock
|
||||||
|
NVRCamera.cullingMask &= ~(1 << LayerMask.NameToLayer("FPSBlock")); // Disable FPBlock
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
JsonConfig.SetInt("NVRMode", Dropdown.value);
|
JsonConfig.SetInt("NVRMode", Dropdown.value);
|
||||||
|
@ -6,7 +6,7 @@ using UnityEngine.XR.Interaction.Toolkit;
|
|||||||
public class RayManager : MonoBehaviour
|
public class RayManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
public bool RaySwitch = true;
|
public bool RaySwitch = true;
|
||||||
public float Distance = 0.3f;
|
public float Distance = 0.4f;
|
||||||
XRRayInteractor interactor;
|
XRRayInteractor interactor;
|
||||||
XRInteractorLineVisual lineVisual;
|
XRInteractorLineVisual lineVisual;
|
||||||
LineRenderer lineRenderer;
|
LineRenderer lineRenderer;
|
||||||
|
36
Assets/Settings/RayManager.preset
Normal file
36
Assets/Settings/RayManager.preset
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!181963792 &2655988077585873504
|
||||||
|
Preset:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: RayManager
|
||||||
|
m_TargetType:
|
||||||
|
m_NativeTypeID: 114
|
||||||
|
m_ManagedTypePPtr: {fileID: 11500000, guid: c5e2ccffa6e4f0e47abb7a70c7b6b8e0,
|
||||||
|
type: 3}
|
||||||
|
m_ManagedTypeFallback:
|
||||||
|
m_Properties:
|
||||||
|
- target: {fileID: 0}
|
||||||
|
propertyPath: m_Enabled
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 0}
|
||||||
|
propertyPath: m_EditorHideFlags
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 0}
|
||||||
|
propertyPath: m_EditorClassIdentifier
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 0}
|
||||||
|
propertyPath: RaySwitch
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 0}
|
||||||
|
propertyPath: Distance
|
||||||
|
value: 0.4
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_ExcludedProperties: []
|
8
Assets/Settings/RayManager.preset.meta
Normal file
8
Assets/Settings/RayManager.preset.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f3b60adc16e7d3942a3564727e79844f
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2655988077585873504
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
Before Width: | Height: | Size: 957 KiB After Width: | Height: | Size: 957 KiB |
Binary file not shown.
@ -5,6 +5,46 @@ PresetManager:
|
|||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_DefaultPresets:
|
m_DefaultPresets:
|
||||||
|
- first:
|
||||||
|
m_NativeTypeID: 114
|
||||||
|
m_ManagedTypePPtr: {fileID: 11500000, guid: 919e39492806b334982b6b84c90dd927,
|
||||||
|
type: 3}
|
||||||
|
m_ManagedTypeFallback:
|
||||||
|
second:
|
||||||
|
- m_Preset: {fileID: 2655988077585873504, guid: 0caad3af14f9a414dbdf25ed41e5aa47,
|
||||||
|
type: 2}
|
||||||
|
m_Filter:
|
||||||
|
m_Disabled: 0
|
||||||
|
- first:
|
||||||
|
m_NativeTypeID: 114
|
||||||
|
m_ManagedTypePPtr: {fileID: 11500000, guid: ab68ce6587aab0146b8dabefbd806791,
|
||||||
|
type: 3}
|
||||||
|
m_ManagedTypeFallback:
|
||||||
|
second:
|
||||||
|
- m_Preset: {fileID: 2655988077585873504, guid: 2c3e7ff9ab352b74da862a5a8779b276,
|
||||||
|
type: 2}
|
||||||
|
m_Filter:
|
||||||
|
m_Disabled: 0
|
||||||
|
- first:
|
||||||
|
m_NativeTypeID: 114
|
||||||
|
m_ManagedTypePPtr: {fileID: 11500000, guid: c5e2ccffa6e4f0e47abb7a70c7b6b8e0,
|
||||||
|
type: 3}
|
||||||
|
m_ManagedTypeFallback:
|
||||||
|
second:
|
||||||
|
- m_Preset: {fileID: 2655988077585873504, guid: f3b60adc16e7d3942a3564727e79844f,
|
||||||
|
type: 2}
|
||||||
|
m_Filter:
|
||||||
|
m_Disabled: 0
|
||||||
|
- first:
|
||||||
|
m_NativeTypeID: 114
|
||||||
|
m_ManagedTypePPtr: {fileID: 11500000, guid: 2213c36610e3b1c4bbf886810ed9db12,
|
||||||
|
type: 3}
|
||||||
|
m_ManagedTypeFallback:
|
||||||
|
second:
|
||||||
|
- m_Preset: {fileID: 2655988077585873504, guid: 18697d253d848974aa7052cba872c9f0,
|
||||||
|
type: 2}
|
||||||
|
m_Filter:
|
||||||
|
m_Disabled: 0
|
||||||
- first:
|
- first:
|
||||||
m_NativeTypeID: 114
|
m_NativeTypeID: 114
|
||||||
m_ManagedTypePPtr: {fileID: 11500000, guid: 0bf296fc962d7184ab14ad1841598d5f,
|
m_ManagedTypePPtr: {fileID: 11500000, guid: 0bf296fc962d7184ab14ad1841598d5f,
|
||||||
@ -29,33 +69,3 @@ PresetManager:
|
|||||||
type: 2}
|
type: 2}
|
||||||
m_Filter: left
|
m_Filter: left
|
||||||
m_Disabled: 0
|
m_Disabled: 0
|
||||||
- first:
|
|
||||||
m_NativeTypeID: 114
|
|
||||||
m_ManagedTypePPtr: {fileID: 11500000, guid: 2213c36610e3b1c4bbf886810ed9db12,
|
|
||||||
type: 3}
|
|
||||||
m_ManagedTypeFallback:
|
|
||||||
second:
|
|
||||||
- m_Preset: {fileID: 2655988077585873504, guid: 18697d253d848974aa7052cba872c9f0,
|
|
||||||
type: 2}
|
|
||||||
m_Filter:
|
|
||||||
m_Disabled: 0
|
|
||||||
- first:
|
|
||||||
m_NativeTypeID: 114
|
|
||||||
m_ManagedTypePPtr: {fileID: 11500000, guid: 919e39492806b334982b6b84c90dd927,
|
|
||||||
type: 3}
|
|
||||||
m_ManagedTypeFallback:
|
|
||||||
second:
|
|
||||||
- m_Preset: {fileID: 2655988077585873504, guid: 0caad3af14f9a414dbdf25ed41e5aa47,
|
|
||||||
type: 2}
|
|
||||||
m_Filter:
|
|
||||||
m_Disabled: 0
|
|
||||||
- first:
|
|
||||||
m_NativeTypeID: 114
|
|
||||||
m_ManagedTypePPtr: {fileID: 11500000, guid: ab68ce6587aab0146b8dabefbd806791,
|
|
||||||
type: 3}
|
|
||||||
m_ManagedTypeFallback:
|
|
||||||
second:
|
|
||||||
- m_Preset: {fileID: 2655988077585873504, guid: 2c3e7ff9ab352b74da862a5a8779b276,
|
|
||||||
type: 2}
|
|
||||||
m_Filter:
|
|
||||||
m_Disabled: 0
|
|
||||||
|
@ -192,6 +192,8 @@ PlayerSettings:
|
|||||||
- {fileID: 0}
|
- {fileID: 0}
|
||||||
- {fileID: 0}
|
- {fileID: 0}
|
||||||
- {fileID: 0}
|
- {fileID: 0}
|
||||||
|
- {fileID: 0}
|
||||||
|
- {fileID: 0}
|
||||||
- {fileID: -6018045015233401694, guid: 3999ab811e936714280a476b3a032d86, type: 2}
|
- {fileID: -6018045015233401694, guid: 3999ab811e936714280a476b3a032d86, type: 2}
|
||||||
- {fileID: 6536100391545742739, guid: 55d1ec7a4296de343b6d3bb6f9a19731, type: 2}
|
- {fileID: 6536100391545742739, guid: 55d1ec7a4296de343b6d3bb6f9a19731, type: 2}
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
|
@ -14,8 +14,8 @@ TagManager:
|
|||||||
- Water
|
- Water
|
||||||
- UI
|
- UI
|
||||||
- TPSBlock
|
- TPSBlock
|
||||||
-
|
- RTLight
|
||||||
-
|
- RTBody
|
||||||
-
|
-
|
||||||
-
|
-
|
||||||
-
|
-
|
||||||
|
Loading…
Reference in New Issue
Block a user