質問編集履歴
1
情報の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,76 +1,63 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
|
-
Sky5X
|
3
|
+
Sky5Xの昼夜サイクルを使いたい
|
4
4
|
|
5
5
|
### 発生している問題・エラーメッセージ
|
6
6
|
|
7
7
|
```
|
8
|
-
|
8
|
+
185ほどあったので省略
|
9
9
|
```
|
10
10
|
|
11
11
|
### 該当のソースコード
|
12
12
|
|
13
13
|
```C#
|
14
|
-
using System.Collections;
|
15
|
-
using System.Collections.Generic;
|
16
|
-
using UnityEngine;
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
Shader "Skybox/Blend" {
|
21
|
-
|
15
|
+
Properties {
|
22
|
-
|
16
|
+
_Tint ("Tint Color", Color) = (.5, .5, .5, .5)
|
23
|
-
|
17
|
+
_Blend ("Blend", Range(0.0,1.0)) = 0.5
|
24
|
-
|
18
|
+
_FrontTex ("Front (+Z)", 2D) = "white" {}
|
25
|
-
|
19
|
+
_BackTex ("Back (-Z)", 2D) = "white" {}
|
26
|
-
|
20
|
+
_LeftTex ("Left (+X)", 2D) = "white" {}
|
27
|
-
|
21
|
+
_RightTex ("Right (-X)", 2D) = "white" {}
|
28
|
-
|
22
|
+
_UpTex ("Up (+Y)", 2D) = "white" {}
|
29
|
-
|
23
|
+
_DownTex ("Down (-Y)", 2D) = "white" {}
|
30
|
-
|
24
|
+
_FrontTex2("2 Front (+Z)", 2D) = "white" {}
|
31
|
-
|
25
|
+
_BackTex2("2 Back (-Z)", 2D) = "white" {}
|
32
|
-
|
26
|
+
_LeftTex2("2 Left (+X)", 2D) = "white" {}
|
33
|
-
|
27
|
+
_RightTex2("2 Right (-X)", 2D) = "white" {}
|
34
|
-
|
28
|
+
_UpTex2("2 Up (+Y)", 2D) = "white" {}
|
35
|
-
|
29
|
+
_DownTex2("2 Down (-Y)", 2D) = "white" {}
|
36
30
|
}
|
37
31
|
|
38
|
-
SubShader
|
32
|
+
SubShader {
|
39
|
-
{
|
40
|
-
Tags { "Queue" = "Background" }
|
33
|
+
Tags { "Queue" = "Background" }
|
41
|
-
|
34
|
+
Cull Off
|
42
|
-
Fog { Mode Off }
|
35
|
+
Fog { Mode Off }
|
43
|
-
|
36
|
+
Lighting Off
|
44
|
-
|
37
|
+
Color [_Tint]
|
45
38
|
Pass {
|
46
|
-
SetTexture[_FrontTex] { combine texture }
|
39
|
+
SetTexture [_FrontTex] { combine texture }
|
47
|
-
SetTexture[_FrontTex2] { constantColor(0,
|
40
|
+
SetTexture [_FrontTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
|
48
|
-
combine texture lerp(constant) previous };
|
49
41
|
}
|
50
42
|
Pass {
|
51
|
-
SetTexture[_BackTex] { combine texture }
|
43
|
+
SetTexture [_BackTex] { combine texture }
|
52
|
-
SetTexture[_BackTex2] { constantColor(0,
|
44
|
+
SetTexture [_BackTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
|
53
|
-
combine texture lerp(constant) previous };
|
54
45
|
}
|
55
46
|
Pass {
|
56
|
-
SetTexture[_LeftTex] { combine texture }
|
47
|
+
SetTexture [_LeftTex] { combine texture }
|
57
|
-
SetTexture[_LeftTex2] { constantColor(0,
|
48
|
+
SetTexture [_LeftTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
|
58
|
-
combine texture lerp(constant) previous };
|
59
49
|
}
|
60
50
|
Pass {
|
61
|
-
SetTexture[_RightTex] { combine texture }
|
51
|
+
SetTexture [_RightTex] { combine texture }
|
62
|
-
SetTexture[_RightTex2] { constantColor(0,
|
52
|
+
SetTexture [_RightTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
|
63
|
-
combine texture lerp(constant) previous };
|
64
53
|
}
|
65
54
|
Pass {
|
66
|
-
|
55
|
+
SetTexture [_UpTex] { combine texture }
|
67
|
-
SetTexture[_UpTex2] { constantColor(0,
|
56
|
+
SetTexture [_UpTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
|
68
|
-
combine texture lerp(cnstant) previous };
|
69
57
|
}
|
70
58
|
Pass {
|
71
|
-
SetTexture[_DownTex] { combine texture }
|
59
|
+
SetTexture [_DownTex] { combine texture }
|
72
|
-
SetTexture[_DownTex2] { constantColor(0,
|
60
|
+
SetTexture [_DownTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
|
73
|
-
combine texture lerp(constant) previous };
|
74
61
|
}
|
75
62
|
}
|
76
63
|
|