Normal map texture shaders reconstruct z to support BC5_UNORM

This commit is contained in:
Chuck Walbourn 2019-01-18 13:47:34 -08:00
Родитель 774360316f
Коммит 0ac5556bf0
28 изменённых файлов: 3645 добавлений и 3507 удалений

Просмотреть файл

@ -52,10 +52,13 @@ dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx mul r0.xyz, r0.wwww, r0.xyzx
sample r2.xyzw, v0.xyxx, t2.xyzw, s0 sample r2.xyzw, v0.xyxx, t2.xyzw, s0
mad r2.xyz, r2.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000) mad r2.xy, r2.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r0.xyz, r0.xyzx, r2.yyyy mul r0.xyz, r0.xyzx, r2.yyyy
mad r0.xyz, r2.xxxx, r1.xyzx, r0.xyzx mad r0.xyz, r2.xxxx, r1.xyzx, r0.xyzx
mad r0.xyz, r2.zzzz, v2.xyzx, r0.xyzx dp2 r0.w, r2.xyxx, r2.xyxx
add r0.w, -r0.w, l(1.000000)
sqrt r0.w, r0.w
mad r0.xyz, r0.wwww, v2.xyzx, r0.xyzx
dp3 r0.w, r0.xyzx, r0.xyzx dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx mul r0.xyz, r0.wwww, r0.xyzx
@ -112,11 +115,11 @@ ret
const BYTE NormalMapEffect_PSNormalPixelLightingTx[] = const BYTE NormalMapEffect_PSNormalPixelLightingTx[] =
{ {
68, 88, 66, 67, 29, 193, 68, 88, 66, 67, 125, 9,
205, 58, 29, 58, 113, 152, 143, 123, 193, 191, 171, 56,
35, 87, 207, 214, 163, 17, 222, 200, 84, 36, 96, 49,
142, 121, 1, 0, 0, 0, 11, 177, 1, 0, 0, 0,
168, 10, 0, 0, 3, 0, 248, 10, 0, 0, 3, 0,
0, 0, 44, 0, 0, 0, 0, 0, 44, 0, 0, 0,
172, 0, 0, 0, 224, 0, 172, 0, 0, 0, 224, 0,
0, 0, 73, 83, 71, 78, 0, 0, 73, 83, 71, 78,
@ -150,8 +153,8 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTx[] =
0, 0, 83, 86, 95, 84, 0, 0, 83, 86, 95, 84,
97, 114, 103, 101, 116, 0, 97, 114, 103, 101, 116, 0,
171, 171, 83, 72, 68, 82, 171, 171, 83, 72, 68, 82,
192, 9, 0, 0, 64, 0, 16, 10, 0, 0, 64, 0,
0, 0, 112, 2, 0, 0, 0, 0, 132, 2, 0, 0,
89, 0, 0, 4, 70, 142, 89, 0, 0, 4, 70, 142,
32, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0,
14, 0, 0, 0, 90, 0, 14, 0, 0, 0, 90, 0,
@ -276,16 +279,16 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTx[] =
0, 0, 70, 126, 16, 0, 0, 0, 70, 126, 16, 0,
2, 0, 0, 0, 0, 96, 2, 0, 0, 0, 0, 96,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
50, 0, 0, 15, 114, 0, 50, 0, 0, 15, 50, 0,
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 2, 0, 70, 0, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0, 0, 0, 2, 64, 0, 0,
0, 0, 0, 64, 0, 0, 0, 0, 0, 64, 0, 0,
0, 64, 0, 0, 0, 64, 0, 64, 0, 0, 0, 0,
0, 0, 0, 0, 2, 64, 0, 0, 0, 0, 2, 64,
0, 0, 0, 0, 128, 191, 0, 0, 0, 0, 128, 191,
0, 0, 128, 191, 0, 0, 0, 0, 128, 191, 0, 0,
128, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0, 56, 0, 0, 7, 114, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0, 70, 2, 16, 0, 0, 0,
@ -296,31 +299,109 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTx[] =
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 1, 0, 70, 2, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 15, 0,
0, 9, 114, 0, 16, 0,
0, 0, 0, 0, 166, 10,
16, 0, 2, 0, 0, 0,
70, 18, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 16, 0,
0, 7, 130, 0, 16, 0, 0, 7, 130, 0, 16, 0,
0, 0, 0, 0, 70, 2, 0, 0, 0, 0, 70, 0,
16, 0, 2, 0, 0, 0,
70, 0, 16, 0, 2, 0,
0, 0, 0, 0, 0, 8,
130, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 128,
65, 0, 0, 0, 0, 0,
0, 0, 1, 64, 0, 0,
0, 0, 128, 63, 75, 0,
0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0,
50, 0, 0, 9, 114, 0,
16, 0, 0, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 18, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0, 70, 2, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 0, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 0, 0,
0, 9, 114, 0, 16, 0,
1, 0, 0, 0, 70, 18,
16, 128, 65, 0, 0, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
12, 0, 0, 0, 16, 0,
0, 7, 130, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 68, 0, 0, 5, 0, 0, 68, 0, 0, 5,
130, 0, 16, 0, 0, 0, 130, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0, 0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 50, 0,
0, 7, 114, 0, 16, 0, 0, 11, 114, 0, 16, 0,
0, 0, 0, 0, 246, 15, 2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0, 16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
1, 0, 0, 0, 58, 0,
16, 0, 1, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 2, 0, 0, 0,
246, 15, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 16, 0,
0, 7, 18, 0, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15,
16, 0, 0, 0, 0, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 50, 0,
0, 11, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 5, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 3, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 16, 0,
0, 7, 34, 0, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 3, 0, 0, 0,
70, 2, 16, 0, 0, 0, 70, 2, 16, 0, 0, 0,
0, 0, 0, 0, 0, 9,
114, 0, 16, 0, 1, 0,
0, 0, 70, 18, 16, 128,
65, 0, 0, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 12, 0,
0, 0, 16, 0, 0, 7, 0, 0, 16, 0, 0, 7,
130, 0, 16, 0, 0, 0, 130, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
@ -329,242 +410,177 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTx[] =
68, 0, 0, 5, 130, 0, 68, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0, 58, 0, 16, 0, 0, 0,
0, 0, 50, 0, 0, 11, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 2, 0, 114, 0, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
16, 0, 0, 7, 66, 0,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15, 0, 0, 0, 0, 52, 0,
16, 0, 0, 0, 0, 0, 0, 10, 114, 0, 16, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0,
3, 0, 0, 0, 16, 0,
0, 7, 130, 0, 16, 0,
1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 2, 0, 2, 64, 0, 0, 0, 0,
0, 0, 68, 0, 0, 5,
130, 0, 16, 0, 1, 0,
0, 0, 58, 0, 16, 0,
1, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
2, 0, 0, 0, 246, 15,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 16, 0, 0, 7,
18, 0, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
50, 0, 0, 11, 114, 0,
16, 0, 3, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 130,
32, 128, 65, 0, 0, 0,
0, 0, 0, 0, 4, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15,
16, 0, 0, 0, 0, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0,
0, 7, 130, 0, 16, 0, 0, 0, 16, 0, 0, 9,
0, 0, 0, 0, 70, 2, 18, 0, 16, 0, 2, 0,
16, 0, 3, 0, 0, 0, 0, 0, 70, 130, 32, 128,
70, 2, 16, 0, 3, 0, 65, 0, 0, 0, 0, 0,
0, 0, 68, 0, 0, 5, 0, 0, 3, 0, 0, 0,
130, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
3, 0, 0, 0, 246, 15,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 3,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0, 0,
16, 0, 0, 9, 34, 0, 70, 2, 16, 0, 0, 0,
16, 0, 2, 0, 0, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
16, 0, 0, 9, 66, 0,
16, 0, 2, 0, 0, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0,
5, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
29, 0, 0, 10, 114, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0, 0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 10, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
2, 64, 0, 0, 0, 0,
128, 63, 0, 0, 128, 63,
0, 0, 128, 63, 0, 0, 0, 0, 128, 63, 0, 0,
128, 63, 0, 0, 128, 63,
0, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 56, 0, 0, 7, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
47, 0, 0, 5, 114, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 1, 0, 114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 70, 2, 1, 0, 0, 0, 246, 143,
16, 0, 1, 0, 0, 0, 32, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0, 2, 0, 0, 0, 25, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 47, 0,
0, 5, 114, 0, 16, 0, 0, 5, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
56, 0, 0, 8, 114, 0, 56, 0, 0, 7, 114, 0,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0, 70, 2, 16, 0, 2, 0,
0, 0, 246, 143, 32, 0,
0, 0, 0, 0, 2, 0,
0, 0, 25, 0, 0, 5,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 56, 0, 1, 0, 0, 0, 56, 0,
0, 8, 114, 0, 16, 0,
2, 0, 0, 0, 86, 5,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 10, 0, 0, 0,
50, 0, 0, 10, 178, 0,
16, 0, 1, 0, 0, 0,
6, 0, 16, 0, 1, 0,
0, 0, 70, 136, 32, 0,
0, 0, 0, 0, 9, 0,
0, 0, 70, 8, 16, 0,
2, 0, 0, 0, 50, 0,
0, 10, 114, 0, 16, 0,
1, 0, 0, 0, 166, 10,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 11, 0, 0, 0,
70, 3, 16, 0, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
2, 0, 0, 0, 69, 0,
0, 9, 242, 0, 16, 0,
2, 0, 0, 0, 70, 16,
16, 0, 0, 0, 0, 0,
70, 126, 16, 0, 1, 0,
0, 0, 0, 96, 16, 0,
0, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0, 0, 7, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 2, 0,
0, 0, 86, 5, 16, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
10, 0, 0, 0, 50, 0,
0, 10, 178, 0, 16, 0,
1, 0, 0, 0, 6, 0,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
70, 136, 32, 0, 0, 0, 70, 2, 16, 0, 2, 0,
0, 0, 9, 0, 0, 0,
70, 8, 16, 0, 2, 0,
0, 0, 50, 0, 0, 10,
114, 0, 16, 0, 1, 0,
0, 0, 166, 10, 16, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
11, 0, 0, 0, 70, 3,
16, 0, 1, 0, 0, 0,
56, 0, 0, 8, 114, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 2, 0,
0, 0, 69, 0, 0, 9, 0, 0, 69, 0, 0, 9,
242, 0, 16, 0, 2, 0, 242, 0, 16, 0, 2, 0,
0, 0, 70, 16, 16, 0, 0, 0, 70, 16, 16, 0,
0, 0, 0, 0, 70, 126, 0, 0, 0, 0, 70, 126,
16, 0, 1, 0, 0, 0, 16, 0, 0, 0, 0, 0,
0, 96, 16, 0, 0, 0, 0, 96, 16, 0, 0, 0,
0, 0, 56, 0, 0, 7, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 1, 0, 242, 0, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 14, 16, 0,
1, 0, 0, 0, 70, 2, 2, 0, 0, 0, 70, 30,
16, 0, 2, 0, 0, 0, 16, 0, 3, 0, 0, 0,
69, 0, 0, 9, 242, 0, 56, 0, 0, 7, 114, 0,
16, 0, 2, 0, 0, 0,
70, 16, 16, 0, 0, 0,
0, 0, 70, 126, 16, 0,
0, 0, 0, 0, 0, 96,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 242, 0,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 70, 30, 16, 0,
3, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 2, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 3, 0,
0, 0, 86, 5, 16, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
7, 0, 0, 0, 50, 0,
0, 10, 178, 0, 16, 0,
0, 0, 0, 0, 6, 0,
16, 0, 0, 0, 0, 0,
70, 136, 32, 0, 0, 0,
0, 0, 6, 0, 0, 0,
70, 8, 16, 0, 3, 0,
0, 0, 50, 0, 0, 10,
114, 0, 16, 0, 0, 0,
0, 0, 166, 10, 16, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
8, 0, 0, 0, 70, 3,
16, 0, 0, 0, 0, 0,
50, 0, 0, 11, 114, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 50, 0, 0, 9,
114, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 1, 0, 70, 2, 16, 0, 1, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 13, 0,
0, 0, 246, 15, 16, 0, 0, 0, 246, 15, 16, 0,
2, 0, 0, 0, 70, 2, 2, 0, 0, 0, 56, 0,
16, 128, 65, 0, 0, 0, 0, 8, 114, 0, 16, 0,
0, 0, 0, 0, 50, 0, 3, 0, 0, 0, 86, 5,
0, 9, 114, 32, 16, 0, 16, 0, 0, 0, 0, 0,
0, 0, 0, 0, 246, 31, 70, 130, 32, 0, 0, 0,
16, 0, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0,
70, 2, 16, 0, 1, 0, 50, 0, 0, 10, 178, 0,
16, 0, 0, 0, 0, 0,
6, 0, 16, 0, 0, 0,
0, 0, 70, 136, 32, 0,
0, 0, 0, 0, 6, 0,
0, 0, 70, 8, 16, 0,
3, 0, 0, 0, 50, 0,
0, 10, 114, 0, 16, 0,
0, 0, 0, 0, 166, 10,
16, 0, 0, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 8, 0, 0, 0,
70, 3, 16, 0, 0, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 70, 130,
0, 5, 130, 32, 16, 0, 32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 58, 0, 0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
1, 0, 0, 0, 50, 0,
0, 9, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
62, 0, 0, 1 70, 2, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 50, 0,
0, 11, 114, 0, 16, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
13, 0, 0, 0, 246, 15,
16, 0, 2, 0, 0, 0,
70, 2, 16, 128, 65, 0,
0, 0, 0, 0, 0, 0,
50, 0, 0, 9, 114, 32,
16, 0, 0, 0, 0, 0,
246, 31, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
54, 0, 0, 5, 130, 32,
16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 2, 0,
0, 0, 62, 0, 0, 1
}; };

