質問編集履歴

1

情報の追加

2021/02/08 08:32

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- Sky5X昼夜サイクルを使いたい
5
+ Sky5X昼夜サイクルを使いたい
6
6
 
7
7
 
8
8
 
@@ -12,7 +12,7 @@
12
12
 
13
13
  ```
14
14
 
15
- 168ほどあったので省略
15
+ 185ほどあったので省略
16
16
 
17
17
  ```
18
18
 
@@ -24,125 +24,99 @@
24
24
 
25
25
  ```C#
26
26
 
27
- using System.Collections;
27
+ Shader "Skybox/Blend" {
28
28
 
29
- using System.Collections.Generic;
29
+ Properties {
30
30
 
31
- using UnityEngine;
31
+ _Tint ("Tint Color", Color) = (.5, .5, .5, .5)
32
32
 
33
+ _Blend ("Blend", Range(0.0,1.0)) = 0.5
33
34
 
35
+ _FrontTex ("Front (+Z)", 2D) = "white" {}
34
36
 
37
+ _BackTex ("Back (-Z)", 2D) = "white" {}
35
38
 
39
+ _LeftTex ("Left (+X)", 2D) = "white" {}
36
40
 
41
+ _RightTex ("Right (-X)", 2D) = "white" {}
37
42
 
43
+ _UpTex ("Up (+Y)", 2D) = "white" {}
38
44
 
39
- Shader "SkyEditor/Blend" {
45
+ _DownTex ("Down (-Y)", 2D) = "white" {}
40
46
 
41
- Properties {
47
+ _FrontTex2("2 Front (+Z)", 2D) = "white" {}
42
48
 
43
- _Tint("Tint Color", Color) = (.5, .5, .5, .5);
49
+ _BackTex2("2 Back (-Z)", 2D) = "white" {}
44
50
 
45
- _Blend("Blend", Range(0.0, 1.0)) = 0.5;
51
+ _LeftTex2("2 Left (+X)", 2D) = "white" {}
46
52
 
47
- _FrontTex("Front (+Z)", 2D) = "white"; {}
53
+ _RightTex2("2 Right (-X)", 2D) = "white" {}
48
54
 
49
- _BackTex("Back (-Z)", 2D) = "white"; {}
55
+ _UpTex2("2 Up (+Y)", 2D) = "white" {}
50
56
 
51
- _LeftTex("Left (+X)", 2D) = "white"; {}
52
-
53
- _RightTex("Right (-X)", 2D) = "white"; {}
54
-
55
- _UpTex("Up (+Y)", 2D) = "white"; {};
56
-
57
- _DownTex("Down (-Y)", 2D) = "white"; {}
58
-
59
- _FrontTex2("2 Front (+Z)", 2D) = "white"; {}
60
-
61
- _BackTex2("2 Back (-Z)", 2D) = "white"; {}
62
-
63
- _LeftTex2("2 Left (+X)", 2D) = "white"; {}
64
-
65
- _RightTex2("2 Right (-X)", 2D) = "white"; {}
66
-
67
- _UpTex2("2 Up (+Y)", 2D) = "white"; {}
68
-
69
- _DownTex2("2 Down (-Y)", 2D) = "white";{}
57
+ _DownTex2("2 Down (-Y)", 2D) = "white" {}
70
58
 
71
59
  }
72
60
 
73
61
 
74
62
 
75
- SubShader
63
+ SubShader {
76
64
 
77
- {
65
+ Tags { "Queue" = "Background" }
78
66
 
79
- Tags { "Queue" = "Background" };
67
+ Cull Off
80
68
 
81
- Cull Off;
69
+ Fog { Mode Off }
82
70
 
83
- Fog { Mode Off };
71
+ Lighting Off
84
72
 
85
- Lighting Off;
86
-
87
- Color[_Tint];
73
+ Color [_Tint]
88
74
 
89
75
  Pass {
90
76
 
91
- SetTexture[_FrontTex] { combine texture };
77
+ SetTexture [_FrontTex] { combine texture }
92
78
 
93
- SetTexture[_FrontTex2] { constantColor(0, 0, 0,[_Blend]);
79
+ SetTexture [_FrontTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
94
-
95
- combine texture lerp(constant) previous };
96
80
 
97
81
  }
98
82
 
99
83
  Pass {
100
84
 
101
- SetTexture[_BackTex] { combine texture }
85
+ SetTexture [_BackTex] { combine texture }
102
86
 
103
- SetTexture[_BackTex2] { constantColor(0, 0, 0,[_Blend]);
87
+ SetTexture [_BackTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
104
-
105
- combine texture lerp(constant) previous };
106
88
 
107
89
  }
108
90
 
109
91
  Pass {
110
92
 
111
- SetTexture[_LeftTex] { combine texture }
93
+ SetTexture [_LeftTex] { combine texture }
112
94
 
113
- SetTexture[_LeftTex2] { constantColor(0, 0, 0,[_Blend]);
95
+ SetTexture [_LeftTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
114
-
115
- combine texture lerp(constant) previous };
116
96
 
117
97
  }
118
98
 
119
99
  Pass {
120
100
 
121
- SetTexture[_RightTex] { combine texture }
101
+ SetTexture [_RightTex] { combine texture }
122
102
 
123
- SetTexture[_RightTex2] { constantColor(0, 0, 0,[_Blend]);
103
+ SetTexture [_RightTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
124
-
125
- combine texture lerp(constant) previous };
126
104
 
127
105
  }
128
106
 
129
107
  Pass {
130
108
 
131
- SetTexture[_UpTex] { combine texture }
109
+ SetTexture [_UpTex] { combine texture }
132
110
 
133
- SetTexture[_UpTex2] { constantColor(0, 0, 0,[_Blend]);
111
+ SetTexture [_UpTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
134
-
135
- combine texture lerp(cnstant) previous };
136
112
 
137
113
  }
138
114
 
139
115
  Pass {
140
116
 
141
- SetTexture[_DownTex] { combine texture }
117
+ SetTexture [_DownTex] { combine texture }
142
118
 
143
- SetTexture[_DownTex2] { constantColor(0, 0, 0,[_Blend]);
119
+ SetTexture [_DownTex2] { constantColor (0,0,0,[_Blend]) combine texture lerp(constant) previous }
144
-
145
- combine texture lerp(constant) previous };
146
120
 
147
121
  }
148
122