468 lines
15 KiB
SQL
468 lines
15 KiB
SQL
#if 0
|
|
//
|
|
// Generated by Microsoft (R) D3D Shader Disassembler
|
|
//
|
|
//
|
|
// Input signature:
|
|
//
|
|
// Name Index Mask Register SysValue Format Used
|
|
// -------------------- ----- ------ -------- -------- ------- ------
|
|
// SV_Position 0 xyzw 0 NONE float xyzw
|
|
// NORMAL 0 xyz 1 NONE float xyz
|
|
// TEXCOORD 0 xy 2 NONE float xy
|
|
//
|
|
//
|
|
// Output signature:
|
|
//
|
|
// Name Index Mask Register SysValue Format Used
|
|
// -------------------- ----- ------ -------- -------- ------- ------
|
|
// COLOR 0 xyzw 0 NONE float xyzw
|
|
// COLOR 1 xyzw 1 NONE float xyzw
|
|
// TEXCOORD 0 xy 2 NONE float xy
|
|
// TEXCOORD 1 xyz 3 NONE float xyz
|
|
// SV_Position 0 xyzw 4 POS float xyzw
|
|
//
|
|
//
|
|
// Constant buffer to DX9 shader constant mappings:
|
|
//
|
|
// Target Reg Buffer Start Reg # of Regs Data Conversion
|
|
// ---------- ------- --------- --------- ----------------------
|
|
// c1 cb0 1 4 ( FLT, FLT, FLT, FLT)
|
|
// c5 cb0 7 1 ( FLT, FLT, FLT, FLT)
|
|
// c6 cb0 10 1 ( FLT, FLT, FLT, FLT)
|
|
// c7 cb0 12 4 ( FLT, FLT, FLT, FLT)
|
|
// c11 cb0 17 7 ( FLT, FLT, FLT, FLT)
|
|
//
|
|
//
|
|
// Runtime generated constant mappings:
|
|
//
|
|
// Target Reg Constant Description
|
|
// ---------- --------------------------------------------------
|
|
// c0 Vertex Shader position offset
|
|
//
|
|
//
|
|
// Level9 shader bytecode:
|
|
//
|
|
vs_2_0
|
|
def c18, 0, 1, 0, 0
|
|
dcl_texcoord v0
|
|
dcl_texcoord1 v1
|
|
dcl_texcoord2 v2
|
|
dp3 r0.x, v1, c11
|
|
dp3 r0.y, v1, c12
|
|
dp3 r0.z, v1, c13
|
|
nrm r1.xyz, r0
|
|
dp3 r0.x, -c4, r1
|
|
sge r0.y, r0.x, c18.x
|
|
mul r0.x, r0.x, r0.y
|
|
mul r0.xyz, r0.x, c5
|
|
mov r2.xyz, c2
|
|
mad oT0.xyz, r0, r2, c3
|
|
dp4 oPos.z, v0, c16
|
|
dp4 r0.x, v0, c7
|
|
max r0.x, r0.x, c18.x
|
|
min oT1.w, r0.x, c18.y
|
|
dp4 r0.x, v0, c8
|
|
dp4 r0.y, v0, c9
|
|
dp4 r0.z, v0, c10
|
|
add r0.xyz, -r0, c6
|
|
nrm r2.xyz, r0
|
|
dp3 r0.x, -r2, r1
|
|
add r0.x, r0.x, r0.x
|
|
mad oT3.xyz, r1, -r0.x, -r2
|
|
dp4 r0.x, v0, c14
|
|
dp4 r0.y, v0, c15
|
|
dp4 r0.z, v0, c17
|
|
mad oPos.xy, r0.z, c0, r0
|
|
mov oPos.w, r0.z
|
|
mov oT0.w, c2.w
|
|
mov oT1.xyz, c1.x
|
|
mov oT2.xy, v2
|
|
|
|
// approximately 34 instruction slots used
|
|
vs_4_0
|
|
dcl_constantbuffer CB0[24], immediateIndexed
|
|
dcl_input v0.xyzw
|
|
dcl_input v1.xyz
|
|
dcl_input v2.xy
|
|
dcl_output o0.xyzw
|
|
dcl_output o1.xyzw
|
|
dcl_output o2.xy
|
|
dcl_output o3.xyz
|
|
dcl_output_siv o4.xyzw, position
|
|
dcl_temps 2
|
|
dp3 r0.x, v1.xyzx, cb0[17].xyzx
|
|
dp3 r0.y, v1.xyzx, cb0[18].xyzx
|
|
dp3 r0.z, v1.xyzx, cb0[19].xyzx
|
|
dp3 r0.w, r0.xyzx, r0.xyzx
|
|
rsq r0.w, r0.w
|
|
mul r0.xyz, r0.wwww, r0.xyzx
|
|
dp3 r0.w, -cb0[4].xyzx, r0.xyzx
|
|
ge r1.x, r0.w, l(0.000000)
|
|
and r1.x, r1.x, l(0x3f800000)
|
|
mul r0.w, r0.w, r1.x
|
|
mul r1.xyz, r0.wwww, cb0[7].xyzx
|
|
mad o0.xyz, r1.xyzx, cb0[2].xyzx, cb0[3].xyzx
|
|
mov o0.w, cb0[2].w
|
|
dp4_sat o1.w, v0.xyzw, cb0[12].xyzw
|
|
mov o1.xyz, cb0[1].xxxx
|
|
mov o2.xy, v2.xyxx
|
|
dp4 r1.x, v0.xyzw, cb0[13].xyzw
|
|
dp4 r1.y, v0.xyzw, cb0[14].xyzw
|
|
dp4 r1.z, v0.xyzw, cb0[15].xyzw
|
|
add r1.xyz, -r1.xyzx, cb0[10].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 o3.xyz, r0.xyzx, -r0.wwww, -r1.xyzx
|
|
dp4 o4.x, v0.xyzw, cb0[20].xyzw
|
|
dp4 o4.y, v0.xyzw, cb0[21].xyzw
|
|
dp4 o4.z, v0.xyzw, cb0[22].xyzw
|
|
dp4 o4.w, v0.xyzw, cb0[23].xyzw
|
|
ret
|
|
// Approximately 0 instruction slots used
|
|
#endif
|
|
|
|
const BYTE EnvironmentMapEffect_VSEnvMapOneLight[] =
|
|
{
|
|
68, 88, 66, 67, 27, 62,
|
|
114, 163, 209, 76, 199, 240,
|
|
199, 93, 202, 210, 161, 55,
|
|
236, 164, 1, 0, 0, 0,
|
|
228, 7, 0, 0, 4, 0,
|
|
0, 0, 48, 0, 0, 0,
|
|
176, 2, 0, 0, 204, 6,
|
|
0, 0, 64, 7, 0, 0,
|
|
65, 111, 110, 57, 120, 2,
|
|
0, 0, 120, 2, 0, 0,
|
|
0, 2, 254, 255, 20, 2,
|
|
0, 0, 100, 0, 0, 0,
|
|
5, 0, 36, 0, 0, 0,
|
|
96, 0, 0, 0, 96, 0,
|
|
0, 0, 36, 0, 1, 0,
|
|
96, 0, 0, 0, 1, 0,
|
|
4, 0, 1, 0, 0, 0,
|
|
0, 0, 0, 0, 7, 0,
|
|
1, 0, 5, 0, 0, 0,
|
|
0, 0, 0, 0, 10, 0,
|
|
1, 0, 6, 0, 0, 0,
|
|
0, 0, 0, 0, 12, 0,
|
|
4, 0, 7, 0, 0, 0,
|
|
0, 0, 0, 0, 17, 0,
|
|
7, 0, 11, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0,
|
|
0, 2, 254, 255, 81, 0,
|
|
0, 5, 18, 0, 15, 160,
|
|
0, 0, 0, 0, 0, 0,
|
|
128, 63, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 31, 0,
|
|
0, 2, 5, 0, 0, 128,
|
|
0, 0, 15, 144, 31, 0,
|
|
0, 2, 5, 0, 1, 128,
|
|
1, 0, 15, 144, 31, 0,
|
|
0, 2, 5, 0, 2, 128,
|
|
2, 0, 15, 144, 8, 0,
|
|
0, 3, 0, 0, 1, 128,
|
|
1, 0, 228, 144, 11, 0,
|
|
228, 160, 8, 0, 0, 3,
|
|
0, 0, 2, 128, 1, 0,
|
|
228, 144, 12, 0, 228, 160,
|
|
8, 0, 0, 3, 0, 0,
|
|
4, 128, 1, 0, 228, 144,
|
|
13, 0, 228, 160, 36, 0,
|
|
0, 2, 1, 0, 7, 128,
|
|
0, 0, 228, 128, 8, 0,
|
|
0, 3, 0, 0, 1, 128,
|
|
4, 0, 228, 161, 1, 0,
|
|
228, 128, 13, 0, 0, 3,
|
|
0, 0, 2, 128, 0, 0,
|
|
0, 128, 18, 0, 0, 160,
|
|
5, 0, 0, 3, 0, 0,
|
|
1, 128, 0, 0, 0, 128,
|
|
0, 0, 85, 128, 5, 0,
|
|
0, 3, 0, 0, 7, 128,
|
|
0, 0, 0, 128, 5, 0,
|
|
228, 160, 1, 0, 0, 2,
|
|
2, 0, 7, 128, 2, 0,
|
|
228, 160, 4, 0, 0, 4,
|
|
0, 0, 7, 224, 0, 0,
|
|
228, 128, 2, 0, 228, 128,
|
|
3, 0, 228, 160, 9, 0,
|
|
0, 3, 0, 0, 4, 192,
|
|
0, 0, 228, 144, 16, 0,
|
|
228, 160, 9, 0, 0, 3,
|
|
0, 0, 1, 128, 0, 0,
|
|
228, 144, 7, 0, 228, 160,
|
|
11, 0, 0, 3, 0, 0,
|
|
1, 128, 0, 0, 0, 128,
|
|
18, 0, 0, 160, 10, 0,
|
|
0, 3, 1, 0, 8, 224,
|
|
0, 0, 0, 128, 18, 0,
|
|
85, 160, 9, 0, 0, 3,
|
|
0, 0, 1, 128, 0, 0,
|
|
228, 144, 8, 0, 228, 160,
|
|
9, 0, 0, 3, 0, 0,
|
|
2, 128, 0, 0, 228, 144,
|
|
9, 0, 228, 160, 9, 0,
|
|
0, 3, 0, 0, 4, 128,
|
|
0, 0, 228, 144, 10, 0,
|
|
228, 160, 2, 0, 0, 3,
|
|
0, 0, 7, 128, 0, 0,
|
|
228, 129, 6, 0, 228, 160,
|
|
36, 0, 0, 2, 2, 0,
|
|
7, 128, 0, 0, 228, 128,
|
|
8, 0, 0, 3, 0, 0,
|
|
1, 128, 2, 0, 228, 129,
|
|
1, 0, 228, 128, 2, 0,
|
|
0, 3, 0, 0, 1, 128,
|
|
0, 0, 0, 128, 0, 0,
|
|
0, 128, 4, 0, 0, 4,
|
|
3, 0, 7, 224, 1, 0,
|
|
228, 128, 0, 0, 0, 129,
|
|
2, 0, 228, 129, 9, 0,
|
|
0, 3, 0, 0, 1, 128,
|
|
0, 0, 228, 144, 14, 0,
|
|
228, 160, 9, 0, 0, 3,
|
|
0, 0, 2, 128, 0, 0,
|
|
228, 144, 15, 0, 228, 160,
|
|
9, 0, 0, 3, 0, 0,
|
|
4, 128, 0, 0, 228, 144,
|
|
17, 0, 228, 160, 4, 0,
|
|
0, 4, 0, 0, 3, 192,
|
|
0, 0, 170, 128, 0, 0,
|
|
228, 160, 0, 0, 228, 128,
|
|
1, 0, 0, 2, 0, 0,
|
|
8, 192, 0, 0, 170, 128,
|
|
1, 0, 0, 2, 0, 0,
|
|
8, 224, 2, 0, 255, 160,
|
|
1, 0, 0, 2, 1, 0,
|
|
7, 224, 1, 0, 0, 160,
|
|
1, 0, 0, 2, 2, 0,
|
|
3, 224, 2, 0, 228, 144,
|
|
255, 255, 0, 0, 83, 72,
|
|
68, 82, 20, 4, 0, 0,
|
|
64, 0, 1, 0, 5, 1,
|
|
0, 0, 89, 0, 0, 4,
|
|
70, 142, 32, 0, 0, 0,
|
|
0, 0, 24, 0, 0, 0,
|
|
95, 0, 0, 3, 242, 16,
|
|
16, 0, 0, 0, 0, 0,
|
|
95, 0, 0, 3, 114, 16,
|
|
16, 0, 1, 0, 0, 0,
|
|
95, 0, 0, 3, 50, 16,
|
|
16, 0, 2, 0, 0, 0,
|
|
101, 0, 0, 3, 242, 32,
|
|
16, 0, 0, 0, 0, 0,
|
|
101, 0, 0, 3, 242, 32,
|
|
16, 0, 1, 0, 0, 0,
|
|
101, 0, 0, 3, 50, 32,
|
|
16, 0, 2, 0, 0, 0,
|
|
101, 0, 0, 3, 114, 32,
|
|
16, 0, 3, 0, 0, 0,
|
|
103, 0, 0, 4, 242, 32,
|
|
16, 0, 4, 0, 0, 0,
|
|
1, 0, 0, 0, 104, 0,
|
|
0, 2, 2, 0, 0, 0,
|
|
16, 0, 0, 8, 18, 0,
|
|
16, 0, 0, 0, 0, 0,
|
|
70, 18, 16, 0, 1, 0,
|
|
0, 0, 70, 130, 32, 0,
|
|
0, 0, 0, 0, 17, 0,
|
|
0, 0, 16, 0, 0, 8,
|
|
34, 0, 16, 0, 0, 0,
|
|
0, 0, 70, 18, 16, 0,
|
|
1, 0, 0, 0, 70, 130,
|
|
32, 0, 0, 0, 0, 0,
|
|
18, 0, 0, 0, 16, 0,
|
|
0, 8, 66, 0, 16, 0,
|
|
0, 0, 0, 0, 70, 18,
|
|
16, 0, 1, 0, 0, 0,
|
|
70, 130, 32, 0, 0, 0,
|
|
0, 0, 19, 0, 0, 0,
|
|
16, 0, 0, 7, 130, 0,
|
|
16, 0, 0, 0, 0, 0,
|
|
70, 2, 16, 0, 0, 0,
|
|
0, 0, 70, 2, 16, 0,
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