Двоичный файл не отображается.

Просмотреть файл

@ -52,10 +52,13 @@ dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx mul r0.xyz, r0.wwww, r0.xyzx
sample r2.xyzw, v0.xyxx, t2.xyzw, s0 sample r2.xyzw, v0.xyxx, t2.xyzw, s0
mad r2.xyz, r2.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000) mad r2.xy, r2.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r0.xyz, r0.xyzx, r2.yyyy mul r0.xyz, r0.xyzx, r2.yyyy
mad r0.xyz, r2.xxxx, r1.xyzx, r0.xyzx mad r0.xyz, r2.xxxx, r1.xyzx, r0.xyzx
mad r0.xyz, r2.zzzz, v2.xyzx, r0.xyzx dp2 r0.w, r2.xyxx, r2.xyxx
add r0.w, -r0.w, l(1.000000)
sqrt r0.w, r0.w
mad r0.xyz, r0.wwww, v2.xyzx, r0.xyzx
dp3 r0.w, r0.xyzx, r0.xyzx dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx mul r0.xyz, r0.wwww, r0.xyzx
@ -110,11 +113,11 @@ ret
const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFog[] = const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFog[] =
{ {
68, 88, 66, 67, 79, 36, 68, 88, 66, 67, 109, 179,
195, 101, 123, 61, 68, 103, 3, 31, 41, 29, 24, 198,
241, 44, 0, 159, 98, 156, 35, 199, 197, 228, 22, 35,
129, 201, 1, 0, 0, 0, 101, 90, 1, 0, 0, 0,
88, 10, 0, 0, 3, 0, 168, 10, 0, 0, 3, 0,
0, 0, 44, 0, 0, 0, 0, 0, 44, 0, 0, 0,
172, 0, 0, 0, 224, 0, 172, 0, 0, 0, 224, 0,
0, 0, 73, 83, 71, 78, 0, 0, 73, 83, 71, 78,
@ -148,8 +151,8 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFog[] =
0, 0, 83, 86, 95, 84, 0, 0, 83, 86, 95, 84,
97, 114, 103, 101, 116, 0, 97, 114, 103, 101, 116, 0,
171, 171, 83, 72, 68, 82, 171, 171, 83, 72, 68, 82,
112, 9, 0, 0, 64, 0, 192, 9, 0, 0, 64, 0,
0, 0, 92, 2, 0, 0, 0, 0, 112, 2, 0, 0,
89, 0, 0, 4, 70, 142, 89, 0, 0, 4, 70, 142,
32, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0,
13, 0, 0, 0, 90, 0, 13, 0, 0, 0, 90, 0,
@ -274,16 +277,16 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFog[] =
0, 0, 70, 126, 16, 0, 0, 0, 70, 126, 16, 0,
2, 0, 0, 0, 0, 96, 2, 0, 0, 0, 0, 96,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
50, 0, 0, 15, 114, 0, 50, 0, 0, 15, 50, 0,
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 2, 0, 70, 0, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0, 0, 0, 2, 64, 0, 0,
0, 0, 0, 64, 0, 0, 0, 0, 0, 64, 0, 0,
0, 64, 0, 0, 0, 64, 0, 64, 0, 0, 0, 0,
0, 0, 0, 0, 2, 64, 0, 0, 0, 0, 2, 64,
0, 0, 0, 0, 128, 191, 0, 0, 0, 0, 128, 191,
0, 0, 128, 191, 0, 0, 0, 0, 128, 191, 0, 0,
128, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0, 56, 0, 0, 7, 114, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0, 70, 2, 16, 0, 0, 0,
@ -294,31 +297,109 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFog[] =
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 1, 0, 70, 2, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 15, 0,
0, 9, 114, 0, 16, 0,
0, 0, 0, 0, 166, 10,
16, 0, 2, 0, 0, 0,
70, 18, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 16, 0,
0, 7, 130, 0, 16, 0, 0, 7, 130, 0, 16, 0,
0, 0, 0, 0, 70, 2, 0, 0, 0, 0, 70, 0,
16, 0, 2, 0, 0, 0,
70, 0, 16, 0, 2, 0,
0, 0, 0, 0, 0, 8,
130, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 128,
65, 0, 0, 0, 0, 0,
0, 0, 1, 64, 0, 0,
0, 0, 128, 63, 75, 0,
0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0,
50, 0, 0, 9, 114, 0,
16, 0, 0, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 18, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0, 70, 2, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 0, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 0, 0,
0, 9, 114, 0, 16, 0,
1, 0, 0, 0, 70, 18,
16, 128, 65, 0, 0, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
12, 0, 0, 0, 16, 0,
0, 7, 130, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 68, 0, 0, 5, 0, 0, 68, 0, 0, 5,
130, 0, 16, 0, 0, 0, 130, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0, 0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 50, 0,
0, 7, 114, 0, 16, 0, 0, 11, 114, 0, 16, 0,
0, 0, 0, 0, 246, 15, 2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0, 16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
1, 0, 0, 0, 58, 0,
16, 0, 1, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 2, 0, 0, 0,
246, 15, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 16, 0,
0, 7, 18, 0, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15,
16, 0, 0, 0, 0, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 50, 0,
0, 11, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 5, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 3, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 16, 0,
0, 7, 34, 0, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 3, 0, 0, 0,
70, 2, 16, 0, 0, 0, 70, 2, 16, 0, 0, 0,
0, 0, 0, 0, 0, 9,
114, 0, 16, 0, 1, 0,
0, 0, 70, 18, 16, 128,
65, 0, 0, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 12, 0,
0, 0, 16, 0, 0, 7, 0, 0, 16, 0, 0, 7,
130, 0, 16, 0, 0, 0, 130, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
@ -327,229 +408,164 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFog[] =
68, 0, 0, 5, 130, 0, 68, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0, 58, 0, 16, 0, 0, 0,
0, 0, 50, 0, 0, 11, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 2, 0, 114, 0, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
16, 0, 0, 7, 66, 0,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15, 0, 0, 0, 0, 52, 0,
16, 0, 0, 0, 0, 0, 0, 10, 114, 0, 16, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0,
3, 0, 0, 0, 16, 0,
0, 7, 130, 0, 16, 0,
1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 2, 0, 2, 64, 0, 0, 0, 0,
0, 0, 68, 0, 0, 5,
130, 0, 16, 0, 1, 0,
0, 0, 58, 0, 16, 0,
1, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
2, 0, 0, 0, 246, 15,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 16, 0, 0, 7,
18, 0, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
50, 0, 0, 11, 114, 0,
16, 0, 3, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 130,
32, 128, 65, 0, 0, 0,
0, 0, 0, 0, 4, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15,
16, 0, 0, 0, 0, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0,
0, 7, 130, 0, 16, 0, 0, 0, 16, 0, 0, 9,
0, 0, 0, 0, 70, 2, 18, 0, 16, 0, 2, 0,
16, 0, 3, 0, 0, 0, 0, 0, 70, 130, 32, 128,
70, 2, 16, 0, 3, 0, 65, 0, 0, 0, 0, 0,
0, 0, 68, 0, 0, 5, 0, 0, 3, 0, 0, 0,
130, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
3, 0, 0, 0, 246, 15,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 3, 0,
0, 0, 16, 0, 0, 7,
34, 0, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16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 0, 9, 66, 0,
16, 0, 2, 0, 0, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0,
5, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
29, 0, 0, 10, 114, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0, 0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 10, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
2, 64, 0, 0, 0, 0,
128, 63, 0, 0, 128, 63,
0, 0, 128, 63, 0, 0, 0, 0, 128, 63, 0, 0,
128, 63, 0, 0, 128, 63,
0, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 56, 0, 0, 7, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
47, 0, 0, 5, 114, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 1, 0, 114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 70, 2, 1, 0, 0, 0, 246, 143,
16, 0, 1, 0, 0, 0, 32, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0, 2, 0, 0, 0, 25, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 47, 0,
0, 5, 114, 0, 16, 0, 0, 5, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
56, 0, 0, 8, 114, 0, 56, 0, 0, 7, 114, 0,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0, 70, 2, 16, 0, 2, 0,
0, 0, 246, 143, 32, 0,
0, 0, 0, 0, 2, 0,
0, 0, 25, 0, 0, 5,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 56, 0, 1, 0, 0, 0, 56, 0,
0, 8, 114, 0, 16, 0,
2, 0, 0, 0, 86, 5,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 10, 0, 0, 0,
50, 0, 0, 10, 178, 0,
16, 0, 1, 0, 0, 0,
6, 0, 16, 0, 1, 0,
0, 0, 70, 136, 32, 0,
0, 0, 0, 0, 9, 0,
0, 0, 70, 8, 16, 0,
2, 0, 0, 0, 50, 0,
0, 10, 114, 0, 16, 0,
1, 0, 0, 0, 166, 10,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 11, 0, 0, 0,
70, 3, 16, 0, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
2, 0, 0, 0, 69, 0,
0, 9, 242, 0, 16, 0,
2, 0, 0, 0, 70, 16,
16, 0, 0, 0, 0, 0,
70, 126, 16, 0, 1, 0,
0, 0, 0, 96, 16, 0,
0, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0, 0, 7, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 2, 0,
0, 0, 86, 5, 16, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
10, 0, 0, 0, 50, 0,
0, 10, 178, 0, 16, 0,
1, 0, 0, 0, 6, 0,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
70, 136, 32, 0, 0, 0, 70, 2, 16, 0, 2, 0,
0, 0, 9, 0, 0, 0,
70, 8, 16, 0, 2, 0,
0, 0, 50, 0, 0, 10,
114, 0, 16, 0, 1, 0,
0, 0, 166, 10, 16, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
11, 0, 0, 0, 70, 3,
16, 0, 1, 0, 0, 0,
56, 0, 0, 8, 114, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 2, 0,
0, 0, 69, 0, 0, 9, 0, 0, 69, 0, 0, 9,
242, 0, 16, 0, 2, 0, 242, 0, 16, 0, 2, 0,
0, 0, 70, 16, 16, 0, 0, 0, 70, 16, 16, 0,
0, 0, 0, 0, 70, 126, 0, 0, 0, 0, 70, 126,
16, 0, 1, 0, 0, 0, 16, 0, 0, 0, 0, 0,
0, 96, 16, 0, 0, 0, 0, 96, 16, 0, 0, 0,
0, 0, 56, 0, 0, 7, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 1, 0, 242, 0, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 14, 16, 0,
1, 0, 0, 0, 70, 2, 2, 0, 0, 0, 70, 30,
16, 0, 2, 0, 0, 0, 16, 0, 3, 0, 0, 0,
69, 0, 0, 9, 242, 0, 56, 0, 0, 7, 114, 0,
16, 0, 2, 0, 0, 0,
70, 16, 16, 0, 0, 0,
0, 0, 70, 126, 16, 0,
0, 0, 0, 0, 0, 96,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 242, 0,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 70, 30, 16, 0,
3, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 2, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 3, 0,
0, 0, 86, 5, 16, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
7, 0, 0, 0, 50, 0,
0, 10, 178, 0, 16, 0,
0, 0, 0, 0, 6, 0,
16, 0, 0, 0, 0, 0,
70, 136, 32, 0, 0, 0,
0, 0, 6, 0, 0, 0,
70, 8, 16, 0, 3, 0,
0, 0, 50, 0, 0, 10,
114, 0, 16, 0, 0, 0,
0, 0, 166, 10, 16, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
8, 0, 0, 0, 70, 3,
16, 0, 0, 0, 0, 0,
50, 0, 0, 11, 114, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 50, 0, 0, 9,
114, 32, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 1, 0, 70, 2, 16, 0, 1, 0,
0, 0, 54, 0, 0, 5, 0, 0, 246, 15, 16, 0,
130, 32, 16, 0, 0, 0, 2, 0, 0, 0, 56, 0,
0, 0, 58, 0, 16, 0, 0, 8, 114, 0, 16, 0,
2, 0, 0, 0, 62, 0, 3, 0, 0, 0, 86, 5,
0, 1 16, 0, 0, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 7, 0, 0, 0,
50, 0, 0, 10, 178, 0,
16, 0, 0, 0, 0, 0,
6, 0, 16, 0, 0, 0,
0, 0, 70, 136, 32, 0,
0, 0, 0, 0, 6, 0,
0, 0, 70, 8, 16, 0,
3, 0, 0, 0, 50, 0,
0, 10, 114, 0, 16, 0,
0, 0, 0, 0, 166, 10,
16, 0, 0, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 8, 0, 0, 0,
70, 3, 16, 0, 0, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
1, 0, 0, 0, 50, 0,
0, 9, 114, 32, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 54, 0,
0, 5, 130, 32, 16, 0,
0, 0, 0, 0, 58, 0,
16, 0, 2, 0, 0, 0,
62, 0, 0, 1
}; };

