Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eaa6bca

Browse files
Shaders & Others
sdkjgfqkwajshfbkj\shygbvfe
1 parent b3286f3 commit eaa6bca

File tree

16 files changed

+45945
-155
lines changed

16 files changed

+45945
-155
lines changed

‎Native_Compilation_Project/Assets/Camera/Scripts/CameraShake.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ public class CameraShake : MonoBehaviour
77
{
88
public Camera cam;
99
public bool alreadyShaking;
10-
public Vector3 initPosition;
10+
//public Vector3 initPosition;
11+
public float initFOV;
1112
public float timeToWait;
1213

1314
public void Start()
@@ -26,17 +27,20 @@ public void cameraShake(float length, float hardness)
2627
private IEnumerator _ShakingCamera(float length, float hardness)
2728
{
2829
alreadyShaking = true;
29-
initPosition = cam.transform.position;
30+
//initPosition = cam.transform.position;
31+
initFOV = cam.fieldOfView;
3032

3133
float time = 0f;
3234
while (time < length)
3335
{
34-
cam.transform.localPosition = initPosition + (Vector3)Random.insideUnitCircle * hardness;
36+
cam.fieldOfView = cam.fieldOfView + Random.Range(-1f, 1f) * hardness;
37+
//cam.transform.position = cam.transform.position + (Vector3)Random.insideUnitCircle * hardness;
3538
time += timeToWait;
3639
yield return new WaitForSeconds(timeToWait);
3740
}
3841

39-
cam.transform.position = initPosition;
42+
//cam.transform.position = initPosition;
43+
cam.fieldOfView = initFOV;
4044
alreadyShaking = false;
4145
}
4246
}

‎Native_Compilation_Project/Assets/Decals/Blood Decal.prefab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ MonoBehaviour:
5252
m_UVScale: {x: 1, y: 1}
5353
m_UVBias: {x: 0, y: 0}
5454
m_ScaleMode: 0
55-
m_Offset: {x: 0, y: 0, z: 0.5}
56-
m_Size: {x: 1, y: 1, z: 1}
55+
m_Offset: {x: 0, y: 0, z: 2.5}
56+
m_Size: {x: 3, y: 3, z: 5}
5757
m_FadeFactor: 1

‎Native_Compilation_Project/Assets/Enemy/Materials/Enemy.mat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Material:
9999
- _Parallax: 0.02
100100
- _QueueOffset: 0
101101
- _ReceiveShadows: 1
102+
- _ScrollSpeed: 1
102103
- _Smoothness: 0.5
103104
- _SmoothnessTextureChannel: 0
104105
- _SpecularHighlights: 1

‎Native_Compilation_Project/Assets/Maps/Materials/Test Floor.mat

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ Material:
88
m_PrefabInstance: {fileID: 0}
99
m_PrefabAsset: {fileID: 0}
1010
m_Name: Test Floor
11-
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
11+
m_Shader: {fileID: -6465566751694194690, guid: 8358dab8d928ac24caef6efe21a5362e, type: 3}
1212
m_ValidKeywords: []
1313
m_InvalidKeywords: []
1414
m_LightmapFlags: 4
1515
m_EnableInstancingVariants: 0
1616
m_DoubleSidedGI: 0
17-
m_CustomRenderQueue: 2000
18-
stringTagMap:
19-
RenderType: Opaque
17+
m_CustomRenderQueue: -1
18+
stringTagMap: {}
2019
disabledShaderPasses: []
2120
m_SavedProperties:
2221
serializedVersion: 3
@@ -94,10 +93,13 @@ Material:
9493
- _Glossiness: 0
9594
- _GlossyReflections: 0
9695
- _Metallic: 0
96+
- _Middle: 0.001
9797
- _OcclusionStrength: 1
9898
- _Parallax: 0.005
99+
- _QueueControl: 0
99100
- _QueueOffset: 0
100101
- _ReceiveShadows: 1
102+
- _ScrollSpeed: 10
101103
- _Smoothness: 0
102104
- _SmoothnessTextureChannel: 0
103105
- _SpecularHighlights: 1
@@ -108,6 +110,9 @@ Material:
108110
m_Colors:
109111
- _BaseColor: {r: 0.40000004, g: 0.41960788, b: 0.43921572, a: 1}
110112
- _Color: {r: 0.40000004, g: 0.41960788, b: 0.43921572, a: 1}
113+
- _ColorBot: {r: 0.021567345, g: 1, b: 0, a: 1}
114+
- _ColorMid: {r: 0.4503576, g: 0.5754717, b: 0, a: 1}
115+
- _ColorTop: {r: 1, g: 0, b: 0, a: 1}
111116
- _EmissionColor: {r: 0, g: 0.27058825, b: 0.7490196, a: 1}
112117
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
113118
m_BuildTextureStacks: []

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /