mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-04 10:13:02 +05:00
99ca045bee
Unwoking attempt to fix shader fighting issues Dirt now works properly with ImVehFt
138 lines
4 KiB
C
138 lines
4 KiB
C
#if 0
|
|
//
|
|
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
|
|
//
|
|
// fxc /T vs_2_0 /E NVC_vertex_shader /Fh ..\SilentPatch\nvc.h
|
|
// ..\SilentPatch\nvc.fx
|
|
//
|
|
//
|
|
// Parameters:
|
|
//
|
|
// float4 AmbientLight;
|
|
// float2 fEnvVars;
|
|
// float4x4 viewProjMatrix;
|
|
//
|
|
//
|
|
// Registers:
|
|
//
|
|
// Name Reg Size
|
|
// -------------- ----- ----
|
|
// viewProjMatrix c0 4
|
|
// fEnvVars c4 1
|
|
// AmbientLight c5 1
|
|
//
|
|
|
|
vs_2_0
|
|
def c6, 1, 0, 0, 0
|
|
dcl_position v0
|
|
dcl_texcoord v1
|
|
dcl_color v2
|
|
dcl_color1 v3
|
|
dp4 oPos.x, v0, c0
|
|
dp4 oPos.y, v0, c1
|
|
dp4 oPos.z, v0, c2
|
|
dp4 oPos.w, v0, c3
|
|
mov r0.x, c6.x
|
|
add r0.x, r0.x, -c4.x
|
|
mul r0.yzw, v2.xxyz, c4.x
|
|
mad r0.xyz, v3, r0.x, r0.yzww
|
|
add r0.xyz, r0, c5
|
|
mul r0.w, v3.w, c4.y
|
|
max r0, r0, c6.y
|
|
min oD0, r0, c6.x
|
|
mov oT0.xy, v1
|
|
|
|
// approximately 13 instruction slots used
|
|
#endif
|
|
|
|
const BYTE g_vs20_NVC_vertex_shader[] =
|
|
{
|
|
0, 2, 254, 255, 254, 255,
|
|
60, 0, 67, 84, 65, 66,
|
|
28, 0, 0, 0, 187, 0,
|
|
0, 0, 0, 2, 254, 255,
|
|
3, 0, 0, 0, 28, 0,
|
|
0, 0, 0, 1, 0, 0,
|
|
180, 0, 0, 0, 88, 0,
|
|
0, 0, 2, 0, 5, 0,
|
|
1, 0, 22, 0, 104, 0,
|
|
0, 0, 0, 0, 0, 0,
|
|
120, 0, 0, 0, 2, 0,
|
|
4, 0, 1, 0, 18, 0,
|
|
132, 0, 0, 0, 0, 0,
|
|
0, 0, 148, 0, 0, 0,
|
|
2, 0, 0, 0, 4, 0,
|
|
2, 0, 164, 0, 0, 0,
|
|
0, 0, 0, 0, 65, 109,
|
|
98, 105, 101, 110, 116, 76,
|
|
105, 103, 104, 116, 0, 171,
|
|
171, 171, 1, 0, 3, 0,
|
|
1, 0, 4, 0, 1, 0,
|
|
0, 0, 0, 0, 0, 0,
|
|
102, 69, 110, 118, 86, 97,
|
|
114, 115, 0, 171, 171, 171,
|
|
1, 0, 3, 0, 1, 0,
|
|
2, 0, 1, 0, 0, 0,
|
|
0, 0, 0, 0, 118, 105,
|
|
101, 119, 80, 114, 111, 106,
|
|
77, 97, 116, 114, 105, 120,
|
|
0, 171, 3, 0, 3, 0,
|
|
4, 0, 4, 0, 1, 0,
|
|
0, 0, 0, 0, 0, 0,
|
|
118, 115, 95, 50, 95, 48,
|
|
0, 77, 105, 99, 114, 111,
|
|
115, 111, 102, 116, 32, 40,
|
|
82, 41, 32, 72, 76, 83,
|
|
76, 32, 83, 104, 97, 100,
|
|
101, 114, 32, 67, 111, 109,
|
|
112, 105, 108, 101, 114, 32,
|
|
57, 46, 50, 57, 46, 57,
|
|
53, 50, 46, 51, 49, 49,
|
|
49, 0, 81, 0, 0, 5,
|
|
6, 0, 15, 160, 0, 0,
|
|
128, 63, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0,
|
|
0, 0, 31, 0, 0, 2,
|
|
0, 0, 0, 128, 0, 0,
|
|
15, 144, 31, 0, 0, 2,
|
|
5, 0, 0, 128, 1, 0,
|
|
15, 144, 31, 0, 0, 2,
|
|
10, 0, 0, 128, 2, 0,
|
|
15, 144, 31, 0, 0, 2,
|
|
10, 0, 1, 128, 3, 0,
|
|
15, 144, 9, 0, 0, 3,
|
|
0, 0, 1, 192, 0, 0,
|
|
228, 144, 0, 0, 228, 160,
|
|
9, 0, 0, 3, 0, 0,
|
|
2, 192, 0, 0, 228, 144,
|
|
1, 0, 228, 160, 9, 0,
|
|
0, 3, 0, 0, 4, 192,
|
|
0, 0, 228, 144, 2, 0,
|
|
228, 160, 9, 0, 0, 3,
|
|
0, 0, 8, 192, 0, 0,
|
|
228, 144, 3, 0, 228, 160,
|
|
1, 0, 0, 2, 0, 0,
|
|
1, 128, 6, 0, 0, 160,
|
|
2, 0, 0, 3, 0, 0,
|
|
1, 128, 0, 0, 0, 128,
|
|
4, 0, 0, 161, 5, 0,
|
|
0, 3, 0, 0, 14, 128,
|
|
2, 0, 144, 144, 4, 0,
|
|
0, 160, 4, 0, 0, 4,
|
|
0, 0, 7, 128, 3, 0,
|
|
228, 144, 0, 0, 0, 128,
|
|
0, 0, 249, 128, 2, 0,
|
|
0, 3, 0, 0, 7, 128,
|
|
0, 0, 228, 128, 5, 0,
|
|
228, 160, 5, 0, 0, 3,
|
|
0, 0, 8, 128, 3, 0,
|
|
255, 144, 4, 0, 85, 160,
|
|
11, 0, 0, 3, 0, 0,
|
|
15, 128, 0, 0, 228, 128,
|
|
6, 0, 85, 160, 10, 0,
|
|
0, 3, 0, 0, 15, 208,
|
|
0, 0, 228, 128, 6, 0,
|
|
0, 160, 1, 0, 0, 2,
|
|
0, 0, 3, 224, 1, 0,
|
|
228, 144, 255, 255, 0, 0
|
|
};
|