Двоичный файл не отображается.

Просмотреть файл

@ -51,10 +51,13 @@ dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx mul r0.xyz, r0.wwww, r0.xyzx
sample r2.xyzw, v0.xyxx, t2.xyzw, s0 sample r2.xyzw, v0.xyxx, t2.xyzw, s0
mad r2.xyz, r2.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000) mad r2.xy, r2.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r0.xyz, r0.xyzx, r2.yyyy mul r0.xyz, r0.xyzx, r2.yyyy
mad r0.xyz, r2.xxxx, r1.xyzx, r0.xyzx mad r0.xyz, r2.xxxx, r1.xyzx, r0.xyzx
mad r0.xyz, r2.zzzz, v2.xyzx, r0.xyzx dp2 r0.w, r2.xyxx, r2.xyxx
add r0.w, -r0.w, l(1.000000)
sqrt r0.w, r0.w
mad r0.xyz, r0.wwww, v2.xyzx, r0.xyzx
dp3 r0.w, r0.xyzx, r0.xyzx dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx mul r0.xyz, r0.wwww, r0.xyzx
@ -107,11 +110,11 @@ ret
const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFogSpec[] = const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFogSpec[] =
{ {
68, 88, 66, 67, 187, 208, 68, 88, 66, 67, 197, 173,
43, 190, 15, 153, 255, 101, 93, 240, 193, 154, 136, 52,
99, 233, 48, 180, 159, 117, 93, 125, 239, 128, 151, 178,
110, 90, 1, 0, 0, 0, 10, 221, 1, 0, 0, 0,
8, 10, 0, 0, 3, 0, 88, 10, 0, 0, 3, 0,
0, 0, 44, 0, 0, 0, 0, 0, 44, 0, 0, 0,
172, 0, 0, 0, 224, 0, 172, 0, 0, 0, 224, 0,
0, 0, 73, 83, 71, 78, 0, 0, 73, 83, 71, 78,
@ -145,8 +148,8 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFogSpec[] =
0, 0, 83, 86, 95, 84, 0, 0, 83, 86, 95, 84,
97, 114, 103, 101, 116, 0, 97, 114, 103, 101, 116, 0,
171, 171, 83, 72, 68, 82, 171, 171, 83, 72, 68, 82,
32, 9, 0, 0, 64, 0, 112, 9, 0, 0, 64, 0,
0, 0, 72, 2, 0, 0, 0, 0, 92, 2, 0, 0,
89, 0, 0, 4, 70, 142, 89, 0, 0, 4, 70, 142,
32, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0,
13, 0, 0, 0, 90, 0, 13, 0, 0, 0, 90, 0,
@ -269,15 +272,15 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFogSpec[] =
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
0, 96, 16, 0, 0, 0, 0, 96, 16, 0, 0, 0,
0, 0, 50, 0, 0, 15, 0, 0, 50, 0, 0, 15,
114, 0, 16, 0, 2, 0, 50, 0, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 0, 16, 0,
2, 0, 0, 0, 2, 64, 2, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 64,
0, 0, 0, 64, 0, 0, 0, 0, 0, 64, 0, 0,
0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2, 64, 0, 0, 0, 0, 2, 64, 0, 0, 0, 0,
128, 191, 0, 0, 128, 191, 128, 191, 0, 0, 128, 191,
0, 0, 128, 191, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 56, 0, 0, 7, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 0, 0, 114, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
@ -289,31 +292,109 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFogSpec[] =
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
50, 0, 0, 9, 114, 0, 15, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
166, 10, 16, 0, 2, 0, 70, 0, 16, 0, 2, 0,
0, 0, 70, 18, 16, 0, 0, 0, 70, 0, 16, 0,
2, 0, 0, 0, 70, 2, 2, 0, 0, 0, 0, 0,
0, 8, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 128, 65, 0, 0, 0,
0, 0, 0, 0, 1, 64,
0, 0, 0, 0, 128, 63,
75, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0,
0, 0, 50, 0, 0, 9,
114, 0, 16, 0, 0, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 18,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 0, 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, 0, 0, 0, 0,
68, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0,
0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 0, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
0, 0, 0, 9, 114, 0,
16, 0, 1, 0, 0, 0,
70, 18, 16, 128, 65, 0,
0, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 12, 0, 0, 0,
16, 0, 0, 7, 130, 0, 16, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0, 70, 2, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 68, 0, 1, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0, 0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0, 0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0, 50, 0, 0, 11, 114, 0,
16, 0, 0, 0, 0, 0, 16, 0, 2, 0, 0, 0,
246, 15, 16, 0, 0, 0, 70, 2, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 130,
32, 128, 65, 0, 0, 0,
0, 0, 0, 0, 3, 0,
0, 0, 16, 0, 0, 7,
130, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 70, 2,
0, 9, 114, 0, 16, 0, 16, 0, 2, 0, 0, 0,
1, 0, 0, 0, 70, 18, 68, 0, 0, 5, 130, 0,
16, 128, 65, 0, 0, 0, 16, 0, 1, 0, 0, 0,
1, 0, 0, 0, 70, 130, 58, 0, 16, 0, 1, 0,
32, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 7,
12, 0, 0, 0, 16, 0, 114, 0, 16, 0, 2, 0,
0, 0, 246, 15, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
16, 0, 0, 7, 18, 0,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 50, 0,
0, 11, 114, 0, 16, 0,
3, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 4, 0, 0, 0,
50, 0, 0, 11, 114, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 130,
32, 128, 65, 0, 0, 0,
0, 0, 0, 0, 5, 0,
0, 0, 16, 0, 0, 7,
130, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 70, 2,
16, 0, 3, 0, 0, 0,
68, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0,
0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 3, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 3, 0, 0, 0,
16, 0, 0, 7, 34, 0,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 16, 0,
0, 7, 130, 0, 16, 0, 0, 7, 130, 0, 16, 0,
0, 0, 0, 0, 70, 2, 0, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
@ -321,218 +402,154 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoFogSpec[] =
0, 0, 68, 0, 0, 5, 0, 0, 68, 0, 0, 5,
130, 0, 16, 0, 0, 0, 130, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0, 0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 56, 0,
0, 11, 114, 0, 16, 0, 0, 7, 114, 0, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
1, 0, 0, 0, 58, 0,
16, 0, 1, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 2, 0, 0, 0,
246, 15, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 16, 0,
0, 7, 18, 0, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15, 1, 0, 0, 0, 246, 15,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 50, 0,
0, 11, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 5, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 3, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 16, 0,
0, 7, 34, 0, 16, 0,
2, 0, 0, 0, 70,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, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 143,
32, 0, 0, 0, 0, 0,
2, 0, 0, 0, 25, 0,
0, 5, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
56, 0, 0, 7, 114, 0, 56, 0, 0, 7, 114, 0,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 2, 0, 70, 2, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 47, 0, 0, 5,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 56, 0, 1, 0, 0, 0, 56, 0,
0, 8, 114, 0, 16, 0, 0, 8, 114, 0, 16, 0,
2, 0, 0, 0, 86, 5, 1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0, 246, 143, 32, 0, 0, 0,
0, 0, 10, 0, 0, 0, 0, 0, 2, 0, 0, 0,
50, 0, 0, 10, 178, 0, 25, 0, 0, 5, 114, 0,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
6, 0, 16, 0, 1, 0, 70, 2, 16, 0, 1, 0,
0, 0, 70, 136, 32, 0,
0, 0, 0, 0, 9, 0,
0, 0, 70, 8, 16, 0,
2, 0, 0, 0, 50, 0,
0, 10, 114, 0, 16, 0,
1, 0, 0, 0, 166, 10,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 11, 0, 0, 0,
70, 3, 16, 0, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
2, 0, 0, 0, 69, 0,
0, 9, 242, 0, 16, 0,
2, 0, 0, 0, 70, 16,
16, 0, 0, 0, 0, 0,
70, 126, 16, 0, 0, 0,
0, 0, 0, 96, 16, 0,
0, 0, 0, 0, 56, 0,
0, 7, 242, 0, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 2, 0, 0, 0,
70, 30, 16, 0, 3, 0,
0, 0, 56, 0, 0, 7, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 1, 0, 114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15, 2, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
56, 0, 0, 8, 114, 0,
16, 0, 3, 0, 0, 0,
86, 5, 16, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 7, 0,
0, 0, 50, 0, 0, 10,
178, 0, 16, 0, 0, 0,
0, 0, 6, 0, 16, 0,
0, 0, 0, 0, 70, 136,
32, 0, 0, 0, 0, 0,
6, 0, 0, 0, 70, 8,
16, 0, 3, 0, 0, 0,
50, 0, 0, 10, 114, 0,
16, 0, 0, 0, 0, 0,
166, 10, 16, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 8, 0,
0, 0, 70, 3, 16, 0,
0, 0, 0, 0, 50, 0,
0, 11, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 1, 0, 0, 0,
50, 0, 0, 9, 114, 32,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
54, 0, 0, 5, 130, 32, 56, 0, 0, 8, 114, 0,
16, 0, 2, 0, 0, 0,
86, 5, 16, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 10, 0,
0, 0, 50, 0, 0, 10,
178, 0, 16, 0, 1, 0,
0, 0, 6, 0, 16, 0,
1, 0, 0, 0, 70, 136,
32, 0, 0, 0, 0, 0,
9, 0, 0, 0, 70, 8,
16, 0, 2, 0, 0, 0,
50, 0, 0, 10, 114, 0,
16, 0, 1, 0, 0, 0,
166, 10, 16, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 11, 0,
0, 0, 70, 3, 16, 0,
1, 0, 0, 0, 56, 0,
0, 8, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 2, 0, 0, 0,
69, 0, 0, 9, 242, 0,
16, 0, 2, 0, 0, 0,
70, 16, 16, 0, 0, 0,
0, 0, 70, 126, 16, 0,
0, 0, 0, 0, 0, 96,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 2, 0, 56, 0, 0, 7, 242, 0,
0, 0, 62, 0, 0, 1 16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 70, 30, 16, 0,
3, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 2, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 3, 0,
0, 0, 86, 5, 16, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
7, 0, 0, 0, 50, 0,
0, 10, 178, 0, 16, 0,
0, 0, 0, 0, 6, 0,
16, 0, 0, 0, 0, 0,
70, 136, 32, 0, 0, 0,
0, 0, 6, 0, 0, 0,
70, 8, 16, 0, 3, 0,
0, 0, 50, 0, 0, 10,
114, 0, 16, 0, 0, 0,
0, 0, 166, 10, 16, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
8, 0, 0, 0, 70, 3,
16, 0, 0, 0, 0, 0,
50, 0, 0, 11, 114, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 50, 0, 0, 9,
114, 32, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 54, 0, 0, 5,
130, 32, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0,
2, 0, 0, 0, 62, 0,
0, 1
}; };

