質問編集履歴
1
shaderの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -266,6 +266,110 @@
|
|
266
266
|
|
267
267
|
...
|
268
268
|
|
269
|
+
float4 frag (v2f i) : SV_Target
|
270
|
+
|
271
|
+
{
|
272
|
+
|
273
|
+
float4 col;
|
274
|
+
|
275
|
+
Pix_no pix_no;
|
276
|
+
|
277
|
+
float4 RGBA;
|
278
|
+
|
279
|
+
int index = 0;
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
#if 1 //描画OFF(FPSテスト)
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
i.uv.y = 1.0f - i.uv.y;
|
290
|
+
|
291
|
+
//i.uv.y = 1.0f - i.uv.y;
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
pix_no = pixel_no(i.uv);
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
if(_Alignment_flg){
|
300
|
+
|
301
|
+
RGBA = Alignment_Generate(pix_no, i.uv);
|
302
|
+
|
303
|
+
}
|
304
|
+
|
305
|
+
else{
|
306
|
+
|
307
|
+
if(_Tracking_OnOff_flg){
|
308
|
+
|
309
|
+
index = _Index;
|
310
|
+
|
311
|
+
}
|
312
|
+
|
313
|
+
else if(_Continuous_Change_flg)
|
314
|
+
|
315
|
+
{
|
316
|
+
|
317
|
+
index = _Continuous_Index;
|
318
|
+
|
319
|
+
}
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
if(index == 0){
|
324
|
+
|
325
|
+
RGBA = Pattern0_Generate(pix_no, i.uv);
|
326
|
+
|
327
|
+
}
|
328
|
+
|
329
|
+
else if(index == 1){
|
330
|
+
|
331
|
+
RGBA = Pattern1_Generate(pix_no, i.uv);
|
332
|
+
|
333
|
+
}
|
334
|
+
|
335
|
+
...
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
}
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
//Pixel設定
|
344
|
+
|
345
|
+
col = RGBA;
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
// apply fog
|
350
|
+
|
351
|
+
//UNITY_APPLY_FOG(i.fogCoord, col);
|
352
|
+
|
353
|
+
#endif
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
return col;
|
358
|
+
|
359
|
+
}
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
ENDCG
|
364
|
+
|
365
|
+
}
|
366
|
+
|
367
|
+
}
|
368
|
+
|
369
|
+
}
|
370
|
+
|
371
|
+
|
372
|
+
|
269
373
|
}
|
270
374
|
|
271
375
|
```
|