Skip to content

Commit f0b1db3

Browse files
authored
Feature/task 696 reference scene improvement (#31)
* Just imported HDRP samples and put figures in the HDRP deafult sample scene. [skip ci] * Implementing enabling/disabling mouse move. [skip ci] * Rotate view needs middle button press now. [skip ci] * Updated the sample scene. * Moved samples to shallower path. * Updated LightAndShdow scene graphics test image for HDRP DX11. Co-authored-by: higeometry <[email protected]>
1 parent 4cdf197 commit f0b1db3

File tree

779 files changed

+176922
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

779 files changed

+176922
-7
lines changed

HDRP-DefaultVolumeProject-2020.3/Assets/SampleSceneAssets/Scripts/LookWithMouse.cs

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,40 @@ void Start()
2020
Cursor.lockState = CursorLockMode.Locked;
2121
}
2222

23-
// Update is called once per frame
23+
public CursorLockMode Locked
24+
{
25+
get {
26+
return Cursor.lockState;
27+
}
28+
29+
set
30+
{
31+
Cursor.lockState = value;
32+
}
33+
}
34+
35+
// Update is called once per frame
2436
void Update()
2537
{
38+
if (Cursor.lockState == CursorLockMode.None )
39+
{
40+
return;
41+
}
42+
43+
44+
2645
#if ENABLE_INPUT_SYSTEM
46+
2747
float mouseX = 0, mouseY = 0;
2848

2949
if (Mouse.current != null)
3050
{
31-
var delta = Mouse.current.delta.ReadValue() / 15.0f;
32-
mouseX += delta.x;
33-
mouseY += delta.y;
51+
if ( Mouse.current.middleButton.isPressed )
52+
{
53+
var delta = Mouse.current.delta.ReadValue() / 15.0f;
54+
mouseX += delta.x;
55+
mouseY += delta.y;
56+
}
3457
}
3558
if (Gamepad.current != null)
3659
{

HDRP-DefaultVolumeProject-2020.3/Assets/SampleSceneAssets/Scripts/PlayerMovement.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ public class PlayerMovement : MonoBehaviour
1717

1818
public Transform groundCheck;
1919
public float groundDistance = 0.4f;
20-
public LayerMask groundMask;
21-
20+
public LayerMask groundMask;
2221

2322
Vector3 velocity;
2423
bool isGrounded;
@@ -43,14 +42,17 @@ void Start()
4342
jump = new InputAction("PlayerJump", binding: "<Gamepad>/a");
4443
jump.AddBinding("<Keyboard>/space");
4544

45+
4646
movement.Enable();
4747
jump.Enable();
48+
4849
}
4950
#endif
5051

5152
// Update is called once per frame
5253
void Update()
5354
{
55+
5456
float x;
5557
float z;
5658
bool jumpPressed = false;

HDRP-DefaultVolumeProject-2020.3/Assets/SampleSceneAssets/Settings/Volumes/VolumeGlobal.asset

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ MonoBehaviour:
264264
- {fileID: -3969488579639410846}
265265
- {fileID: 747098994415714109}
266266
- {fileID: 4566301752631259820}
267+
- {fileID: 7457958283880787788}
267268
--- !u!114 &747098994415714109
268269
MonoBehaviour:
269270
m_ObjectHideFlags: 3
@@ -777,6 +778,182 @@ MonoBehaviour:
777778
m_OverrideState: 1
778779
m_Value: 1
779780
min: 0
781+
--- !u!114 &7457958283880787788
782+
MonoBehaviour:
783+
m_ObjectHideFlags: 3
784+
m_CorrespondingSourceObject: {fileID: 0}
785+
m_PrefabInstance: {fileID: 0}
786+
m_PrefabAsset: {fileID: 0}
787+
m_GameObject: {fileID: 0}
788+
m_Enabled: 1
789+
m_EditorHideFlags: 0
790+
m_Script: {fileID: 11500000, guid: db8edd5c572b6e648974dac4815d5619, type: 3}
791+
m_Name: ToonEvAdjustmentCurve
792+
m_EditorClassIdentifier:
793+
active: 1
794+
m_AdvancedMode: 0
795+
m_ExposureAdjustmnt: 0
796+
m_ExposureArray:
797+
- -10
798+
- -9.99932
799+
- -9.99729
800+
- -9.993922
801+
- -9.989231
802+
- -9.983231
803+
- -9.975934
804+
- -9.967355
805+
- -9.957506
806+
- -9.946403
807+
- -9.934056
808+
- -9.920483
809+
- -9.905694
810+
- -9.889706
811+
- -9.872529
812+
- -9.854178
813+
- -9.834667
814+
- -9.814011
815+
- -9.79222
816+
- -9.769311
817+
- -9.745296
818+
- -9.720188
819+
- -9.694003
820+
- -9.666752
821+
- -9.63845
822+
- -9.60911
823+
- -9.578747
824+
- -9.547372
825+
- -9.515
826+
- -9.481646
827+
- -9.447322
828+
- -9.412041
829+
- -9.375818
830+
- -9.338666
831+
- -9.300599
832+
- -9.261631
833+
- -9.221773
834+
- -9.181043
835+
- -9.13945
836+
- -9.097011
837+
- -9.053738
838+
- -9.0096445
839+
- -8.964745
840+
- -8.919052
841+
- -8.872581
842+
- -8.825343
843+
- -8.777354
844+
- -8.728626
845+
- -8.679173
846+
- -8.629009
847+
- -8.578148
848+
- -8.526603
849+
- -8.474386
850+
- -8.421514
851+
- -8.367998
852+
- -8.313852
853+
- -8.25909
854+
- -8.203727
855+
- -8.147775
856+
- -8.091246
857+
- -8.034157
858+
- -7.9765196
859+
- -7.9183474
860+
- -7.859655
861+
- -7.800455
862+
- -7.7407618
863+
- -7.680588
864+
- -7.619949
865+
- -7.558856
866+
- -7.497325
867+
- -7.4353676
868+
- -7.372998
869+
- -7.310231
870+
- -7.247079
871+
- -7.1835556
872+
- -7.1196747
873+
- -7.0554504
874+
- -6.9908957
875+
- -6.9260235
876+
- -6.860849
877+
- -6.795385
878+
- -6.729644
879+
- -6.6636415
880+
- -6.5973907
881+
- -6.530905
882+
- -6.464196
883+
- -6.3972807
884+
- -6.330171
885+
- -6.2628803
886+
- -6.195422
887+
- -6.1278114
888+
- -6.0600605
889+
- -5.992183
890+
- -5.9241934
891+
- -5.8561044
892+
- -5.78793
893+
- -5.7196836
894+
- -5.651379
895+
- -5.58303
896+
- -5.51465
897+
- -5.446253
898+
- -5.3778505
899+
- -5.309459
900+
- -5.241091
901+
- -5.17276
902+
- -5.1044793
903+
- -5.036263
904+
- -4.968125
905+
- -4.9000773
906+
- -4.8321347
907+
- -4.764311
908+
- -4.696619
909+
- -4.629074
910+
- -4.561688
911+
- -4.494475
912+
- -4.4274483
913+
- -4.360622
914+
- -4.29401
915+
- -4.2276244
916+
- -4.1614804
917+
- -4.0955915
918+
- -4.0299706
919+
- -3.9646316
920+
- -3.899588
921+
- -3.8348532
922+
- -3.7704415
923+
- -3.7063656
924+
- -3.6426396
925+
m_Max: -1.9296192
926+
m_Min: -10
927+
m_DebugUI: 0
928+
hiCutFilter:
929+
m_OverrideState: 0
930+
m_Value: 0
931+
curveMap:
932+
m_OverrideState: 1
933+
m_Value:
934+
serializedVersion: 2
935+
m_Curve:
936+
- serializedVersion: 3
937+
time: -10
938+
value: -10
939+
inSlope: 0
940+
outSlope: 0
941+
tangentMode: 0
942+
weightedMode: 0
943+
inWeight: 0
944+
outWeight: 0
945+
- serializedVersion: 3
946+
time: -1.9296192
947+
value: -3.6426396
948+
inSlope: 1
949+
outSlope: 1
950+
tangentMode: 0
951+
weightedMode: 0
952+
inWeight: 0
953+
outWeight: 0
954+
m_PreInfinity: 2
955+
m_PostInfinity: 2
956+
m_RotationOrder: 4
780957
--- !u!114 &8049981929359091865
781958
MonoBehaviour:
782959
m_ObjectHideFlags: 3

HDRP-DefaultVolumeProject-2020.3/Assets/Samples.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

HDRP-DefaultVolumeProject-2020.3/Assets/Samples/UTS3.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

HDRP-DefaultVolumeProject-2020.3/Assets/Samples/UTS3/ClippingMatteControlSample.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)