Двоичный файл не отображается.

Просмотреть файл

@ -51,10 +51,13 @@ dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx mul r0.xyz, r0.wwww, r0.xyzx
sample r2.xyzw, v0.xyxx, t2.xyzw, s0 sample r2.xyzw, v0.xyxx, t2.xyzw, s0
mad r2.xyz, r2.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000) mad r2.xy, r2.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r0.xyz, r0.xyzx, r2.yyyy mul r0.xyz, r0.xyzx, r2.yyyy
mad r0.xyz, r2.xxxx, r1.xyzx, r0.xyzx mad r0.xyz, r2.xxxx, r1.xyzx, r0.xyzx
mad r0.xyz, r2.zzzz, v2.xyzx, r0.xyzx dp2 r0.w, r2.xyxx, r2.xyxx
add r0.w, -r0.w, l(1.000000)
sqrt r0.w, r0.w
mad r0.xyz, r0.wwww, v2.xyzx, r0.xyzx
dp3 r0.w, r0.xyzx, r0.xyzx dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx mul r0.xyz, r0.wwww, r0.xyzx
@ -109,11 +112,11 @@ ret
const BYTE NormalMapEffect_PSNormalPixelLightingTxNoSpec[] = const BYTE NormalMapEffect_PSNormalPixelLightingTxNoSpec[] =
{ {
68, 88, 66, 67, 208, 21, 68, 88, 66, 67, 125, 131,
231, 161, 200, 180, 76, 46, 101, 159, 54, 152, 239, 47,
135, 243, 231, 217, 182, 54, 185, 228, 130, 208, 161, 246,
43, 236, 1, 0, 0, 0, 27, 14, 1, 0, 0, 0,
88, 10, 0, 0, 3, 0, 168, 10, 0, 0, 3, 0,
0, 0, 44, 0, 0, 0, 0, 0, 44, 0, 0, 0,
172, 0, 0, 0, 224, 0, 172, 0, 0, 0, 224, 0,
0, 0, 73, 83, 71, 78, 0, 0, 73, 83, 71, 78,
@ -147,8 +150,8 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoSpec[] =
0, 0, 83, 86, 95, 84, 0, 0, 83, 86, 95, 84,
97, 114, 103, 101, 116, 0, 97, 114, 103, 101, 116, 0,
171, 171, 83, 72, 68, 82, 171, 171, 83, 72, 68, 82,
112, 9, 0, 0, 64, 0, 192, 9, 0, 0, 64, 0,
0, 0, 92, 2, 0, 0, 0, 0, 112, 2, 0, 0,
89, 0, 0, 4, 70, 142, 89, 0, 0, 4, 70, 142,
32, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0,
14, 0, 0, 0, 90, 0, 14, 0, 0, 0, 90, 0,
@ -271,15 +274,15 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoSpec[] =
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
0, 96, 16, 0, 0, 0, 0, 96, 16, 0, 0, 0,
0, 0, 50, 0, 0, 15, 0, 0, 50, 0, 0, 15,
114, 0, 16, 0, 2, 0, 50, 0, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 0, 16, 0,
2, 0, 0, 0, 2, 64, 2, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 64,
0, 0, 0, 64, 0, 0, 0, 0, 0, 64, 0, 0,
0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2, 64, 0, 0, 0, 0, 2, 64, 0, 0, 0, 0,
128, 191, 0, 0, 128, 191, 128, 191, 0, 0, 128, 191,
0, 0, 128, 191, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 56, 0, 0, 7, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 0, 0, 114, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
@ -291,31 +294,109 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoSpec[] =
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
50, 0, 0, 9, 114, 0, 15, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
166, 10, 16, 0, 2, 0, 70, 0, 16, 0, 2, 0,
0, 0, 70, 18, 16, 0, 0, 0, 70, 0, 16, 0,
2, 0, 0, 0, 70, 2, 2, 0, 0, 0, 0, 0,
0, 8, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 128, 65, 0, 0, 0,
0, 0, 0, 0, 1, 64,
0, 0, 0, 0, 128, 63,
75, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0,
0, 0, 50, 0, 0, 9,
114, 0, 16, 0, 0, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 18,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 0, 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, 0, 0, 0, 0,
68, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0,
0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 0, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
0, 0, 0, 9, 114, 0,
16, 0, 1, 0, 0, 0,
70, 18, 16, 128, 65, 0,
0, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 12, 0, 0, 0,
16, 0, 0, 7, 130, 0, 16, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0, 70, 2, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 68, 0, 1, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0, 0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0, 0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0, 50, 0, 0, 11, 114, 0,
16, 0, 0, 0, 0, 0, 16, 0, 2, 0, 0, 0,
246, 15, 16, 0, 0, 0, 70, 2, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 130,
32, 128, 65, 0, 0, 0,
0, 0, 0, 0, 3, 0,
0, 0, 16, 0, 0, 7,
130, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 70, 2,
0, 9, 114, 0, 16, 0, 16, 0, 2, 0, 0, 0,
1, 0, 0, 0, 70, 18, 68, 0, 0, 5, 130, 0,
16, 128, 65, 0, 0, 0, 16, 0, 1, 0, 0, 0,
1, 0, 0, 0, 70, 130, 58, 0, 16, 0, 1, 0,
32, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 7,
12, 0, 0, 0, 16, 0, 114, 0, 16, 0, 2, 0,
0, 0, 246, 15, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
16, 0, 0, 7, 18, 0,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 50, 0,
0, 11, 114, 0, 16, 0,
3, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 4, 0, 0, 0,
50, 0, 0, 11, 114, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 130,
32, 128, 65, 0, 0, 0,
0, 0, 0, 0, 5, 0,
0, 0, 16, 0, 0, 7,
130, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 70, 2,
16, 0, 3, 0, 0, 0,
68, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0,
0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 3, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 3, 0, 0, 0,
16, 0, 0, 7, 34, 0,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 16, 0,
0, 7, 130, 0, 16, 0, 0, 7, 130, 0, 16, 0,
0, 0, 0, 0, 70, 2, 0, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
@ -323,232 +404,167 @@ const BYTE NormalMapEffect_PSNormalPixelLightingTxNoSpec[] =
0, 0, 68, 0, 0, 5, 0, 0, 68, 0, 0, 5,
130, 0, 16, 0, 0, 0, 130, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0, 0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 56, 0,
0, 11, 114, 0, 16, 0, 0, 7, 114, 0, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
1, 0, 0, 0, 58, 0,
16, 0, 1, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 2, 0, 0, 0,
246, 15, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 16, 0,
0, 7, 18, 0, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 2, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15, 1, 0, 0, 0, 246, 15,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
70, 130, 32, 128, 65, 0,
0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 50, 0,
0, 11, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 130, 32, 128,
65, 0, 0, 0, 0, 0,
0, 0, 5, 0, 0, 0,
16, 0, 0, 7, 130, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 3, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 68, 0,
0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 58, 0,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 3, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0,
3, 0, 0, 0, 16, 0,
0, 7, 34, 0, 16, 0,
2, 0, 0, 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 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 56, 0,
0, 8, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0, 16, 0, 1, 0, 0, 0,
246, 143, 32, 0, 0, 0,
0, 0, 2, 0, 0, 0,
25, 0, 0, 5, 114, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0, 70, 2, 16, 0, 1, 0,
0, 0, 56, 0, 0, 7, 0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
56, 0, 0, 8, 114, 0,
16, 0, 2, 0, 0, 0,
86, 5, 16, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 10, 0,
0, 0, 50, 0, 0, 10,
178, 0, 16, 0, 1, 0,
0, 0, 6, 0, 16, 0,
1, 0, 0, 0, 70, 136,
32, 0, 0, 0, 0, 0,
9, 0, 0, 0, 70, 8,
16, 0, 2, 0, 0, 0,
50, 0, 0, 10, 114, 0,
16, 0, 1, 0, 0, 0,
166, 10, 16, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 11, 0,
0, 0, 70, 3, 16, 0,
1, 0, 0, 0, 56, 0,
0, 8, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 2, 0, 0, 0,
69, 0, 0, 9, 242, 0,
16, 0, 2, 0, 0, 0,
70, 16, 16, 0, 0, 0,
0, 0, 70, 126, 16, 0,
0, 0, 0, 0, 0, 96,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 242, 0,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 70, 30, 16, 0,
3, 0, 0, 0, 56, 0,
0, 7, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 2, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 3, 0,
0, 0, 86, 5, 16, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
7, 0, 0, 0, 50, 0,
0, 10, 178, 0, 16, 0,
0, 0, 0, 0, 6, 0,
16, 0, 0, 0, 0, 0,
70, 136, 32, 0, 0, 0,
0, 0, 6, 0, 0, 0,
70, 8, 16, 0, 3, 0,
0, 0, 50, 0, 0, 10,
114, 0, 16, 0, 0, 0,
0, 0, 166, 10, 16, 0,
0, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
8, 0, 0, 0, 70, 3,
16, 0, 0, 0, 0, 0,
50, 0, 0, 11, 114, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 50, 0, 0, 9,
114, 0, 16, 0, 0, 0, 114, 0, 16, 0, 0, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
2, 0, 0, 0, 70, 2, 2, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
47, 0, 0, 5, 114, 0, 70, 2, 16, 0, 1, 0,
0, 0, 50, 0, 0, 11,
114, 0, 16, 0, 1, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 13, 0,
0, 0, 246, 15, 16, 0,
2, 0, 0, 0, 70, 2,
16, 128, 65, 0, 0, 0,
0, 0, 0, 0, 50, 0,
0, 9, 114, 32, 16, 0,
0, 0, 0, 0, 246, 31,
16, 0, 1, 0, 0, 0, 16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 1, 0, 70, 2, 16, 0, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0, 0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 143, 0, 0, 0, 0, 54, 0,
32, 0, 0, 0, 0, 0, 0, 5, 130, 32, 16, 0,
2, 0, 0, 0, 25, 0, 0, 0, 0, 0, 58, 0,
0, 5, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 56, 0,
0, 8, 114, 0, 16, 0,
2, 0, 0, 0, 86, 5,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 10, 0, 0, 0,
50, 0, 0, 10, 178, 0,
16, 0, 1, 0, 0, 0,
6, 0, 16, 0, 1, 0,
0, 0, 70, 136, 32, 0,
0, 0, 0, 0, 9, 0,
0, 0, 70, 8, 16, 0,
2, 0, 0, 0, 50, 0,
0, 10, 114, 0, 16, 0,
1, 0, 0, 0, 166, 10,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 11, 0, 0, 0,
70, 3, 16, 0, 1, 0,
0, 0, 56, 0, 0, 8,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 70, 130,
32, 0, 0, 0, 0, 0,
2, 0, 0, 0, 69, 0,
0, 9, 242, 0, 16, 0,
2, 0, 0, 0, 70, 16,
16, 0, 0, 0, 0, 0,
70, 126, 16, 0, 0, 0,
0, 0, 0, 96, 16, 0,
0, 0, 0, 0, 56, 0,
0, 7, 242, 0, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 2, 0, 0, 0, 16, 0, 2, 0, 0, 0,
70, 30, 16, 0, 3, 0, 62, 0, 0, 1
0, 0, 56, 0, 0, 7,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
1, 0, 0, 0, 246, 15,
16, 0, 2, 0, 0, 0,
56, 0, 0, 8, 114, 0,
16, 0, 3, 0, 0, 0,
86, 5, 16, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 7, 0,
0, 0, 50, 0, 0, 10,
178, 0, 16, 0, 0, 0,
0, 0, 6, 0, 16, 0,
0, 0, 0, 0, 70, 136,
32, 0, 0, 0, 0, 0,
6, 0, 0, 0, 70, 8,
16, 0, 3, 0, 0, 0,
50, 0, 0, 10, 114, 0,
16, 0, 0, 0, 0, 0,
166, 10, 16, 0, 0, 0,
0, 0, 70, 130, 32, 0,
0, 0, 0, 0, 8, 0,
0, 0, 70, 3, 16, 0,
0, 0, 0, 0, 50, 0,
0, 11, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 1, 0, 0, 0,
50, 0, 0, 9, 114, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
50, 0, 0, 11, 114, 0,
16, 0, 1, 0, 0, 0,
70, 130, 32, 0, 0, 0,
0, 0, 13, 0, 0, 0,
246, 15, 16, 0, 2, 0,
0, 0, 70, 2, 16, 128,
65, 0, 0, 0, 0, 0,
0, 0, 50, 0, 0, 9,
114, 32, 16, 0, 0, 0,
0, 0, 246, 31, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 54, 0, 0, 5,
130, 32, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0,
2, 0, 0, 0, 62, 0,
0, 1
}; };

