-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfx4d_compiled_hdr
10126 lines (10106 loc) · 354 KB
/
fx4d_compiled_hdr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#if 0
//
// FX Version: fx_4_0
// Child effect (requires effect pool): false
//
// 4 local buffer(s)
//
cbuffer $Globals
{
float shpereRad = 0.0700000003; // Offset: 0, size: 4
float tubeRad = 0.0500000007; // Offset: 4, size: 4
}
cbuffer cbConstants
{
bool bProject4D; // Offset: 0, size: 4
}
cbuffer cbChangeOnResize
{
float4x4 Projection; // Offset: 0, size: 64
float2 RenderTargetSize; // Offset: 64, size: 8
}
cbuffer cbChangesEveryFrame
{
float4x4 World; // Offset: 0, size: 64
float3 CameraPosition; // Offset: 64, size: 12
float4x4 View; // Offset: 80, size: 64
float Time; // Offset: 144, size: 4
float4 Va; // Offset: 160, size: 16
float4 Vb; // Offset: 176, size: 16
float4 Vc; // Offset: 192, size: 16
float4 Vd; // Offset: 208, size: 16
float4 From4; // Offset: 224, size: 16
float ViewangleTanInv; // Offset: 240, size: 4
float3 vFlareSource3D; // Offset: 244, size: 12
float4 vFlareSpecularColor; // Offset: 256, size: 16
float4 vFaceSpecularColor; // Offset: 272, size: 16
float3 vFaceEnviColor; // Offset: 288, size: 12
}
//
// 15 local object(s)
//
Texture2D txNormal;
Texture2D txDepth;
TextureCube SkyboxTexture;
SamplerState samLinear
{
Filter = uint(MIN_MAG_MIP_LINEAR /* 21 */);
AddressU = uint(WRAP /* 1 */);
AddressV = uint(WRAP /* 1 */);
};
SamplerState samPoint
{
Filter = uint(MIN_MAG_MIP_POINT /* 0 */);
AddressU = uint(WRAP /* 1 */);
AddressV = uint(WRAP /* 1 */);
};
SamplerState SkyboxSampler
{
Filter = uint(MIN_MAG_MIP_LINEAR /* 21 */);
AddressU = uint(WRAP /* 1 */);
AddressV = uint(WRAP /* 1 */);
};
BlendState NoBlending
{
BlendEnable[0] = bool(FALSE /* 0 */);
};
DepthStencilState EnableDepth
{
DepthEnable = bool(TRUE /* 1 */);
DepthWriteMask = uint(ALL /* 1 */);
};
DepthStencilState DisableDepthWrite
{
DepthEnable = bool(TRUE /* 1 */);
DepthWriteMask = uint(ZERO /* 0 */);
};
DepthStencilState DisableDepth
{
DepthEnable = bool(FALSE /* 0 */);
};
BlendState SrcAlphaBlendingAdd
{
BlendEnable[0] = bool(TRUE /* 1 */);
SrcBlend[0] = uint(SRC_ALPHA /* 5 */);
DestBlend[0] = uint(ONE /* 2 */);
BlendOp[0] = uint(ADD /* 1 */);
SrcBlendAlpha[0] = uint(ZERO /* 1 */);
DestBlendAlpha[0] = uint(ZERO /* 1 */);
BlendOpAlpha[0] = uint(ADD /* 1 */);
RenderTargetWriteMask[0] = byte(0x0f);
};
RasterizerState SolidState
{
FillMode = uint(SOLID /* 3 */);
CullMode = uint(BACK /* 3 */);
};
RasterizerState SolidStateFront
{
FillMode = uint(SOLID /* 3 */);
CullMode = uint(FRONT /* 2 */);
};
RasterizerState SolidStateNoCull
{
FillMode = uint(SOLID /* 3 */);
CullMode = uint(NONE /* 1 */);
};
RasterizerState WireState
{
FillMode = uint(WIREFRAME /* 2 */);
CullMode = uint(NONE /* 1 */);
};
//
// 2 technique(s)
//
technique10 RenderFaces
{
pass P0
{
VertexShader = asm {
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
// Buffer Definitions:
//
// cbuffer cbConstants
// {
//
// bool bProject4D; // Offset: 0 Size: 4
//
// }
//
// cbuffer cbChangesEveryFrame
// {
//
// float4x4 World; // Offset: 0 Size: 64 [unused]
// float3 CameraPosition; // Offset: 64 Size: 12 [unused]
// float4x4 View; // Offset: 80 Size: 64 [unused]
// float Time; // Offset: 144 Size: 4 [unused]
// float4 Va; // Offset: 160 Size: 16
// float4 Vb; // Offset: 176 Size: 16
// float4 Vc; // Offset: 192 Size: 16
// float4 Vd; // Offset: 208 Size: 16
// float4 From4; // Offset: 224 Size: 16
// float ViewangleTanInv; // Offset: 240 Size: 4
// float3 vFlareSource3D; // Offset: 244 Size: 12 [unused]
// float4 vFlareSpecularColor; // Offset: 256 Size: 16 [unused]
// float4 vFaceSpecularColor; // Offset: 272 Size: 16 [unused]
// float3 vFaceEnviColor; // Offset: 288 Size: 12 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// cbConstants cbuffer NA NA 0 1
// cbChangesEveryFrame cbuffer NA NA 1 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION 0 xyzw 0 NONE float xyzw
// NORMAL 0 xyzw 1 NONE float xyzw
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float xyzw
// TEXCOORD 0 xyzw 1 NONE float xyzw
// TEXCOORD 1 xyz 2 NONE float xyz
//
vs_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_constantbuffer cb1[16], immediateIndexed
dcl_input v0.xyzw
dcl_input v1.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyz
dcl_temps 3
add r0.xyzw, v0.xyzw, -cb1[14].xyzw
dp4 r1.x, r0.xyzw, cb1[13].xyzw
div r1.x, cb1[15].x, r1.x
div r2.w, l(1.000000, 1.000000, 1.000000, 1.000000), r1.x
dp4 r2.x, r0.xyzw, cb1[10].xyzw
dp4 r2.y, r0.xyzw, cb1[11].xyzw
dp4 r2.z, r0.xyzw, cb1[12].xyzw
mul r0.xyzw, r1.xxxx, r2.xyzw
movc r0.xyzw, cb0[0].xxxx, r0.xyzw, v0.xyzw
mov o0.xyzw, r0.xyzw
mov o1.xyzw, r0.xyzw
add r0.xyzw, v1.xyzw, -cb1[14].xyzw
dp4 r1.x, r0.xyzw, cb1[13].xyzw
div r1.x, cb1[15].x, r1.x
dp4 r2.x, r0.xyzw, cb1[10].xyzw
dp4 r2.y, r0.xyzw, cb1[11].xyzw
dp4 r2.z, r0.xyzw, cb1[12].xyzw
mul r0.xyz, r1.xxxx, r2.xyzx
movc o2.xyz, cb0[0].xxxx, r0.xyzx, v1.xyzx
ret
// Approximately 20 instruction slots used
};
GeometryShader = asm {
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
// Buffer Definitions:
//
// cbuffer cbChangeOnResize
// {
//
// float4x4 Projection; // Offset: 0 Size: 64
// float2 RenderTargetSize; // Offset: 64 Size: 8 [unused]
//
// }
//
// cbuffer cbChangesEveryFrame
// {
//
// float4x4 World; // Offset: 0 Size: 64
// float3 CameraPosition; // Offset: 64 Size: 12 [unused]
// float4x4 View; // Offset: 80 Size: 64
// float Time; // Offset: 144 Size: 4 [unused]
// float4 Va; // Offset: 160 Size: 16 [unused]
// float4 Vb; // Offset: 176 Size: 16 [unused]
// float4 Vc; // Offset: 192 Size: 16 [unused]
// float4 Vd; // Offset: 208 Size: 16 [unused]
// float4 From4; // Offset: 224 Size: 16 [unused]
// float ViewangleTanInv; // Offset: 240 Size: 4 [unused]
// float3 vFlareSource3D; // Offset: 244 Size: 12 [unused]
// float4 vFlareSpecularColor; // Offset: 256 Size: 16 [unused]
// float4 vFaceSpecularColor; // Offset: 272 Size: 16 [unused]
// float3 vFaceEnviColor; // Offset: 288 Size: 12 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// cbChangeOnResize cbuffer NA NA 0 1
// cbChangesEveryFrame cbuffer NA NA 1 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float xyzw
// TEXCOORD 0 xyzw 1 NONE float
// TEXCOORD 1 xyz 2 NONE float
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float xyzw
// TEXCOORD 0 xyzw 1 NONE float xyzw
// TEXCOORD 1 xyz 2 NONE float xyz
//
gs_4_0
dcl_constantbuffer cb0[4], immediateIndexed
dcl_constantbuffer cb1[9], immediateIndexed
dcl_input_siv v[3][0].xyzw, position
dcl_input v[3][1].xyzw
dcl_input v[3][2].xyz
dcl_temps 8
dcl_inputprimitive triangle
dcl_outputtopology trianglestrip
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyz
dcl_maxout 3
mul r0.xyzw, cb1[1].xyzw, cb1[6].yyyy
mad r0.xyzw, cb1[0].xyzw, cb1[6].xxxx, r0.xyzw
mad r0.xyzw, cb1[2].xyzw, cb1[6].zzzz, r0.xyzw
mad r0.xyzw, cb1[3].xyzw, cb1[6].wwww, r0.xyzw
mul r1.xyzw, r0.xyzw, cb0[0].yyyy
mul r2.xyzw, cb1[1].xyzw, cb1[5].yyyy
mad r2.xyzw, cb1[0].xyzw, cb1[5].xxxx, r2.xyzw
mad r2.xyzw, cb1[2].xyzw, cb1[5].zzzz, r2.xyzw
mad r2.xyzw, cb1[3].xyzw, cb1[5].wwww, r2.xyzw
mad r1.xyzw, r2.xyzw, cb0[0].xxxx, r1.xyzw
mul r3.xyzw, cb1[1].xyzw, cb1[7].yyyy
mad r3.xyzw, cb1[0].xyzw, cb1[7].xxxx, r3.xyzw
mad r3.xyzw, cb1[2].xyzw, cb1[7].zzzz, r3.xyzw
mad r3.xyzw, cb1[3].xyzw, cb1[7].wwww, r3.xyzw
mad r1.xyzw, r3.xyzw, cb0[0].zzzz, r1.xyzw
mul r4.xyzw, cb1[1].xyzw, cb1[8].yyyy
mad r4.xyzw, cb1[0].xyzw, cb1[8].xxxx, r4.xyzw
mad r4.xyzw, cb1[2].xyzw, cb1[8].zzzz, r4.xyzw
mad r4.xyzw, cb1[3].xyzw, cb1[8].wwww, r4.xyzw
mad r1.xyzw, r4.xyzw, cb0[0].wwww, r1.xyzw
dp4 r5.x, v[0][0].xyzw, r1.xyzw
mov o0.x, r5.x
mul r5.xyzw, r0.xyzw, cb0[1].yyyy
mad r5.xyzw, r2.xyzw, cb0[1].xxxx, r5.xyzw
mad r5.xyzw, r3.xyzw, cb0[1].zzzz, r5.xyzw
mad r5.xyzw, r4.xyzw, cb0[1].wwww, r5.xyzw
dp4 r6.x, v[0][0].xyzw, r5.xyzw
mov o0.y, r6.x
mul r6.xyzw, r0.xyzw, cb0[2].yyyy
mul r0.xyzw, r0.xyzw, cb0[3].yyyy
mad r0.xyzw, r2.xyzw, cb0[3].xxxx, r0.xyzw
mad r2.xyzw, r2.xyzw, cb0[2].xxxx, r6.xyzw
mad r2.xyzw, r3.xyzw, cb0[2].zzzz, r2.xyzw
mad r0.xyzw, r3.xyzw, cb0[3].zzzz, r0.xyzw
mad r0.xyzw, r4.xyzw, cb0[3].wwww, r0.xyzw
mad r2.xyzw, r4.xyzw, cb0[2].wwww, r2.xyzw
dp4 r3.x, v[0][0].xyzw, r2.xyzw
mov o0.z, r3.x
dp4 r3.x, v[0][0].xyzw, r0.xyzw
mov o0.w, r3.x
mov o1.xyzw, v[0][0].xyzw
dp4 r3.x, v[0][0].xyzw, v[0][0].xyzw
rsq r3.x, r3.x
mul r3.xyz, r3.xxxx, v[0][0].xyzx
add r4.xyz, -v[1][0].zxyz, v[0][0].zxyz
add r6.xyz, -v[0][0].yzxy, v[2][0].yzxy
mul r7.xyz, r4.xyzx, r6.xyzx
mad r4.xyz, r4.zxyz, r6.yzxy, -r7.xyzx
dp3 r3.w, r4.xyzx, r4.xyzx
rsq r3.w, r3.w
mul r4.xyz, r3.wwww, r4.xyzx
dp3 r3.x, r4.xyzx, r3.xyzx
lt r3.x, r3.x, l(0.000000)
movc r3.xyz, r3.xxxx, -r4.xyzx, r4.xyzx
mov o2.xyz, r3.xyzx
emit
dp4 r3.w, v[1][0].xyzw, r1.xyzw
dp4 r1.x, v[2][0].xyzw, r1.xyzw
mov o0.x, r3.w
dp4 r1.y, v[1][0].xyzw, r5.xyzw
dp4 r1.z, v[2][0].xyzw, r5.xyzw
mov o0.y, r1.y
dp4 r1.y, v[1][0].xyzw, r2.xyzw
dp4 r1.w, v[2][0].xyzw, r2.xyzw
mov o0.z, r1.y
dp4 r1.y, v[1][0].xyzw, r0.xyzw
dp4 r0.x, v[2][0].xyzw, r0.xyzw
mov o0.w, r1.y
mov o1.xyzw, v[1][0].xyzw
mov o2.xyz, r3.xyzx
emit
mov o0.x, r1.x
mov o0.y, r1.z
mov o0.z, r1.w
mov o0.w, r0.x
mov o1.xyzw, v[2][0].xyzw
mov o2.xyz, r3.xyzx
emit
cut
ret
// Approximately 80 instruction slots used
};
PixelShader = asm {
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
// Buffer Definitions:
//
// cbuffer cbChangesEveryFrame
// {
//
// float4x4 World; // Offset: 0 Size: 64 [unused]
// float3 CameraPosition; // Offset: 64 Size: 12
// float4x4 View; // Offset: 80 Size: 64 [unused]
// float Time; // Offset: 144 Size: 4 [unused]
// float4 Va; // Offset: 160 Size: 16 [unused]
// float4 Vb; // Offset: 176 Size: 16 [unused]
// float4 Vc; // Offset: 192 Size: 16 [unused]
// float4 Vd; // Offset: 208 Size: 16 [unused]
// float4 From4; // Offset: 224 Size: 16 [unused]
// float ViewangleTanInv; // Offset: 240 Size: 4 [unused]
// float3 vFlareSource3D; // Offset: 244 Size: 12
// float4 vFlareSpecularColor; // Offset: 256 Size: 16 [unused]
// float4 vFaceSpecularColor; // Offset: 272 Size: 16
// float3 vFaceEnviColor; // Offset: 288 Size: 12
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// samLinear sampler NA NA 0 1
// SkyboxSampler sampler NA NA 1 1
// txNormal texture float4 2d 0 1
// SkyboxTexture texture float4 cube 1 1
// cbChangesEveryFrame cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// TEXCOORD 0 xyzw 1 NONE float xyz
// TEXCOORD 1 xyz 2 NONE float xyz
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target 0 xyzw 0 TARGET float xyzw
//
ps_4_0
dcl_constantbuffer cb0[19], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texturecube (float,float,float,float) t1
dcl_input_ps linear v1.xyz
dcl_input_ps linear v2.xyz
dcl_output o0.xyzw
dcl_temps 4
add r0.xyzw, v1.yzzx, v1.yzzx
sample r1.xyzw, r0.zwzz, t0.xyzw, s0
sample r0.xyzw, r0.xyxx, t0.xyzw, s0
mad r0.xyz, r0.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r1.xyz, r1.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
mul r1.xyz, r1.xyzx, v2.yyyy
mad r0.xyz, r0.xyzx, v2.xxxx, r1.xyzx
add r1.xy, v1.xyxx, v1.xyxx
sample r1.xyzw, r1.xyxx, t0.xyzw, s0
mad r1.xyz, r1.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r0.xyz, r1.xyzx, v2.zzzz, r0.xyzx
add r0.xyz, r0.xyzx, v2.xyzx
sincos r1.xyz, null, v1.xyzx
mul r1.xy, r0.xyxx, r1.xyxx
add r0.w, r1.y, r1.x
mad r0.w, r1.z, r0.z, r0.w
add r0.xyz, r0.wwww, r0.xyzx
dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx
add r1.xyz, -v1.xyzx, cb0[4].xyzx
dp3 r0.w, r1.xyzx, r1.xyzx
rsq r0.w, r0.w
mul r1.xyz, r0.wwww, r1.xyzx
dp3 r0.w, -r1.xyzx, r0.xyzx
add r0.w, r0.w, r0.w
mad r2.xyz, r0.xyzx, -r0.wwww, -r1.xyzx
dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, r2.xyzx
sample r2.xyzw, r2.xyzx, t1.xyzw, s1
dp3 r0.w, r1.xyzx, r0.xyzx
add r0.w, -|r0.w|, l(1.000000)
max r0.w, r0.w, l(0.000000)
mul r0.w, r0.w, r0.w
mul r0.w, r0.w, r0.w
mul r0.w, r0.w, r0.w
mul r3.w, r0.w, r2.w
mul r3.xyz, r2.xyzx, cb0[18].xyzx
add r2.xyz, -v1.xyzx, cb0[15].yzwy
dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, r2.xyzx
dp3 r0.w, -r2.xyzx, r0.xyzx
add r0.w, r0.w, r0.w
mad r0.xyz, r0.xyzx, -r0.wwww, -r2.xyzx
dp3_sat r0.x, r0.xyzx, r1.xyzx
mul r0.y, r0.x, r0.x
mul r0.x, r0.y, r0.x
mad_sat o0.xyzw, r0.xxxx, cb0[17].xyzw, r3.xyzw
ret
// Approximately 51 instruction slots used
};
AB_BlendFactor = float4(0, 0, 0, 0);
AB_SampleMask = uint(0xffffffff);
BlendState = SrcAlphaBlendingAdd;
RasterizerState = SolidStateNoCull;
DS_StencilRef = uint(0);
DepthStencilState = DisableDepthWrite;
}
}
technique10 RenderCubes
{
pass P0
{
VertexShader = asm {
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
// Buffer Definitions:
//
// cbuffer cbConstants
// {
//
// bool bProject4D; // Offset: 0 Size: 4
//
// }
//
// cbuffer cbChangesEveryFrame
// {
//
// float4x4 World; // Offset: 0 Size: 64 [unused]
// float3 CameraPosition; // Offset: 64 Size: 12 [unused]
// float4x4 View; // Offset: 80 Size: 64 [unused]
// float Time; // Offset: 144 Size: 4 [unused]
// float4 Va; // Offset: 160 Size: 16
// float4 Vb; // Offset: 176 Size: 16
// float4 Vc; // Offset: 192 Size: 16
// float4 Vd; // Offset: 208 Size: 16
// float4 From4; // Offset: 224 Size: 16
// float ViewangleTanInv; // Offset: 240 Size: 4
// float3 vFlareSource3D; // Offset: 244 Size: 12 [unused]
// float4 vFlareSpecularColor; // Offset: 256 Size: 16 [unused]
// float4 vFaceSpecularColor; // Offset: 272 Size: 16 [unused]
// float3 vFaceEnviColor; // Offset: 288 Size: 12 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// cbConstants cbuffer NA NA 0 1
// cbChangesEveryFrame cbuffer NA NA 1 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION 0 xyzw 0 NONE float xyzw
// NORMAL 0 xyzw 1 NONE float xyzw
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float xyzw
// TEXCOORD 0 xyzw 1 NONE float xyzw
// TEXCOORD 1 xyz 2 NONE float xyz
//
vs_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_constantbuffer cb1[16], immediateIndexed
dcl_input v0.xyzw
dcl_input v1.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyz
dcl_temps 3
add r0.xyzw, v0.xyzw, -cb1[14].xyzw
dp4 r1.x, r0.xyzw, cb1[13].xyzw
div r1.x, cb1[15].x, r1.x
div r2.w, l(1.000000, 1.000000, 1.000000, 1.000000), r1.x
dp4 r2.x, r0.xyzw, cb1[10].xyzw
dp4 r2.y, r0.xyzw, cb1[11].xyzw
dp4 r2.z, r0.xyzw, cb1[12].xyzw
mul r0.xyzw, r1.xxxx, r2.xyzw
movc r0.xyzw, cb0[0].xxxx, r0.xyzw, v0.xyzw
mov o0.xyzw, r0.xyzw
mov o1.xyzw, r0.xyzw
add r0.xyzw, v1.xyzw, -cb1[14].xyzw
dp4 r1.x, r0.xyzw, cb1[13].xyzw
div r1.x, cb1[15].x, r1.x
dp4 r2.x, r0.xyzw, cb1[10].xyzw
dp4 r2.y, r0.xyzw, cb1[11].xyzw
dp4 r2.z, r0.xyzw, cb1[12].xyzw
mul r0.xyz, r1.xxxx, r2.xyzx
movc o2.xyz, cb0[0].xxxx, r0.xyzx, v1.xyzx
ret
// Approximately 20 instruction slots used
};
GeometryShader = asm {
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
// float shpereRad; // Offset: 0 Size: 4 [unused]
// = 0x3d8f5c29
// float tubeRad; // Offset: 4 Size: 4
// = 0x3d4ccccd
//
// }
//
// cbuffer cbChangeOnResize
// {
//
// float4x4 Projection; // Offset: 0 Size: 64
// float2 RenderTargetSize; // Offset: 64 Size: 8 [unused]
//
// }
//
// cbuffer cbChangesEveryFrame
// {
//
// float4x4 World; // Offset: 0 Size: 64
// float3 CameraPosition; // Offset: 64 Size: 12 [unused]
// float4x4 View; // Offset: 80 Size: 64
// float Time; // Offset: 144 Size: 4 [unused]
// float4 Va; // Offset: 160 Size: 16 [unused]
// float4 Vb; // Offset: 176 Size: 16 [unused]
// float4 Vc; // Offset: 192 Size: 16 [unused]
// float4 Vd; // Offset: 208 Size: 16 [unused]
// float4 From4; // Offset: 224 Size: 16 [unused]
// float ViewangleTanInv; // Offset: 240 Size: 4 [unused]
// float3 vFlareSource3D; // Offset: 244 Size: 12 [unused]
// float4 vFlareSpecularColor; // Offset: 256 Size: 16 [unused]
// float4 vFaceSpecularColor; // Offset: 272 Size: 16 [unused]
// float3 vFaceEnviColor; // Offset: 288 Size: 12 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals cbuffer NA NA 0 1
// cbChangeOnResize cbuffer NA NA 1 1
// cbChangesEveryFrame cbuffer NA NA 2 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float xyzw
// TEXCOORD 0 xyzw 1 NONE float
// TEXCOORD 1 xyz 2 NONE float
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float xyzw
// TEXCOORD 0 xyzw 1 NONE float xyzw
// TEXCOORD 1 xyz 2 NONE float xyz
//
gs_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_constantbuffer cb1[4], immediateIndexed
dcl_constantbuffer cb2[9], immediateIndexed
dcl_input_siv v[2][0].xyzw, position
dcl_input v[2][1].xyzw
dcl_input v[2][2].xyz
dcl_temps 24
dcl_inputprimitive line
dcl_outputtopology trianglestrip
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyz
dcl_maxout 24
add r0.xyzw, -v[0][0].xyzw, v[1][0].xyzw
dp4 r0.w, r0.xyzw, r0.xyzw
rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.yzxy
mul r1.xy, r0.zxzz, l(0.000000, -1.000000, 0.000000, 0.000000)
mad r1.xy, r0.yzyy, l(-1.000000, 0.000000, 0.000000, 0.000000), -r1.xyxx
dp2 r0.w, r1.xyxx, r1.xyxx
sqrt r0.w, r0.w
lt r0.w, r0.w, l(0.010000)
movc r1.xyz, r0.wwww, l(0,0,1.000000,0), l(0,-1.000000,0,0)
mul r2.xyz, r0.xyzx, r1.xyzx
mad r1.xyz, r1.zxyz, r0.yzxy, -r2.xyzx
dp3 r0.w, r1.xyzx, r1.xyzx
rsq r0.w, r0.w
mul r1.xyz, r0.wwww, r1.xyzx
mad r2.xyz, r1.xyzx, cb0[0].yyyy, v[0][0].xyzx
mul r3.xyz, r0.xyzx, r1.zxyz
mad r0.xyz, r1.yzxy, r0.yzxy, -r3.xyzx
dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx
mad r3.xyz, r0.xyzx, cb0[0].yyyy, r2.xyzx
mad r2.xyz, -r0.xyzx, cb0[0].yyyy, r2.xyzx
mul r4.xyzw, cb2[1].xyzw, cb2[6].yyyy
mad r4.xyzw, cb2[0].xyzw, cb2[6].xxxx, r4.xyzw
mad r4.xyzw, cb2[2].xyzw, cb2[6].zzzz, r4.xyzw
mad r4.xyzw, cb2[3].xyzw, cb2[6].wwww, r4.xyzw
mul r5.xyzw, r4.xyzw, cb1[0].yyyy
mul r6.xyzw, cb2[1].xyzw, cb2[5].yyyy
mad r6.xyzw, cb2[0].xyzw, cb2[5].xxxx, r6.xyzw
mad r6.xyzw, cb2[2].xyzw, cb2[5].zzzz, r6.xyzw
mad r6.xyzw, cb2[3].xyzw, cb2[5].wwww, r6.xyzw
mad r5.xyzw, r6.xyzw, cb1[0].xxxx, r5.xyzw
mul r7.xyzw, cb2[1].xyzw, cb2[7].yyyy
mad r7.xyzw, cb2[0].xyzw, cb2[7].xxxx, r7.xyzw
mad r7.xyzw, cb2[2].xyzw, cb2[7].zzzz, r7.xyzw
mad r7.xyzw, cb2[3].xyzw, cb2[7].wwww, r7.xyzw
mad r5.xyzw, r7.xyzw, cb1[0].zzzz, r5.xyzw
mul r8.xyzw, cb2[1].xyzw, cb2[8].yyyy
mad r8.xyzw, cb2[0].xyzw, cb2[8].xxxx, r8.xyzw
mad r8.xyzw, cb2[2].xyzw, cb2[8].zzzz, r8.xyzw
mad r8.xyzw, cb2[3].xyzw, cb2[8].wwww, r8.xyzw
mad r5.xyzw, r8.xyzw, cb1[0].wwww, r5.xyzw
mov r3.w, l(1.000000)
dp4 r0.w, r3.xyzw, r5.xyzw
mov o0.x, r0.w
mul r9.xyzw, r4.xyzw, cb1[1].yyyy
mad r9.xyzw, r6.xyzw, cb1[1].xxxx, r9.xyzw
mad r9.xyzw, r7.xyzw, cb1[1].zzzz, r9.xyzw
mad r9.xyzw, r8.xyzw, cb1[1].wwww, r9.xyzw
dp4 r1.w, r3.xyzw, r9.xyzw
mov o0.y, r1.w
mul r10.xyzw, r4.xyzw, cb1[2].yyyy
mul r4.xyzw, r4.xyzw, cb1[3].yyyy
mad r4.xyzw, r6.xyzw, cb1[3].xxxx, r4.xyzw
mad r6.xyzw, r6.xyzw, cb1[2].xxxx, r10.xyzw
mad r6.xyzw, r7.xyzw, cb1[2].zzzz, r6.xyzw
mad r4.xyzw, r7.xyzw, cb1[3].zzzz, r4.xyzw
mad r4.xyzw, r8.xyzw, cb1[3].wwww, r4.xyzw
mad r6.xyzw, r8.xyzw, cb1[2].wwww, r6.xyzw
dp4 r7.x, r3.xyzw, r6.xyzw
mov o0.z, r7.x
dp4 r7.y, r3.xyzw, r4.xyzw
add r8.xyzw, r3.xyzw, -v[0][0].xyzw
mov o0.w, r7.y
mov o1.xyz, r3.xyzx
mov o1.w, l(1.000000)
dp4 r3.w, r8.xyzw, r8.xyzw
rsq r3.w, r3.w
mul r8.xyz, r3.wwww, r8.xyzx
mov o2.xyz, r8.xyzx
emit
mov r2.w, l(1.000000)
dp4 r3.w, r2.xyzw, r5.xyzw
mov o0.x, r3.w
dp4 r7.z, r2.xyzw, r9.xyzw
mov o0.y, r7.z
dp4 r7.w, r2.xyzw, r6.xyzw
mov o0.z, r7.w
dp4 r8.w, r2.xyzw, r4.xyzw
add r10.xyzw, r2.xyzw, -v[0][0].xyzw
mov o0.w, r8.w
mov o1.xyz, r2.xyzx
mov o1.w, l(1.000000)
dp4 r2.w, r10.xyzw, r10.xyzw
rsq r2.w, r2.w
mul r10.xyz, r2.wwww, r10.xyzx
mov o2.xyz, r10.xyzx
emit
mad r11.xyz, -r1.xyzx, cb0[0].yyyy, v[0][0].xyzx
mad r12.xyz, r0.xyzx, cb0[0].yyyy, r11.xyzx
mad r11.xyz, -r0.xyzx, cb0[0].yyyy, r11.xyzx
mov r12.w, l(1.000000)
dp4 r2.w, r12.xyzw, r5.xyzw
mov o0.x, r2.w
dp4 r10.w, r12.xyzw, r9.xyzw
mov o0.y, r10.w
dp4 r13.x, r12.xyzw, r6.xyzw
mov o0.z, r13.x
dp4 r13.y, r12.xyzw, r4.xyzw
add r14.xyzw, r12.xyzw, -v[0][0].xyzw
mov o0.w, r13.y
mov o1.xyz, r12.xyzx
mov o1.w, l(1.000000)
dp4 r12.w, r14.xyzw, r14.xyzw
rsq r12.w, r12.w
mul r14.xyz, r12.wwww, r14.xyzx
mov o2.xyz, r14.xyzx
emit
mov r11.w, l(1.000000)
dp4 r12.w, r11.xyzw, r5.xyzw
mov o0.x, r12.w
dp4 r13.z, r11.xyzw, r9.xyzw
mov o0.y, r13.z
dp4 r13.w, r11.xyzw, r6.xyzw
mov o0.z, r13.w
dp4 r14.w, r11.xyzw, r4.xyzw
add r15.xyzw, r11.xyzw, -v[0][0].xyzw
mov o0.w, r14.w
mov o1.xyz, r11.xyzx
mov o1.w, l(1.000000)
dp4 r11.w, r15.xyzw, r15.xyzw
rsq r11.w, r11.w
mul r15.xyz, r11.wwww, r15.xyzx
mov o2.xyz, r15.xyzx
emit
cut
mad r16.xyz, r1.xyzx, cb0[0].yyyy, v[1][0].xyzx
mad r1.xyz, -r1.xyzx, cb0[0].yyyy, v[1][0].xyzx
mad r17.xyz, -r0.xyzx, cb0[0].yyyy, r16.xyzx
mad r16.xyz, r0.xyzx, cb0[0].yyyy, r16.xyzx
mov r17.w, l(1.000000)
dp4 r11.w, r17.xyzw, r5.xyzw
mov o0.x, r11.w
dp4 r15.w, r17.xyzw, r9.xyzw
mov o0.y, r15.w
dp4 r18.x, r17.xyzw, r6.xyzw
mov o0.z, r18.x
dp4 r18.y, r17.xyzw, r4.xyzw
add r19.xyzw, r17.xyzw, -v[1][0].xyzw
mov o0.w, r18.y
mov o1.xyz, r17.xyzx
mov o1.w, l(1.000000)
dp4 r17.w, r19.xyzw, r19.xyzw
rsq r17.w, r17.w
mul r19.xyz, r17.wwww, r19.xyzx
mov o2.xyz, r19.xyzx
emit
mov r16.w, l(1.000000)
dp4 r17.w, r16.xyzw, r5.xyzw
mov o0.x, r17.w
dp4 r18.z, r16.xyzw, r9.xyzw
mov o0.y, r18.z
dp4 r18.w, r16.xyzw, r6.xyzw
mov o0.z, r18.w
dp4 r19.w, r16.xyzw, r4.xyzw
add r20.xyzw, r16.xyzw, -v[1][0].xyzw
mov o0.w, r19.w
mov o1.xyz, r16.xyzx
mov o1.w, l(1.000000)
dp4 r16.w, r20.xyzw, r20.xyzw
rsq r16.w, r16.w
mul r20.xyz, r16.wwww, r20.xyzx
mov o2.xyz, r20.xyzx
emit
mad r21.xyz, -r0.xyzx, cb0[0].yyyy, r1.xyzx
mad r22.xyz, r0.xyzx, cb0[0].yyyy, r1.xyzx
mov r21.w, l(1.000000)
dp4 r0.x, r21.xyzw, r5.xyzw
mov o0.x, r0.x
dp4 r0.y, r21.xyzw, r9.xyzw
mov o0.y, r0.y
dp4 r0.z, r21.xyzw, r6.xyzw
mov o0.z, r0.z
dp4 r1.x, r21.xyzw, r4.xyzw
add r23.xyzw, r21.xyzw, -v[1][0].xyzw
mov o0.w, r1.x
mov o1.xyz, r21.xyzx
mov o1.w, l(1.000000)
dp4 r1.y, r23.xyzw, r23.xyzw
rsq r1.y, r1.y
mul r23.xyz, r1.yyyy, r23.xyzx
mov o2.xyz, r23.xyzx
emit
mov r22.w, l(1.000000)
dp4 r1.y, r22.xyzw, r5.xyzw
mov o0.x, r1.y
dp4 r1.z, r22.xyzw, r9.xyzw
mov o0.y, r1.z
dp4 r5.x, r22.xyzw, r6.xyzw
mov o0.z, r5.x
dp4 r4.x, r22.xyzw, r4.xyzw
add r6.xyzw, r22.xyzw, -v[1][0].xyzw
mov o0.w, r4.x
mov o1.xyz, r22.xyzx
mov o1.w, l(1.000000)
dp4 r4.y, r6.xyzw, r6.xyzw
rsq r4.y, r4.y
mul r4.yzw, r4.yyyy, r6.xxyz
mov o2.xyz, r4.yzwy
emit
cut
mov o0.x, r17.w
mov o0.y, r18.z
mov o0.z, r18.w
mov o0.w, r19.w
mov o1.xyz, r16.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r20.xyzx
emit
mov o0.x, r11.w
mov o0.y, r15.w
mov o0.z, r18.x
mov o0.w, r18.y
mov o1.xyz, r17.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r19.xyzx
emit
mov o0.x, r0.w
mov o0.y, r1.w
mov o0.z, r7.x
mov o0.w, r7.y
mov o1.xyz, r3.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r8.xyzx
emit
mov o0.x, r3.w
mov o0.y, r7.z
mov o0.z, r7.w
mov o0.w, r8.w
mov o1.xyz, r2.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r10.xyzx
emit
cut
mov o0.x, r2.w
mov o0.y, r10.w
mov o0.z, r13.x
mov o0.w, r13.y
mov o1.xyz, r12.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r14.xyzx
emit
mov o0.x, r12.w
mov o0.y, r13.z
mov o0.z, r13.w
mov o0.w, r14.w
mov o1.xyz, r11.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r15.xyzx
emit
mov o0.x, r1.y
mov o0.y, r1.z
mov o0.z, r5.x
mov o0.w, r4.x
mov o1.xyz, r22.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r4.yzwy
emit
mov o0.x, r0.x
mov o0.y, r0.y
mov o0.z, r0.z
mov o0.w, r1.x
mov o1.xyz, r21.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r23.xyzx
emit
cut
mov o0.x, r0.w
mov o0.y, r1.w
mov o0.z, r7.x
mov o0.w, r7.y
mov o1.xyz, r3.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r8.xyzx
emit
mov o0.x, r2.w
mov o0.y, r10.w
mov o0.z, r13.x
mov o0.w, r13.y
mov o1.xyz, r12.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r14.xyzx
emit
mov o0.x, r17.w
mov o0.y, r18.z
mov o0.z, r18.w
mov o0.w, r19.w
mov o1.xyz, r16.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r20.xyzx
emit
mov o0.x, r1.y
mov o0.y, r1.z
mov o0.z, r5.x
mov o0.w, r4.x
mov o1.xyz, r22.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r4.yzwy
emit
cut
mov o0.x, r12.w
mov o0.y, r13.z
mov o0.z, r13.w
mov o0.w, r14.w
mov o1.xyz, r11.xyzx
mov o1.w, l(1.000000)
mov o2.xyz, r15.xyzx
emit
mov o0.x, r3.w
mov o0.y, r7.z
mov o0.z, r7.w
mov o0.w, r8.w
mov o1.xyz, r2.xyzx
mov o1.w, l(1.000000)