teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

情報の追加

2021/02/08 08:32

投稿

退会済みユーザー
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
- 168ほどあったので省略
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
- Shader "SkyEditor/Blend" {
14
+ Shader "Skybox/Blend" {
21
- Properties {
15
+ Properties {
22
- _Tint("Tint Color", Color) = (.5, .5, .5, .5);
16
+ _Tint ("Tint Color", Color) = (.5, .5, .5, .5)
23
- _Blend("Blend", Range(0.0, 1.0)) = 0.5;
17
+ _Blend ("Blend", Range(0.0,1.0)) = 0.5
24
- _FrontTex("Front (+Z)", 2D) = "white"; {}
18
+ _FrontTex ("Front (+Z)", 2D) = "white" {}
25
- _BackTex("Back (-Z)", 2D) = "white"; {}
19
+ _BackTex ("Back (-Z)", 2D) = "white" {}
26
- _LeftTex("Left (+X)", 2D) = "white"; {}
20
+ _LeftTex ("Left (+X)", 2D) = "white" {}
27
- _RightTex("Right (-X)", 2D) = "white"; {}
21
+ _RightTex ("Right (-X)", 2D) = "white" {}
28
- _UpTex("Up (+Y)", 2D) = "white"; {};
22
+ _UpTex ("Up (+Y)", 2D) = "white" {}
29
- _DownTex("Down (-Y)", 2D) = "white"; {}
23
+ _DownTex ("Down (-Y)", 2D) = "white" {}
30
- _FrontTex2("2 Front (+Z)", 2D) = "white"; {}
24
+ _FrontTex2("2 Front (+Z)", 2D) = "white" {}
31
- _BackTex2("2 Back (-Z)", 2D) = "white"; {}
25
+ _BackTex2("2 Back (-Z)", 2D) = "white" {}
32
- _LeftTex2("2 Left (+X)", 2D) = "white"; {}
26
+ _LeftTex2("2 Left (+X)", 2D) = "white" {}
33
- _RightTex2("2 Right (-X)", 2D) = "white"; {}
27
+ _RightTex2("2 Right (-X)", 2D) = "white" {}
34
- _UpTex2("2 Up (+Y)", 2D) = "white"; {}
28
+ _UpTex2("2 Up (+Y)", 2D) = "white" {}
35
- _DownTex2("2 Down (-Y)", 2D) = "white";{}
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
- Cull Off;
34
+ Cull Off
42
- Fog { Mode Off };
35
+ Fog { Mode Off }
43
- Lighting Off;
36
+ Lighting Off
44
- Color[_Tint];
37
+ Color [_Tint]
45
38
  Pass {
46
- SetTexture[_FrontTex] { combine texture };
39
+ SetTexture [_FrontTex] { combine texture }
47
- SetTexture[_FrontTex2] { constantColor(0, 0, 0,[_Blend]);
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, 0, 0,[_Blend]);
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, 0, 0,[_Blend]);
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, 0, 0,[_Blend]);
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
- SetTexture[_UpTex] { combine texture }
55
+ SetTexture [_UpTex] { combine texture }
67
- SetTexture[_UpTex2] { constantColor(0, 0, 0,[_Blend]);
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, 0, 0,[_Blend]);
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