Двоичный файл не отображается.

Двоичный файл не отображается.

Двоичный файл не отображается.

Двоичный файл не отображается.

Двоичный файл не отображается.

Двоичные данные
Src/Shaders/Compiled/PBREffect_PSConstant.pdb

Двоичный файл не отображается.

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Двоичные данные
Src/Shaders/Compiled/PBREffect_PSTextured.pdb

Двоичный файл не отображается.

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Двоичный файл не отображается.

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Двоичный файл не отображается.

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Двоичный файл не отображается.

Двоичные данные
Src/Shaders/Compiled/PBREffect_VSConstant.pdb

Двоичный файл не отображается.

Двоичные данные
Src/Shaders/Compiled/PBREffect_VSConstantBn.pdb

Двоичный файл не отображается.

Двоичный файл не отображается.

Двоичный файл не отображается.

Просмотреть файл

@ -105,7 +105,7 @@ float4 PSNormalPixelLightingTxNoFog(PSInputPixelLightingTx pin) : SV_Target0
float3 eyeVector = normalize(EyePosition - pin.PositionWS.xyz); float3 eyeVector = normalize(EyePosition - pin.PositionWS.xyz);
// Before lighting, peturb the surface's normal by the one given in normal map. // Before lighting, peturb the surface's normal by the one given in normal map.
float3 localNormal = BiasX2(NormalTexture.Sample(Sampler, pin.TexCoord).xyz); float3 localNormal = TwoChannelNormalX2(NormalTexture.Sample(Sampler, pin.TexCoord).xy);
float3 normal = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord); float3 normal = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord);
// Do lighting // Do lighting
@ -128,7 +128,7 @@ float4 PSNormalPixelLightingTx(PSInputPixelLightingTx pin) : SV_Target0
float3 eyeVector = normalize(EyePosition - pin.PositionWS.xyz); float3 eyeVector = normalize(EyePosition - pin.PositionWS.xyz);
// Before lighting, peturb the surface's normal by the one given in normal map. // Before lighting, peturb the surface's normal by the one given in normal map.
float3 localNormal = BiasX2(NormalTexture.Sample(Sampler, pin.TexCoord).xyz); float3 localNormal = TwoChannelNormalX2(NormalTexture.Sample(Sampler, pin.TexCoord).xy);
float3 normal = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord); float3 normal = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord);
// Do lighting // Do lighting
@ -153,7 +153,7 @@ float4 PSNormalPixelLightingTxNoFogSpec(PSInputPixelLightingTx pin) : SV_Target0
float3 eyeVector = normalize(EyePosition - pin.PositionWS.xyz); float3 eyeVector = normalize(EyePosition - pin.PositionWS.xyz);
// Before lighting, peturb the surface's normal by the one given in normal map. // Before lighting, peturb the surface's normal by the one given in normal map.
float3 localNormal = BiasX2(NormalTexture.Sample(Sampler, pin.TexCoord).xyz); float3 localNormal = TwoChannelNormalX2(NormalTexture.Sample(Sampler, pin.TexCoord).xy);
float3 normal = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord); float3 normal = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord);
// Do lighting // Do lighting
@ -175,7 +175,7 @@ float4 PSNormalPixelLightingTxNoSpec(PSInputPixelLightingTx pin) : SV_Target0
float3 eyeVector = normalize(EyePosition - pin.PositionWS.xyz); float3 eyeVector = normalize(EyePosition - pin.PositionWS.xyz);
// Before lighting, peturb the surface's normal by the one given in normal map. // Before lighting, peturb the surface's normal by the one given in normal map.
float3 localNormal = BiasX2(NormalTexture.Sample(Sampler, pin.TexCoord).xyz); float3 localNormal = TwoChannelNormalX2(NormalTexture.Sample(Sampler, pin.TexCoord).xy);
float3 normal = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord); float3 normal = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord);
// Do lighting // Do lighting

