質問編集履歴
1
shaderの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -132,7 +132,59 @@
|
|
132
132
|
_RightTex ("Right_Texture", 2D) = "gray"{}
|
133
133
|
}
|
134
134
|
...
|
135
|
+
float4 frag (v2f i) : SV_Target
|
136
|
+
{
|
137
|
+
float4 col;
|
138
|
+
Pix_no pix_no;
|
139
|
+
float4 RGBA;
|
140
|
+
int index = 0;
|
141
|
+
|
142
|
+
|
143
|
+
#if 1 //描画OFF(FPSテスト)
|
144
|
+
|
145
|
+
i.uv.y = 1.0f - i.uv.y;
|
146
|
+
//i.uv.y = 1.0f - i.uv.y;
|
147
|
+
|
148
|
+
pix_no = pixel_no(i.uv);
|
149
|
+
|
150
|
+
if(_Alignment_flg){
|
151
|
+
RGBA = Alignment_Generate(pix_no, i.uv);
|
152
|
+
}
|
153
|
+
else{
|
154
|
+
if(_Tracking_OnOff_flg){
|
155
|
+
index = _Index;
|
156
|
+
}
|
157
|
+
else if(_Continuous_Change_flg)
|
158
|
+
{
|
159
|
+
index = _Continuous_Index;
|
160
|
+
}
|
161
|
+
|
162
|
+
if(index == 0){
|
163
|
+
RGBA = Pattern0_Generate(pix_no, i.uv);
|
164
|
+
}
|
165
|
+
else if(index == 1){
|
166
|
+
RGBA = Pattern1_Generate(pix_no, i.uv);
|
167
|
+
}
|
168
|
+
...
|
169
|
+
|
170
|
+
}
|
171
|
+
|
172
|
+
//Pixel設定
|
173
|
+
col = RGBA;
|
174
|
+
|
175
|
+
// apply fog
|
176
|
+
//UNITY_APPLY_FOG(i.fogCoord, col);
|
177
|
+
#endif
|
178
|
+
|
179
|
+
return col;
|
180
|
+
}
|
181
|
+
|
182
|
+
ENDCG
|
183
|
+
}
|
184
|
+
}
|
135
185
|
}
|
186
|
+
|
187
|
+
}
|
136
188
|
```
|
137
189
|
|
138
190
|
|