Просмотреть файл

@ -143,7 +143,7 @@ float4 PSTextured(PSInputPixelLightingTx pin) : SV_Target0
const float3 L = normalize(-LightDirection[0]); // light vector ("to light" opposite of light's direction) const float3 L = normalize(-LightDirection[0]); // light vector ("to light" opposite of light's direction)
// Before lighting, peturb the surface's normal by the one given in normal map. // Before lighting, peturb the surface's normal by the one given in normal map.
float3 localNormal = BiasX2(NormalTexture.Sample(SurfaceSampler, pin.TexCoord).xyz); float3 localNormal = TwoChannelNormalX2(NormalTexture.Sample(SurfaceSampler, pin.TexCoord).xy);
float3 N = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord); float3 N = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord);
// Get albedo // Get albedo
@ -168,7 +168,7 @@ float4 PSTexturedEmissive(PSInputPixelLightingTx pin) : SV_Target0
const float3 L = normalize(-LightDirection[0]); // light vector ("to light" opposite of light's direction) const float3 L = normalize(-LightDirection[0]); // light vector ("to light" opposite of light's direction)
// Before lighting, peturb the surface's normal by the one given in normal map. // Before lighting, peturb the surface's normal by the one given in normal map.
float3 localNormal = BiasX2(NormalTexture.Sample(SurfaceSampler, pin.TexCoord).xyz); float3 localNormal = TwoChannelNormalX2(NormalTexture.Sample(SurfaceSampler, pin.TexCoord).xy);
float3 N = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord); float3 N = PeturbNormal(localNormal, pin.PositionWS.xyz, pin.NormalWS, pin.TexCoord);
// Get albedo // Get albedo
@ -205,7 +205,7 @@ PSOut_Velocity PSTexturedVelocity(VSOut_Velocity pin)
const float3 L = normalize(-LightDirection[0]); // light vector ("to light" opposite of light's direction) const float3 L = normalize(-LightDirection[0]); // light vector ("to light" opposite of light's direction)
// Before lighting, peturb the surface's normal by the one given in normal map. // Before lighting, peturb the surface's normal by the one given in normal map.
float3 localNormal = BiasX2(NormalTexture.Sample(SurfaceSampler, pin.current.TexCoord).xyz); float3 localNormal = TwoChannelNormalX2(NormalTexture.Sample(SurfaceSampler, pin.current.TexCoord).xy);
float3 N = PeturbNormal(localNormal, pin.current.PositionWS.xyz, pin.current.NormalWS, pin.current.TexCoord); float3 N = PeturbNormal(localNormal, pin.current.PositionWS.xyz, pin.current.NormalWS, pin.current.TexCoord);
// Get albedo // Get albedo
@ -241,7 +241,7 @@ PSOut_Velocity PSTexturedEmissiveVelocity(VSOut_Velocity pin)
const float3 L = normalize(-LightDirection[0]); // light vector ("to light" opposite of light's direction) const float3 L = normalize(-LightDirection[0]); // light vector ("to light" opposite of light's direction)
// Before lighting, peturb the surface's normal by the one given in normal map. // Before lighting, peturb the surface's normal by the one given in normal map.
float3 localNormal = BiasX2(NormalTexture.Sample(SurfaceSampler, pin.current.TexCoord).xyz); float3 localNormal = TwoChannelNormalX2(NormalTexture.Sample(SurfaceSampler, pin.current.TexCoord).xy);
float3 N = PeturbNormal(localNormal, pin.current.PositionWS.xyz, pin.current.NormalWS, pin.current.TexCoord); float3 N = PeturbNormal(localNormal, pin.current.PositionWS.xyz, pin.current.NormalWS, pin.current.TexCoord);
// Get albedo // Get albedo

Просмотреть файл

@ -39,6 +39,13 @@ float3 PeturbNormal(float3 localNormal, float3 position, float3 normal, float2 t
return normalize(mul(localNormal, TBN)); return normalize(mul(localNormal, TBN));
} }
float3 TwoChannelNormalX2(float2 normal)
{
float2 xy = 2.0f * normal - 1.0f;
float z = sqrt(1 - dot(xy, xy));
return float3(xy.x, xy.y, z);
}
// sRGB // sRGB
// https://en.wikipedia.org/wiki/SRGB // https://en.wikipedia.org/wiki/SRGB