3366 lines
110 KiB
HLSL
3366 lines
110 KiB
HLSL
string DefaultParameterScopeBlock = "material"; // 1
|
|
float3 AmbientLightColor : register(vs_2_0, c4) : register(vs_3_0, c4) <bool unmanaged = 1;> = { 0.3, 0.3, 0.3 };
|
|
struct
|
|
{
|
|
float3 Color;
|
|
float3 Direction;
|
|
} DirectionalLight[3] : register(vs_2_0, c5) : register(vs_3_0, c5) <bool unmanaged = 1;> = { 1.625198, 1.512711, 1.097048, 0.62914, -0.34874, 0.69465, 0.5232916, 0.6654605, 0.7815244, -0.32877, 0.90329, 0.27563, 0.4420466, 0.4102767, 0.4420466, -0.80704, -0.58635, 0.06975 };
|
|
int NumPointLights <string SasBindAddress = "Sas.NumPointLights"; string UIWidget = "None";>;
|
|
struct
|
|
{
|
|
float3 Color;
|
|
float3 Position;
|
|
float2 Range_Inner_Outer;
|
|
} PointLight[3] : register(vs_3_0, c89) <bool unmanaged = 1;>;
|
|
struct
|
|
{
|
|
float4 WorldPositionMultiplier_XYZZ;
|
|
float2 CurrentOffsetUV;
|
|
} Cloud : register(vs_2_0, c117) : register(vs_3_0, c117) <bool unmanaged = 1;>;
|
|
float3 NoCloudMultiplier <bool unmanaged = 1;> = { 1, 1, 1 };
|
|
float3 RecolorColorDummy <bool unmanaged = 1;>;
|
|
column_major float4x4 ShadowMapWorldToShadow : register(vs_2_0, c113) : register(vs_3_0, c113) <bool unmanaged = 1;>;
|
|
float OpacityOverride : register(vs_2_0, c1) : register(vs_3_0, c1) <bool unmanaged = 1;> = { 1 };
|
|
float3 TintColor : register(vs_2_0, c2) : register(vs_3_0, c2) <bool unmanaged = 1;> = { 1, 1, 1 };
|
|
float3 EyePosition : register(vs_2_0, c123) : register(vs_3_0, c123) <bool unmanaged = 1;>;
|
|
column_major float4x4 ViewProjection : register(vs_2_0, c119) : register(vs_3_0, c119) <bool unmanaged = 1;>;
|
|
float4 WorldBones[128] : register(vs_2_0, c128) : register(vs_3_0, c128) <bool unmanaged = 1;>;
|
|
bool HasShadow <string UIWidget = "None"; string SasBindAddress = "Sas.HasShadow";>;
|
|
texture ShadowMap <string UIWidget = "None"; string SasBindAddress = "Sas.Shadow[0].ShadowMap";>; // 6
|
|
sampler2D ShadowMapSampler <string Texture = "ShadowMap"; string UIWidget = "None"; string SasBindAddress = "Sas.Shadow[0].ShadowMap";> =
|
|
sampler_state
|
|
{
|
|
Texture = <ShadowMap>; // 9
|
|
MinFilter = 1;
|
|
MagFilter = 1;
|
|
MipFilter = 0;
|
|
AddressU = 3;
|
|
AddressV = 3;
|
|
};
|
|
float4 Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize <string UIWidget = "None"; string SasBindAddress = "Sas.Shadow[0].Zero_Zero_OneOverMapSize_OneOverMapSize";>;
|
|
int _SasGlobal : SasGlobal <string UIWidget = "None"; int3 SasVersion = int3(1, 0, 0); int MaxLocalLights = 3; int MaxSupportedInstancingMode = 1;>;
|
|
int NumJointsPerVertex <string UIWidget = "None"; string SasBindAddress = "Sas.Skeleton.NumJointsPerVertex";>;
|
|
column_major float4x3 World : World : register(vs_2_0, c124) : register(vs_3_0, c124);
|
|
float Time : Time;
|
|
float3 ColorAmbient : register(vs_2_0, c11) : register(vs_3_0, c15) <string UIName = "Ambient Material Color"; string UIWidget = "Color";> = { 1, 1, 1 };
|
|
float3 ColorDiffuse : register(vs_2_0, c12) : register(vs_3_0, c16) <string UIName = "Diffuse Material Color"; string UIWidget = "Color";> = { 1, 1, 1 };
|
|
float3 ColorSpecular : register(vs_2_0, c13) : register(vs_3_0, c17) <string UIName = "Specular Material Color"; string UIWidget = "Color";>;
|
|
float Shininess : register(vs_2_0, c14) : register(vs_3_0, c18) <string UIName = "Specular Shininess"; string UIWidget = "Slider"; float UIMax = 100;> = { 1 };
|
|
float3 ColorEmissive : register(vs_2_0, c15) : register(vs_3_0, c19) <string UIName = "Emissive Material Color"; string UIWidget = "Color";>;
|
|
texture Texture_0 <string UIName = "Base Texture";>; // 28
|
|
sampler2D Texture_0Sampler <string Texture = "Texture_0"; string UIName = "Base Texture";> =
|
|
sampler_state
|
|
{
|
|
Texture = <Texture_0>; // 30
|
|
MinFilter = 3;
|
|
MagFilter = 2;
|
|
MipFilter = 2;
|
|
AddressU = 1;
|
|
AddressV = 1;
|
|
};
|
|
bool DepthWriteEnable <string UIName = "Depth Write Enable";> = { 1 };
|
|
bool AlphaTestEnable <string UIName = "Alpha Test Enable";>;
|
|
bool CullingEnable <string UIName = "Culling Enable";> = { 1 };
|
|
int BlendMode <string UIName = "Blend mode (0: opaque, 1: alpha, 2: additive)"; int UIMin = 0; int UIMax = 2;>;
|
|
struct
|
|
{
|
|
float4 ScaleUV_OffsetUV;
|
|
} Shroud : register(vs_2_0, c16) : register(vs_3_0, c20) <string UIWidget = "None"; string SasBindAddress = "Terrain.Shroud";> = { 1, 1, 0, 0 };
|
|
texture ShroudTexture <string UIWidget = "None"; string SasBindAddress = "Terrain.Shroud.Texture";>; // 39
|
|
sampler2D ShroudTextureSampler : register(ps_3_0, s0) <string Texture = "ShroudTexture"; string UIWidget = "None"; string SasBindAddress = "Terrain.Shroud.Texture";> =
|
|
sampler_state
|
|
{
|
|
Texture = <ShroudTexture>; // 42
|
|
MinFilter = 2;
|
|
MagFilter = 2;
|
|
MipFilter = 2;
|
|
AddressU = 3;
|
|
AddressV = 3;
|
|
};
|
|
texture ChronoRiftTexture <string UIWidget = "None"; string SasBindAddress = "WW3D.FXChronoRift";>; // 46
|
|
sampler2D ChronoRiftTextureSampler : register(ps_2_0, s1) : register(ps_3_0, s1) <string Texture = "ChronoRiftTexture"; string UIWidget = "None"; string SasBindAddress = "WW3D.FXChronoRift";> =
|
|
sampler_state
|
|
{
|
|
Texture = <ChronoRiftTexture>; // 49
|
|
MipFilter = 2;
|
|
MinFilter = 2;
|
|
MagFilter = 2;
|
|
AddressU = 1;
|
|
AddressV = 1;
|
|
};
|
|
texture CloudTexture <string UIWidget = "None"; string SasBindAddress = "Terrain.Cloud.Texture"; string ResourceName = "ShaderPreviewCloud.dds";>; // 53
|
|
sampler2D CloudTextureSampler <string Texture = "CloudTexture"; string UIWidget = "None"; string SasBindAddress = "Terrain.Cloud.Texture"; string ResourceName = "ShaderPreviewCloud.dds";> =
|
|
sampler_state
|
|
{
|
|
Texture = <CloudTexture>; // 57
|
|
MinFilter = 2;
|
|
MagFilter = 2;
|
|
MipFilter = 2;
|
|
AddressU = 1;
|
|
AddressV = 1;
|
|
};
|
|
// VS_Array_Shader_0 Vertex_3_0 Has PRES True
|
|
struct VS_Array_Shader_0_Input
|
|
{
|
|
float4 position : POSITION;
|
|
float4 normal : NORMAL;
|
|
float4 texcoord : TEXCOORD;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct VS_Array_Shader_0_Output
|
|
{
|
|
float4 position : POSITION;
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float4 color1 : COLOR1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float4 texcoord3 : TEXCOORD3;
|
|
float3 texcoord4 : TEXCOORD4;
|
|
float3 texcoord5 : TEXCOORD5;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
VS_Array_Shader_0_Output VS_Array_Shader_0(VS_Array_Shader_0_Input i)
|
|
{
|
|
/*
|
|
PRSI
|
|
OutputRegisterOffset: 11
|
|
Unknown1: 0
|
|
Unknown2: 0
|
|
OutputRegisterCount: 4
|
|
Unknown3: 0
|
|
Unknown4: 0
|
|
Unknown5: 11
|
|
Unknown6: 4
|
|
Mappings: 1
|
|
0 - ConstOutput: 0 ConstInput 0
|
|
|
|
*/
|
|
float4 expr11;
|
|
float4 expr12;
|
|
float4 expr13;
|
|
float4 expr14;
|
|
{
|
|
// Expression_2_1
|
|
// lt c11.x, (0), c0.x
|
|
expr11.x = (0) < NumPointLights.x;
|
|
// lt c12.x, (1), c0.x
|
|
expr12.x = (1) < NumPointLights.x;
|
|
// lt c13.x, (2), c0.x
|
|
expr13.x = (2) < NumPointLights.x;
|
|
// mul c14.x, c1.x, (0.3)
|
|
expr14.x = Time.x * (0.3);
|
|
}
|
|
|
|
VS_Array_Shader_0_Output o;
|
|
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
|
|
float addr0;
|
|
float3 temp7, temp8;
|
|
// def c0, 1, 0, 0.5, 0
|
|
// def c3, 0.05, 0, -0.0015, 0
|
|
// defi i0, 2, 0, 0, 0
|
|
// dcl_position v0
|
|
// dcl_normal v1
|
|
// dcl_texcoord v2
|
|
// dcl_color v3
|
|
// dcl_position o0
|
|
// dcl_texcoord1 o1
|
|
// dcl_color1 o2
|
|
// dcl_texcoord o3.xy
|
|
// dcl_texcoord2 o4
|
|
// dcl_texcoord3 o5
|
|
// dcl_texcoord4 o6.xyz
|
|
// dcl_texcoord5 o7.xyz
|
|
// dcl_texcoord6 o8.xyz
|
|
// mad r0, v0.xyzx, c0.xxxy, c0.yyyx
|
|
temp0 = i.position.xyzx * float4(1, 1, 1, 0) + float4(0, 0, 0, 1);
|
|
// dp4 r1.x, r0, c124
|
|
temp1.x = dot(temp0, (World._m00_m10_m20_m30));
|
|
// dp4 r1.y, r0, c125
|
|
temp1.y = dot(temp0, (World._m01_m11_m21_m31));
|
|
// dp4 r1.z, r0, c126
|
|
temp1.z = dot(temp0, (World._m02_m12_m22_m32));
|
|
// dp3 r0.x, v1, c124
|
|
temp0.x = dot(i.normal.xyz, (World._m00_m10_m20_m30).xyz);
|
|
// dp3 r0.y, v1, c125
|
|
temp0.y = dot(i.normal.xyz, (World._m01_m11_m21_m31).xyz);
|
|
// dp3 r0.z, v1, c126
|
|
temp0.z = dot(i.normal.xyz, (World._m02_m12_m22_m32).xyz);
|
|
// mul r2.xyz, c2, v3
|
|
temp2.xyz = TintColor.xyz * i.color.xyz;
|
|
// mov r1.w, c0.x
|
|
temp1.w = float1(1);
|
|
// dp4 o0.x, r1, c119
|
|
o.position.x = dot(temp1, (ViewProjection._m00_m10_m20_m30));
|
|
// dp4 o0.y, r1, c120
|
|
o.position.y = dot(temp1, (ViewProjection._m01_m11_m21_m31));
|
|
// dp4 o0.z, r1, c121
|
|
o.position.z = dot(temp1, (ViewProjection._m02_m12_m22_m32));
|
|
// dp4 o0.w, r1, c122
|
|
o.position.w = dot(temp1, (ViewProjection._m03_m13_m23_m33));
|
|
// add r3.xyz, -r1, c123
|
|
temp3.xyz = -temp1.xyz + EyePosition.xyz;
|
|
// dp3 r0.w, r3, r3
|
|
temp0.w = dot(temp3.xyz, temp3.xyz);
|
|
// rsq r0.w, r0.w
|
|
temp0.w = 1 / sqrt(temp0.w);
|
|
// mul r4.xyz, r3, r0.w
|
|
temp4.xyz = temp3.xyz * temp0.www;
|
|
// mad r5.xyz, r3, r0.w, c6
|
|
temp5.xyz = temp3.xyz * temp0.www + DirectionalLight[0].Direction.xyz;
|
|
// nrm r6.xyz, r5
|
|
temp6.xyz = normalize(temp5.xyz).xyz;
|
|
// dp3 r2.w, r0, c6
|
|
temp2.w = dot(temp0.xyz, DirectionalLight[0].Direction.xyz);
|
|
// dp3 r3.w, r0, r6
|
|
temp3.w = dot(temp0.xyz, temp6.xyz);
|
|
// slt r4.w, -r2.w, r2.w
|
|
temp4.w = (-temp2.w < temp2.w) ? 1 : 0;
|
|
// mul r2.w, r2.w, r4.w
|
|
temp2.w = temp2.w * temp4.w;
|
|
// slt r5.x, -r3.w, r3.w
|
|
temp5.x = (-temp3.w < temp3.w) ? 1 : 0;
|
|
// mul r4.w, r4.w, r5.x
|
|
temp4.w = temp4.w * temp5.x;
|
|
// pow r5.x, r3.w, c18.x
|
|
temp5.x = pow(temp3.w, Shininess.x);
|
|
// mul r3.w, r4.w, r5.x
|
|
temp3.w = temp4.w * temp5.x;
|
|
// mul r5.xyz, r2.w, c5
|
|
temp5.xyz = temp2.www * DirectionalLight[0].Color.xyz;
|
|
// mul r6.xyz, r3.w, c5
|
|
temp6.xyz = temp3.www * DirectionalLight[0].Color.xyz;
|
|
// mul r5.xyz, r5, c16
|
|
temp5.xyz = temp5.xyz * ColorDiffuse.xyz;
|
|
// mul r5.xyz, r2, r5
|
|
temp5.xyz = temp2.xyz * temp5.xyz;
|
|
// mul o6.xyz, r5, c0.z
|
|
o.texcoord4 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mul r5.xyz, r6, c17
|
|
temp5.xyz = temp6.xyz * ColorSpecular.xyz;
|
|
// mul o7.xyz, r5, c0.z
|
|
o.texcoord5 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mov r5.xyz, c0.y
|
|
temp5.xyz = float3(0, 0, 0);
|
|
// mov r6.xyz, c0.y
|
|
temp6.xyz = float3(0, 0, 0);
|
|
// mov r2.w, c0.x
|
|
temp2.w = float1(1);
|
|
// rep i0
|
|
for (int it0 = 0; it0 < int1(2); ++it0) {
|
|
// add r3.w, r2.w, r2.w
|
|
temp3.w = temp2.w + temp2.w;
|
|
// mova a0.x, r3.w
|
|
addr0.x = temp3.w;
|
|
// mad r7.xyz, r3, r0.w, c6[a0.x]
|
|
temp7.xyz = temp3.xyz * temp0.www + DirectionalLight[0 + (addr0.x / 2)].Direction.xyz;
|
|
// nrm r8.xyz, r7
|
|
temp8.xyz = normalize(temp7.xyz).xyz;
|
|
// dp3 r3.w, r0, c6[a0.x]
|
|
temp3.w = dot(temp0.xyz, DirectionalLight[0 + (addr0.x / 2)].Direction.xyz);
|
|
// dp3 r4.w, r0, r8
|
|
temp4.w = dot(temp0.xyz, temp8.xyz);
|
|
// slt r5.w, -r3.w, r3.w
|
|
temp5.w = (-temp3.w < temp3.w) ? 1 : 0;
|
|
// mul r3.w, r3.w, r5.w
|
|
temp3.w = temp3.w * temp5.w;
|
|
// slt r6.w, -r4.w, r4.w
|
|
temp6.w = (-temp4.w < temp4.w) ? 1 : 0;
|
|
// mul r5.w, r5.w, r6.w
|
|
temp5.w = temp5.w * temp6.w;
|
|
// pow r6.w, r4.w, c18.x
|
|
temp6.w = pow(temp4.w, Shininess.x);
|
|
// mul r4.w, r5.w, r6.w
|
|
temp4.w = temp5.w * temp6.w;
|
|
// mad r5.xyz, c5[a0.x], r3.w, r5
|
|
temp5.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp3.www + temp5.xyz;
|
|
// mad r6.xyz, c5[a0.x], r4.w, r6
|
|
temp6.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp4.www + temp6.xyz;
|
|
// add r2.w, r2.w, c0.x
|
|
temp2.w = temp2.w + float1(1);
|
|
// endrep
|
|
}
|
|
// add r3.xyz, -r1, c90
|
|
temp3.xyz = -temp1.xyz + PointLight[0].Position.xyz;
|
|
// dp3 r0.w, r3, r3
|
|
temp0.w = dot(temp3.xyz, temp3.xyz);
|
|
// rsq r0.w, r0.w
|
|
temp0.w = 1 / sqrt(temp0.w);
|
|
// rcp r2.w, r0.w
|
|
temp2.w = 1.0f / temp0.w;
|
|
// mul r3.xyz, r3, r0.w
|
|
temp3.xyz = temp3.xyz * temp0.www;
|
|
// add r0.w, r2.w, -c91.x
|
|
temp0.w = temp2.w + -PointLight[0].Range_Inner_Outer.x;
|
|
// add r2.w, -c91.x, c91.y
|
|
temp2.w = -PointLight[0].Range_Inner_Outer.x + PointLight[0].Range_Inner_Outer.y;
|
|
// rcp r2.w, r2.w
|
|
temp2.w = 1.0f / temp2.w;
|
|
// mad_sat r0.w, r0.w, -r2.w, c0.x
|
|
temp0.w = saturate(temp0.w * -temp2.w + float1(1));
|
|
// mul r0.w, r0.w, r0.w
|
|
temp0.w = temp0.w * temp0.w;
|
|
// mul r7.xyz, r0.w, c89
|
|
temp7.xyz = temp0.www * PointLight[0].Color.xyz;
|
|
// dp3 r0.w, r0, r3
|
|
temp0.w = dot(temp0.xyz, temp3.xyz);
|
|
// max r0.w, r0.w, c0.y
|
|
temp0.w = max(temp0.w, float1(0));
|
|
// mul r3.xyz, r7, r0.w
|
|
temp3.xyz = temp7.xyz * temp0.www;
|
|
// mad r3.xyz, c11.x, r3, r5
|
|
temp3.xyz = expr11.xxx * temp3.xyz + temp5.xyz;
|
|
// add r5.xyz, -r1, c93
|
|
temp5.xyz = -temp1.xyz + PointLight[1].Position.xyz;
|
|
// dp3 r0.w, r5, r5
|
|
temp0.w = dot(temp5.xyz, temp5.xyz);
|
|
// rsq r0.w, r0.w
|
|
temp0.w = 1 / sqrt(temp0.w);
|
|
// rcp r2.w, r0.w
|
|
temp2.w = 1.0f / temp0.w;
|
|
// mul r5.xyz, r5, r0.w
|
|
temp5.xyz = temp5.xyz * temp0.www;
|
|
// add r0.w, r2.w, -c94.x
|
|
temp0.w = temp2.w + -PointLight[1].Range_Inner_Outer.x;
|
|
// add r2.w, -c94.x, c94.y
|
|
temp2.w = -PointLight[1].Range_Inner_Outer.x + PointLight[1].Range_Inner_Outer.y;
|
|
// rcp r2.w, r2.w
|
|
temp2.w = 1.0f / temp2.w;
|
|
// mad_sat r0.w, r0.w, -r2.w, c0.x
|
|
temp0.w = saturate(temp0.w * -temp2.w + float1(1));
|
|
// mul r0.w, r0.w, r0.w
|
|
temp0.w = temp0.w * temp0.w;
|
|
// mul r7.xyz, r0.w, c92
|
|
temp7.xyz = temp0.www * PointLight[1].Color.xyz;
|
|
// dp3 r0.w, r0, r5
|
|
temp0.w = dot(temp0.xyz, temp5.xyz);
|
|
// max r0.w, r0.w, c0.y
|
|
temp0.w = max(temp0.w, float1(0));
|
|
// mul r5.xyz, r7, r0.w
|
|
temp5.xyz = temp7.xyz * temp0.www;
|
|
// mad r3.xyz, c12.x, r5, r3
|
|
temp3.xyz = expr12.xxx * temp5.xyz + temp3.xyz;
|
|
// add r5.xyz, -r1, c96
|
|
temp5.xyz = -temp1.xyz + PointLight[2].Position.xyz;
|
|
// dp3 r0.w, r5, r5
|
|
temp0.w = dot(temp5.xyz, temp5.xyz);
|
|
// rsq r0.w, r0.w
|
|
temp0.w = 1 / sqrt(temp0.w);
|
|
// rcp r2.w, r0.w
|
|
temp2.w = 1.0f / temp0.w;
|
|
// mul r5.xyz, r5, r0.w
|
|
temp5.xyz = temp5.xyz * temp0.www;
|
|
// add r0.w, r2.w, -c97.x
|
|
temp0.w = temp2.w + -PointLight[2].Range_Inner_Outer.x;
|
|
// add r2.w, -c97.x, c97.y
|
|
temp2.w = -PointLight[2].Range_Inner_Outer.x + PointLight[2].Range_Inner_Outer.y;
|
|
// rcp r2.w, r2.w
|
|
temp2.w = 1.0f / temp2.w;
|
|
// mad_sat r0.w, r0.w, -r2.w, c0.x
|
|
temp0.w = saturate(temp0.w * -temp2.w + float1(1));
|
|
// mul r0.w, r0.w, r0.w
|
|
temp0.w = temp0.w * temp0.w;
|
|
// mul r7.xyz, r0.w, c95
|
|
temp7.xyz = temp0.www * PointLight[2].Color.xyz;
|
|
// dp3 r0.w, r0, r5
|
|
temp0.w = dot(temp0.xyz, temp5.xyz);
|
|
// max r0.w, r0.w, c0.y
|
|
temp0.w = max(temp0.w, float1(0));
|
|
// mul r5.xyz, r7, r0.w
|
|
temp5.xyz = temp7.xyz * temp0.www;
|
|
// mad r3.xyz, c13.x, r5, r3
|
|
temp3.xyz = expr13.xxx * temp5.xyz + temp3.xyz;
|
|
// mov r5.xyz, c4
|
|
temp5.xyz = AmbientLightColor.xyz;
|
|
// mov r7.xyz, c15
|
|
temp7.xyz = ColorAmbient.xyz;
|
|
// mad r5.xyz, r5, r7, c19
|
|
temp5.xyz = temp5.xyz * temp7.xyz + ColorEmissive.xyz;
|
|
// mad r3.xyz, r3, c16, r5
|
|
temp3.xyz = temp3.xyz * ColorDiffuse.xyz + temp5.xyz;
|
|
// mul r2.xyz, r2, r3
|
|
temp2.xyz = temp2.xyz * temp3.xyz;
|
|
// mul o1.xyz, r2, c0.z
|
|
o.texcoord1.xyz = temp2.xyz * float3(0.5, 0.5, 0.5);
|
|
// mul o1.w, c1.x, v3.w
|
|
o.texcoord1.w = OpacityOverride.x * i.color.w;
|
|
// mul r2.xyz, r6, c17
|
|
temp2.xyz = temp6.xyz * ColorSpecular.xyz;
|
|
// mul o2.xyz, r2, c0.z
|
|
o.color1.xyz = temp2.xyz * float3(0.5, 0.5, 0.5);
|
|
// dp4 r2.x, r1, c113
|
|
temp2.x = dot(temp1, (ShadowMapWorldToShadow._m00_m10_m20_m30));
|
|
// dp4 r2.y, r1, c114
|
|
temp2.y = dot(temp1, (ShadowMapWorldToShadow._m01_m11_m21_m31));
|
|
// dp4 r2.z, r1, c115
|
|
temp2.z = dot(temp1, (ShadowMapWorldToShadow._m02_m12_m22_m32));
|
|
// dp4 r0.w, r1, c116
|
|
temp0.w = dot(temp1, (ShadowMapWorldToShadow._m03_m13_m23_m33));
|
|
// rcp r1.w, r0.w
|
|
temp1.w = 1.0f / temp0.w;
|
|
// mul r3.xy, r1.z, c117.zwzw
|
|
temp3.xy = temp1.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
|
|
// mad r3.xy, r1, c117, -r3
|
|
temp3.xy = temp1.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp3.xy;
|
|
// add o4.xy, r3, c118
|
|
o.texcoord2.xy = temp3.xy + Cloud.CurrentOffsetUV.xy;
|
|
// add r3.xy, r1.yxzw, c20.wzzw
|
|
temp3.xy = temp1.yx + Shroud.ScaleUV_OffsetUV.wz;
|
|
// mul o4.zw, r3.xyxy, c20.xyyx
|
|
o.texcoord2.zw = temp3.xy * Shroud.ScaleUV_OffsetUV.yx;
|
|
// dp3 r0.x, r4, r0
|
|
temp0.x = dot(temp4.xyz, temp0.xyz);
|
|
// add r0.x, -r0.x, c0.x
|
|
temp0.x = -temp0.x + float1(1);
|
|
// mul o8.xyz, r0.x, r0.x
|
|
o.texcoord6 = temp0.x * temp0.x;
|
|
// mad r0.xy, r1, c3.x, v2
|
|
temp0.xy = temp1.xy * float2(0.05, 0.05) + i.texcoord.xy;
|
|
// add o3.xy, r0, c14.x
|
|
o.texcoord = temp0 + expr14.x;
|
|
// mov o2.w, c0.x
|
|
o.color1.w = float1(1);
|
|
// mad o5.xyz, r2, r1.w, c3.yyzw
|
|
o.texcoord3.xyz = temp2.xyz * temp1.www + float3(0, 0, -0.0015);
|
|
// mov o5.w, r0.w
|
|
o.texcoord3.w = temp0.w;
|
|
//
|
|
|
|
return o;
|
|
}
|
|
|
|
// VS_Array_Shader_1 Vertex_3_0 Has PRES True
|
|
struct VS_Array_Shader_1_Input
|
|
{
|
|
float4 blendindices : BLENDINDICES;
|
|
float4 position : POSITION;
|
|
float4 normal : NORMAL;
|
|
float4 texcoord : TEXCOORD;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct VS_Array_Shader_1_Output
|
|
{
|
|
float4 position : POSITION;
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float4 color1 : COLOR1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float4 texcoord3 : TEXCOORD3;
|
|
float3 texcoord4 : TEXCOORD4;
|
|
float3 texcoord5 : TEXCOORD5;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
VS_Array_Shader_1_Output VS_Array_Shader_1(VS_Array_Shader_1_Input i)
|
|
{
|
|
/*
|
|
PRSI
|
|
OutputRegisterOffset: 11
|
|
Unknown1: 0
|
|
Unknown2: 0
|
|
OutputRegisterCount: 4
|
|
Unknown3: 0
|
|
Unknown4: 0
|
|
Unknown5: 11
|
|
Unknown6: 4
|
|
Mappings: 1
|
|
0 - ConstOutput: 0 ConstInput 0
|
|
|
|
*/
|
|
float4 expr11;
|
|
float4 expr12;
|
|
float4 expr13;
|
|
float4 expr14;
|
|
{
|
|
// Expression_2_1
|
|
// lt c11.x, (0), c0.x
|
|
expr11.x = (0) < NumPointLights.x;
|
|
// lt c12.x, (1), c0.x
|
|
expr12.x = (1) < NumPointLights.x;
|
|
// lt c13.x, (2), c0.x
|
|
expr13.x = (2) < NumPointLights.x;
|
|
// mul c14.x, c1.x, (0.3)
|
|
expr14.x = Time.x * (0.3);
|
|
}
|
|
|
|
VS_Array_Shader_1_Output o;
|
|
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
|
|
float addr0;
|
|
float3 temp7, temp8;
|
|
// def c0, 1, -1, 0.5, 0
|
|
// def c3, 0, 0.05, -0.0015, 0
|
|
// defi i0, 2, 0, 0, 0
|
|
// dcl_blendindices v0
|
|
// dcl_position v1
|
|
// dcl_normal v2
|
|
// dcl_texcoord v3
|
|
// dcl_color v4
|
|
// dcl_position o0
|
|
// dcl_texcoord1 o1
|
|
// dcl_color1 o2
|
|
// dcl_texcoord o3.xy
|
|
// dcl_texcoord2 o4
|
|
// dcl_texcoord3 o5
|
|
// dcl_texcoord4 o6.xyz
|
|
// dcl_texcoord5 o7.xyz
|
|
// dcl_texcoord6 o8.xyz
|
|
// frc r0.x, v0.x
|
|
temp0.x = frac(i.blendindices.x);
|
|
// add r0.y, -r0.x, v0.x
|
|
temp0.y = -temp0.x + i.blendindices.x;
|
|
// slt r0.z, v0.x, -v0.x
|
|
temp0.z = (i.blendindices.x < -i.blendindices.x) ? 1 : 0;
|
|
// slt r0.x, -r0.x, r0.x
|
|
temp0.x = (-temp0.x < temp0.x) ? 1 : 0;
|
|
// mad r0.x, r0.z, r0.x, r0.y
|
|
temp0.x = temp0.z * temp0.x + temp0.y;
|
|
// add r0.x, r0.x, r0.x
|
|
temp0.x = temp0.x + temp0.x;
|
|
// mova a0.x, r0.x
|
|
addr0.x = temp0.x;
|
|
// mul r0, v1.zxyy, c128[a0.x].yzxy
|
|
temp0 = i.position.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r0, c128[a0.x].wwwx, v1.xyzx, r0
|
|
temp0 = WorldBones[0 + addr0.x].wwwx * i.position.xyzx + temp0;
|
|
// mul r1, v1.yzxz, c128[a0.x].zxyz
|
|
temp1 = i.position.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r0, r0, c0.xxxy, -r1
|
|
temp0 = temp0 * float4(1, 1, 1, -1) + -temp1;
|
|
// mul r1.xyz, r0.w, c128[a0.x]
|
|
temp1.xyz = temp0.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r1.xyz, c128[a0.x].w, r0, -r1
|
|
temp1.xyz = WorldBones[0 + addr0.x].www * temp0.xyz + -temp1.xyz;
|
|
// mad r1.xyz, c128[a0.x].yzxw, r0.zxyw, r1
|
|
temp1.xyz = WorldBones[0 + addr0.x].yzx * temp0.zxy + temp1.xyz;
|
|
// mad r0.xyz, c128[a0.x].zxyw, -r0.yzxw, r1
|
|
temp0.xyz = WorldBones[0 + addr0.x].zxy * -temp0.yzx + temp1.xyz;
|
|
// add r0.xyz, r0, c129[a0.x]
|
|
temp0.xyz = temp0.xyz + WorldBones[1 + addr0.x].xyz;
|
|
// mul r1, v2.zxyy, c128[a0.x].yzxy
|
|
temp1 = i.normal.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r1, c128[a0.x].wwwx, v2.xyzx, r1
|
|
temp1 = WorldBones[0 + addr0.x].wwwx * i.normal.xyzx + temp1;
|
|
// mul r2, v2.yzxz, c128[a0.x].zxyz
|
|
temp2 = i.normal.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r1, r1, c0.xxxy, -r2
|
|
temp1 = temp1 * float4(1, 1, 1, -1) + -temp2;
|
|
// mul r2.xyz, r1.w, c128[a0.x]
|
|
temp2.xyz = temp1.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r2.xyz, c128[a0.x].w, r1, -r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].www * temp1.xyz + -temp2.xyz;
|
|
// mad r2.xyz, c128[a0.x].yzxw, r1.zxyw, r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].yzx * temp1.zxy + temp2.xyz;
|
|
// mad r1.xyz, c128[a0.x].zxyw, -r1.yzxw, r2
|
|
temp1.xyz = WorldBones[0 + addr0.x].zxy * -temp1.yzx + temp2.xyz;
|
|
// mul r1.w, v4.w, c129[a0.x].w
|
|
temp1.w = i.color.w * WorldBones[1 + addr0.x].w;
|
|
// mul r2.xyz, c2, v4
|
|
temp2.xyz = TintColor.xyz * i.color.xyz;
|
|
// mov r0.w, c0.x
|
|
temp0.w = float1(1);
|
|
// dp4 o0.x, r0, c119
|
|
o.position.x = dot(temp0, (ViewProjection._m00_m10_m20_m30));
|
|
// dp4 o0.y, r0, c120
|
|
o.position.y = dot(temp0, (ViewProjection._m01_m11_m21_m31));
|
|
// dp4 o0.z, r0, c121
|
|
o.position.z = dot(temp0, (ViewProjection._m02_m12_m22_m32));
|
|
// dp4 o0.w, r0, c122
|
|
o.position.w = dot(temp0, (ViewProjection._m03_m13_m23_m33));
|
|
// add r3.xyz, -r0, c123
|
|
temp3.xyz = -temp0.xyz + EyePosition.xyz;
|
|
// dp3 r2.w, r3, r3
|
|
temp2.w = dot(temp3.xyz, temp3.xyz);
|
|
// rsq r2.w, r2.w
|
|
temp2.w = 1 / sqrt(temp2.w);
|
|
// mul r4.xyz, r3, r2.w
|
|
temp4.xyz = temp3.xyz * temp2.www;
|
|
// mad r5.xyz, r3, r2.w, c6
|
|
temp5.xyz = temp3.xyz * temp2.www + DirectionalLight[0].Direction.xyz;
|
|
// nrm r6.xyz, r5
|
|
temp6.xyz = normalize(temp5.xyz).xyz;
|
|
// dp3 r3.w, r1, c6
|
|
temp3.w = dot(temp1.xyz, DirectionalLight[0].Direction.xyz);
|
|
// dp3 r4.w, r1, r6
|
|
temp4.w = dot(temp1.xyz, temp6.xyz);
|
|
// slt r5.x, -r3.w, r3.w
|
|
temp5.x = (-temp3.w < temp3.w) ? 1 : 0;
|
|
// mul r3.w, r3.w, r5.x
|
|
temp3.w = temp3.w * temp5.x;
|
|
// slt r5.y, -r4.w, r4.w
|
|
temp5.y = (-temp4.w < temp4.w) ? 1 : 0;
|
|
// mul r5.x, r5.x, r5.y
|
|
temp5.x = temp5.x * temp5.y;
|
|
// pow r5.y, r4.w, c18.x
|
|
temp5.y = pow(temp4.w, Shininess.x);
|
|
// mul r4.w, r5.x, r5.y
|
|
temp4.w = temp5.x * temp5.y;
|
|
// mul r5.xyz, r3.w, c5
|
|
temp5.xyz = temp3.www * DirectionalLight[0].Color.xyz;
|
|
// mul r6.xyz, r4.w, c5
|
|
temp6.xyz = temp4.www * DirectionalLight[0].Color.xyz;
|
|
// mul r5.xyz, r5, c16
|
|
temp5.xyz = temp5.xyz * ColorDiffuse.xyz;
|
|
// mul r5.xyz, r2, r5
|
|
temp5.xyz = temp2.xyz * temp5.xyz;
|
|
// mul o6.xyz, r5, c0.z
|
|
o.texcoord4 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mul r5.xyz, r6, c17
|
|
temp5.xyz = temp6.xyz * ColorSpecular.xyz;
|
|
// mul o7.xyz, r5, c0.z
|
|
o.texcoord5 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mov r5.xyz, c3.x
|
|
temp5.xyz = float3(0, 0, 0);
|
|
// mov r6.xyz, c3.x
|
|
temp6.xyz = float3(0, 0, 0);
|
|
// mov r3.w, c0.x
|
|
temp3.w = float1(1);
|
|
// rep i0
|
|
for (int it0 = 0; it0 < int1(2); ++it0) {
|
|
// add r4.w, r3.w, r3.w
|
|
temp4.w = temp3.w + temp3.w;
|
|
// mova a0.x, r4.w
|
|
addr0.x = temp4.w;
|
|
// mad r7.xyz, r3, r2.w, c6[a0.x]
|
|
temp7.xyz = temp3.xyz * temp2.www + DirectionalLight[0 + (addr0.x / 2)].Direction.xyz;
|
|
// nrm r8.xyz, r7
|
|
temp8.xyz = normalize(temp7.xyz).xyz;
|
|
// dp3 r4.w, r1, c6[a0.x]
|
|
temp4.w = dot(temp1.xyz, DirectionalLight[0 + (addr0.x / 2)].Direction.xyz);
|
|
// dp3 r5.w, r1, r8
|
|
temp5.w = dot(temp1.xyz, temp8.xyz);
|
|
// slt r6.w, -r4.w, r4.w
|
|
temp6.w = (-temp4.w < temp4.w) ? 1 : 0;
|
|
// mul r4.w, r4.w, r6.w
|
|
temp4.w = temp4.w * temp6.w;
|
|
// slt r7.x, -r5.w, r5.w
|
|
temp7.x = (-temp5.w < temp5.w) ? 1 : 0;
|
|
// mul r6.w, r6.w, r7.x
|
|
temp6.w = temp6.w * temp7.x;
|
|
// pow r7.x, r5.w, c18.x
|
|
temp7.x = pow(temp5.w, Shininess.x);
|
|
// mul r5.w, r6.w, r7.x
|
|
temp5.w = temp6.w * temp7.x;
|
|
// mad r5.xyz, c5[a0.x], r4.w, r5
|
|
temp5.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp4.www + temp5.xyz;
|
|
// mad r6.xyz, c5[a0.x], r5.w, r6
|
|
temp6.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp5.www + temp6.xyz;
|
|
// add r3.w, r3.w, c0.x
|
|
temp3.w = temp3.w + float1(1);
|
|
// endrep
|
|
}
|
|
// add r3.xyz, -r0, c90
|
|
temp3.xyz = -temp0.xyz + PointLight[0].Position.xyz;
|
|
// dp3 r2.w, r3, r3
|
|
temp2.w = dot(temp3.xyz, temp3.xyz);
|
|
// rsq r2.w, r2.w
|
|
temp2.w = 1 / sqrt(temp2.w);
|
|
// rcp r3.w, r2.w
|
|
temp3.w = 1.0f / temp2.w;
|
|
// mul r3.xyz, r3, r2.w
|
|
temp3.xyz = temp3.xyz * temp2.www;
|
|
// add r2.w, r3.w, -c91.x
|
|
temp2.w = temp3.w + -PointLight[0].Range_Inner_Outer.x;
|
|
// add r3.w, -c91.x, c91.y
|
|
temp3.w = -PointLight[0].Range_Inner_Outer.x + PointLight[0].Range_Inner_Outer.y;
|
|
// rcp r3.w, r3.w
|
|
temp3.w = 1.0f / temp3.w;
|
|
// mad_sat r2.w, r2.w, -r3.w, c0.x
|
|
temp2.w = saturate(temp2.w * -temp3.w + float1(1));
|
|
// mul r2.w, r2.w, r2.w
|
|
temp2.w = temp2.w * temp2.w;
|
|
// mul r7.xyz, r2.w, c89
|
|
temp7.xyz = temp2.www * PointLight[0].Color.xyz;
|
|
// dp3 r2.w, r1, r3
|
|
temp2.w = dot(temp1.xyz, temp3.xyz);
|
|
// max r2.w, r2.w, c3.x
|
|
temp2.w = max(temp2.w, float1(0));
|
|
// mul r3.xyz, r7, r2.w
|
|
temp3.xyz = temp7.xyz * temp2.www;
|
|
// mad r3.xyz, c11.x, r3, r5
|
|
temp3.xyz = expr11.xxx * temp3.xyz + temp5.xyz;
|
|
// add r5.xyz, -r0, c93
|
|
temp5.xyz = -temp0.xyz + PointLight[1].Position.xyz;
|
|
// dp3 r2.w, r5, r5
|
|
temp2.w = dot(temp5.xyz, temp5.xyz);
|
|
// rsq r2.w, r2.w
|
|
temp2.w = 1 / sqrt(temp2.w);
|
|
// rcp r3.w, r2.w
|
|
temp3.w = 1.0f / temp2.w;
|
|
// mul r5.xyz, r5, r2.w
|
|
temp5.xyz = temp5.xyz * temp2.www;
|
|
// add r2.w, r3.w, -c94.x
|
|
temp2.w = temp3.w + -PointLight[1].Range_Inner_Outer.x;
|
|
// add r3.w, -c94.x, c94.y
|
|
temp3.w = -PointLight[1].Range_Inner_Outer.x + PointLight[1].Range_Inner_Outer.y;
|
|
// rcp r3.w, r3.w
|
|
temp3.w = 1.0f / temp3.w;
|
|
// mad_sat r2.w, r2.w, -r3.w, c0.x
|
|
temp2.w = saturate(temp2.w * -temp3.w + float1(1));
|
|
// mul r2.w, r2.w, r2.w
|
|
temp2.w = temp2.w * temp2.w;
|
|
// mul r7.xyz, r2.w, c92
|
|
temp7.xyz = temp2.www * PointLight[1].Color.xyz;
|
|
// dp3 r2.w, r1, r5
|
|
temp2.w = dot(temp1.xyz, temp5.xyz);
|
|
// max r2.w, r2.w, c3.x
|
|
temp2.w = max(temp2.w, float1(0));
|
|
// mul r5.xyz, r7, r2.w
|
|
temp5.xyz = temp7.xyz * temp2.www;
|
|
// mad r3.xyz, c12.x, r5, r3
|
|
temp3.xyz = expr12.xxx * temp5.xyz + temp3.xyz;
|
|
// add r5.xyz, -r0, c96
|
|
temp5.xyz = -temp0.xyz + PointLight[2].Position.xyz;
|
|
// dp3 r2.w, r5, r5
|
|
temp2.w = dot(temp5.xyz, temp5.xyz);
|
|
// rsq r2.w, r2.w
|
|
temp2.w = 1 / sqrt(temp2.w);
|
|
// rcp r3.w, r2.w
|
|
temp3.w = 1.0f / temp2.w;
|
|
// mul r5.xyz, r5, r2.w
|
|
temp5.xyz = temp5.xyz * temp2.www;
|
|
// add r2.w, r3.w, -c97.x
|
|
temp2.w = temp3.w + -PointLight[2].Range_Inner_Outer.x;
|
|
// add r3.w, -c97.x, c97.y
|
|
temp3.w = -PointLight[2].Range_Inner_Outer.x + PointLight[2].Range_Inner_Outer.y;
|
|
// rcp r3.w, r3.w
|
|
temp3.w = 1.0f / temp3.w;
|
|
// mad_sat r2.w, r2.w, -r3.w, c0.x
|
|
temp2.w = saturate(temp2.w * -temp3.w + float1(1));
|
|
// mul r2.w, r2.w, r2.w
|
|
temp2.w = temp2.w * temp2.w;
|
|
// mul r7.xyz, r2.w, c95
|
|
temp7.xyz = temp2.www * PointLight[2].Color.xyz;
|
|
// dp3 r2.w, r1, r5
|
|
temp2.w = dot(temp1.xyz, temp5.xyz);
|
|
// max r2.w, r2.w, c3.x
|
|
temp2.w = max(temp2.w, float1(0));
|
|
// mul r5.xyz, r7, r2.w
|
|
temp5.xyz = temp7.xyz * temp2.www;
|
|
// mad r3.xyz, c13.x, r5, r3
|
|
temp3.xyz = expr13.xxx * temp5.xyz + temp3.xyz;
|
|
// mov r5.xyz, c4
|
|
temp5.xyz = AmbientLightColor.xyz;
|
|
// mov r7.xyz, c15
|
|
temp7.xyz = ColorAmbient.xyz;
|
|
// mad r5.xyz, r5, r7, c19
|
|
temp5.xyz = temp5.xyz * temp7.xyz + ColorEmissive.xyz;
|
|
// mad r3.xyz, r3, c16, r5
|
|
temp3.xyz = temp3.xyz * ColorDiffuse.xyz + temp5.xyz;
|
|
// mul r2.xyz, r2, r3
|
|
temp2.xyz = temp2.xyz * temp3.xyz;
|
|
// mul o1.xyz, r2, c0.z
|
|
o.texcoord1.xyz = temp2.xyz * float3(0.5, 0.5, 0.5);
|
|
// mul o1.w, r1.w, c1.x
|
|
o.texcoord1.w = temp1.w * OpacityOverride.x;
|
|
// mul r2.xyz, r6, c17
|
|
temp2.xyz = temp6.xyz * ColorSpecular.xyz;
|
|
// mul o2.xyz, r2, c0.z
|
|
o.color1.xyz = temp2.xyz * float3(0.5, 0.5, 0.5);
|
|
// dp4 r2.x, r0, c113
|
|
temp2.x = dot(temp0, (ShadowMapWorldToShadow._m00_m10_m20_m30));
|
|
// dp4 r2.y, r0, c114
|
|
temp2.y = dot(temp0, (ShadowMapWorldToShadow._m01_m11_m21_m31));
|
|
// dp4 r2.z, r0, c115
|
|
temp2.z = dot(temp0, (ShadowMapWorldToShadow._m02_m12_m22_m32));
|
|
// dp4 r0.w, r0, c116
|
|
temp0.w = dot(temp0, (ShadowMapWorldToShadow._m03_m13_m23_m33));
|
|
// rcp r1.w, r0.w
|
|
temp1.w = 1.0f / temp0.w;
|
|
// mul r3.xy, r0.z, c117.zwzw
|
|
temp3.xy = temp0.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
|
|
// mad r3.xy, r0, c117, -r3
|
|
temp3.xy = temp0.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp3.xy;
|
|
// add o4.xy, r3, c118
|
|
o.texcoord2.xy = temp3.xy + Cloud.CurrentOffsetUV.xy;
|
|
// add r3.xy, r0.yxzw, c20.wzzw
|
|
temp3.xy = temp0.yx + Shroud.ScaleUV_OffsetUV.wz;
|
|
// mul o4.zw, r3.xyxy, c20.xyyx
|
|
o.texcoord2.zw = temp3.xy * Shroud.ScaleUV_OffsetUV.yx;
|
|
// dp3 r0.z, r4, r1
|
|
temp0.z = dot(temp4.xyz, temp1.xyz);
|
|
// add r0.z, -r0.z, c0.x
|
|
temp0.z = -temp0.z + float1(1);
|
|
// mul o8.xyz, r0.z, r0.z
|
|
o.texcoord6 = temp0.z * temp0.z;
|
|
// mad r0.xy, r0, c3.y, v3
|
|
temp0.xy = temp0.xy * float2(0.05, 0.05) + i.texcoord.xy;
|
|
// add o3.xy, r0, c14.x
|
|
o.texcoord = temp0 + expr14.x;
|
|
// mov o2.w, c0.x
|
|
o.color1.w = float1(1);
|
|
// mad o5.xyz, r2, r1.w, c3.xxzw
|
|
o.texcoord3.xyz = temp2.xyz * temp1.www + float3(0, 0, -0.0015);
|
|
// mov o5.w, r0.w
|
|
o.texcoord3.w = temp0.w;
|
|
//
|
|
|
|
return o;
|
|
}
|
|
|
|
// VS_Array_Shader_2 Vertex_3_0 Has PRES True
|
|
struct VS_Array_Shader_2_Input
|
|
{
|
|
float4 blendindices : BLENDINDICES;
|
|
float4 blendweight : BLENDWEIGHT;
|
|
float4 position : POSITION;
|
|
float4 position1 : POSITION1;
|
|
float4 normal : NORMAL;
|
|
float4 normal1 : NORMAL1;
|
|
float4 texcoord : TEXCOORD;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct VS_Array_Shader_2_Output
|
|
{
|
|
float4 position : POSITION;
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float4 color1 : COLOR1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float4 texcoord3 : TEXCOORD3;
|
|
float3 texcoord4 : TEXCOORD4;
|
|
float3 texcoord5 : TEXCOORD5;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
VS_Array_Shader_2_Output VS_Array_Shader_2(VS_Array_Shader_2_Input i)
|
|
{
|
|
/*
|
|
PRSI
|
|
OutputRegisterOffset: 11
|
|
Unknown1: 0
|
|
Unknown2: 0
|
|
OutputRegisterCount: 4
|
|
Unknown3: 0
|
|
Unknown4: 0
|
|
Unknown5: 11
|
|
Unknown6: 4
|
|
Mappings: 1
|
|
0 - ConstOutput: 0 ConstInput 0
|
|
|
|
*/
|
|
float4 expr11;
|
|
float4 expr12;
|
|
float4 expr13;
|
|
float4 expr14;
|
|
{
|
|
// Expression_2_1
|
|
// lt c11.x, (0), c0.x
|
|
expr11.x = (0) < NumPointLights.x;
|
|
// lt c12.x, (1), c0.x
|
|
expr12.x = (1) < NumPointLights.x;
|
|
// lt c13.x, (2), c0.x
|
|
expr13.x = (2) < NumPointLights.x;
|
|
// mul c14.x, c1.x, (0.3)
|
|
expr14.x = Time.x * (0.3);
|
|
}
|
|
|
|
VS_Array_Shader_2_Output o;
|
|
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
|
|
float2 addr0;
|
|
float3 temp7, temp8;
|
|
// def c0, 0, 0.05, -0.0015, 0
|
|
// def c3, 1, -1, 0.5, 0
|
|
// defi i0, 2, 0, 0, 0
|
|
// dcl_blendindices v0
|
|
// dcl_blendweight v1
|
|
// dcl_position v2
|
|
// dcl_position1 v3
|
|
// dcl_normal v4
|
|
// dcl_normal1 v5
|
|
// dcl_texcoord v6
|
|
// dcl_color v7
|
|
// dcl_position o0
|
|
// dcl_texcoord1 o1
|
|
// dcl_color1 o2
|
|
// dcl_texcoord o3.xy
|
|
// dcl_texcoord2 o4
|
|
// dcl_texcoord3 o5
|
|
// dcl_texcoord4 o6.xyz
|
|
// dcl_texcoord5 o7.xyz
|
|
// dcl_texcoord6 o8.xyz
|
|
// frc r0.xy, v0
|
|
temp0.xy = frac(i.blendindices.xy);
|
|
// add r0.zw, -r0.xyxy, v0.xyxy
|
|
temp0.zw = -temp0.xy + i.blendindices.xy;
|
|
// slt r1.xy, v0, -v0
|
|
temp1.xy = (i.blendindices.xy < -i.blendindices.xy) ? 1 : 0;
|
|
// slt r0.xy, -r0, r0
|
|
temp0.xy = (-temp0.xy < temp0.xy) ? 1 : 0;
|
|
// mad r0.xy, r1, r0, r0.zwzw
|
|
temp0.xy = temp1.xy * temp0.xy + temp0.zw;
|
|
// add r0.xy, r0, r0
|
|
temp0.xy = temp0.xy + temp0.xy;
|
|
// mova a0.xy, r0
|
|
addr0.xy = temp0.xy;
|
|
// mul r0, v2.zxyy, c128[a0.x].yzxy
|
|
temp0 = i.position.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r0, c128[a0.x].wwwx, v2.xyzx, r0
|
|
temp0 = WorldBones[0 + addr0.x].wwwx * i.position.xyzx + temp0;
|
|
// mul r1, v2.yzxz, c128[a0.x].zxyz
|
|
temp1 = i.position.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r0, r0, c3.xxxy, -r1
|
|
temp0 = temp0 * float4(1, 1, 1, -1) + -temp1;
|
|
// mul r1.xyz, r0.w, c128[a0.x]
|
|
temp1.xyz = temp0.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r1.xyz, c128[a0.x].w, r0, -r1
|
|
temp1.xyz = WorldBones[0 + addr0.x].www * temp0.xyz + -temp1.xyz;
|
|
// mad r1.xyz, c128[a0.x].yzxw, r0.zxyw, r1
|
|
temp1.xyz = WorldBones[0 + addr0.x].yzx * temp0.zxy + temp1.xyz;
|
|
// mad r0.xyz, c128[a0.x].zxyw, -r0.yzxw, r1
|
|
temp0.xyz = WorldBones[0 + addr0.x].zxy * -temp0.yzx + temp1.xyz;
|
|
// add r0.xyz, r0, c129[a0.x]
|
|
temp0.xyz = temp0.xyz + WorldBones[1 + addr0.x].xyz;
|
|
// mul r1, v4.zxyy, c128[a0.x].yzxy
|
|
temp1 = i.normal.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r1, c128[a0.x].wwwx, v4.xyzx, r1
|
|
temp1 = WorldBones[0 + addr0.x].wwwx * i.normal.xyzx + temp1;
|
|
// mul r2, v4.yzxz, c128[a0.x].zxyz
|
|
temp2 = i.normal.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r1, r1, c3.xxxy, -r2
|
|
temp1 = temp1 * float4(1, 1, 1, -1) + -temp2;
|
|
// mul r2.xyz, r1.w, c128[a0.x]
|
|
temp2.xyz = temp1.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r2.xyz, c128[a0.x].w, r1, -r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].www * temp1.xyz + -temp2.xyz;
|
|
// mad r2.xyz, c128[a0.x].yzxw, r1.zxyw, r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].yzx * temp1.zxy + temp2.xyz;
|
|
// mad r1.xyz, c128[a0.x].zxyw, -r1.yzxw, r2
|
|
temp1.xyz = WorldBones[0 + addr0.x].zxy * -temp1.yzx + temp2.xyz;
|
|
// mul r2, v3.zxyy, c128[a0.y].yzxy
|
|
temp2 = i.position1.zxyy * WorldBones[0 + addr0.y].yzxy;
|
|
// mad r2, c128[a0.y].wwwx, v3.xyzx, r2
|
|
temp2 = WorldBones[0 + addr0.y].wwwx * i.position1.xyzx + temp2;
|
|
// mul r3, v3.yzxz, c128[a0.y].zxyz
|
|
temp3 = i.position1.yzxz * WorldBones[0 + addr0.y].zxyz;
|
|
// mad r2, r2, c3.xxxy, -r3
|
|
temp2 = temp2 * float4(1, 1, 1, -1) + -temp3;
|
|
// mul r3.xyz, r2.w, c128[a0.y]
|
|
temp3.xyz = temp2.www * WorldBones[0 + addr0.y].xyz;
|
|
// mad r3.xyz, c128[a0.y].w, r2, -r3
|
|
temp3.xyz = WorldBones[0 + addr0.y].www * temp2.xyz + -temp3.xyz;
|
|
// mad r3.xyz, c128[a0.y].yzxw, r2.zxyw, r3
|
|
temp3.xyz = WorldBones[0 + addr0.y].yzx * temp2.zxy + temp3.xyz;
|
|
// mad r2.xyz, c128[a0.y].zxyw, -r2.yzxw, r3
|
|
temp2.xyz = WorldBones[0 + addr0.y].zxy * -temp2.yzx + temp3.xyz;
|
|
// add r2.xyz, r2, c129[a0.y]
|
|
temp2.xyz = temp2.xyz + WorldBones[1 + addr0.y].xyz;
|
|
// mul r2.xyz, r2, v1.y
|
|
temp2.xyz = temp2.xyz * i.blendweight.yyy;
|
|
// mad r0.xyz, r0, v1.x, r2
|
|
temp0.xyz = temp0.xyz * i.blendweight.xxx + temp2.xyz;
|
|
// mul r2, v5.zxyy, c128[a0.y].yzxy
|
|
temp2 = i.normal1.zxyy * WorldBones[0 + addr0.y].yzxy;
|
|
// mad r2, c128[a0.y].wwwx, v5.xyzx, r2
|
|
temp2 = WorldBones[0 + addr0.y].wwwx * i.normal1.xyzx + temp2;
|
|
// mul r3, v5.yzxz, c128[a0.y].zxyz
|
|
temp3 = i.normal1.yzxz * WorldBones[0 + addr0.y].zxyz;
|
|
// mad r2, r2, c3.xxxy, -r3
|
|
temp2 = temp2 * float4(1, 1, 1, -1) + -temp3;
|
|
// mul r3.xyz, r2.w, c128[a0.y]
|
|
temp3.xyz = temp2.www * WorldBones[0 + addr0.y].xyz;
|
|
// mad r3.xyz, c128[a0.y].w, r2, -r3
|
|
temp3.xyz = WorldBones[0 + addr0.y].www * temp2.xyz + -temp3.xyz;
|
|
// mad r3.xyz, c128[a0.y].yzxw, r2.zxyw, r3
|
|
temp3.xyz = WorldBones[0 + addr0.y].yzx * temp2.zxy + temp3.xyz;
|
|
// mad r2.xyz, c128[a0.y].zxyw, -r2.yzxw, r3
|
|
temp2.xyz = WorldBones[0 + addr0.y].zxy * -temp2.yzx + temp3.xyz;
|
|
// mul r2.xyz, r2, v1.y
|
|
temp2.xyz = temp2.xyz * i.blendweight.yyy;
|
|
// mad r1.xyz, r1, v1.x, r2
|
|
temp1.xyz = temp1.xyz * i.blendweight.xxx + temp2.xyz;
|
|
// mul r1.w, v1.y, c129[a0.y].w
|
|
temp1.w = i.blendweight.y * WorldBones[1 + addr0.y].w;
|
|
// mad r1.w, c129[a0.x].w, v1.x, r1.w
|
|
temp1.w = WorldBones[1 + addr0.x].w * i.blendweight.x + temp1.w;
|
|
// mul r1.w, r1.w, v7.w
|
|
temp1.w = temp1.w * i.color.w;
|
|
// mul r2.xyz, c2, v7
|
|
temp2.xyz = TintColor.xyz * i.color.xyz;
|
|
// mov r0.w, c3.x
|
|
temp0.w = float1(1);
|
|
// dp4 o0.x, r0, c119
|
|
o.position.x = dot(temp0, (ViewProjection._m00_m10_m20_m30));
|
|
// dp4 o0.y, r0, c120
|
|
o.position.y = dot(temp0, (ViewProjection._m01_m11_m21_m31));
|
|
// dp4 o0.z, r0, c121
|
|
o.position.z = dot(temp0, (ViewProjection._m02_m12_m22_m32));
|
|
// dp4 o0.w, r0, c122
|
|
o.position.w = dot(temp0, (ViewProjection._m03_m13_m23_m33));
|
|
// add r3.xyz, -r0, c123
|
|
temp3.xyz = -temp0.xyz + EyePosition.xyz;
|
|
// dp3 r2.w, r3, r3
|
|
temp2.w = dot(temp3.xyz, temp3.xyz);
|
|
// rsq r2.w, r2.w
|
|
temp2.w = 1 / sqrt(temp2.w);
|
|
// mul r4.xyz, r3, r2.w
|
|
temp4.xyz = temp3.xyz * temp2.www;
|
|
// mad r5.xyz, r3, r2.w, c6
|
|
temp5.xyz = temp3.xyz * temp2.www + DirectionalLight[0].Direction.xyz;
|
|
// nrm r6.xyz, r5
|
|
temp6.xyz = normalize(temp5.xyz).xyz;
|
|
// dp3 r3.w, r1, c6
|
|
temp3.w = dot(temp1.xyz, DirectionalLight[0].Direction.xyz);
|
|
// dp3 r4.w, r1, r6
|
|
temp4.w = dot(temp1.xyz, temp6.xyz);
|
|
// slt r5.x, -r3.w, r3.w
|
|
temp5.x = (-temp3.w < temp3.w) ? 1 : 0;
|
|
// mul r3.w, r3.w, r5.x
|
|
temp3.w = temp3.w * temp5.x;
|
|
// slt r5.y, -r4.w, r4.w
|
|
temp5.y = (-temp4.w < temp4.w) ? 1 : 0;
|
|
// mul r5.x, r5.x, r5.y
|
|
temp5.x = temp5.x * temp5.y;
|
|
// pow r5.y, r4.w, c18.x
|
|
temp5.y = pow(temp4.w, Shininess.x);
|
|
// mul r4.w, r5.x, r5.y
|
|
temp4.w = temp5.x * temp5.y;
|
|
// mul r5.xyz, r3.w, c5
|
|
temp5.xyz = temp3.www * DirectionalLight[0].Color.xyz;
|
|
// mul r6.xyz, r4.w, c5
|
|
temp6.xyz = temp4.www * DirectionalLight[0].Color.xyz;
|
|
// mul r5.xyz, r5, c16
|
|
temp5.xyz = temp5.xyz * ColorDiffuse.xyz;
|
|
// mul r5.xyz, r2, r5
|
|
temp5.xyz = temp2.xyz * temp5.xyz;
|
|
// mul o6.xyz, r5, c3.z
|
|
o.texcoord4 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mul r5.xyz, r6, c17
|
|
temp5.xyz = temp6.xyz * ColorSpecular.xyz;
|
|
// mul o7.xyz, r5, c3.z
|
|
o.texcoord5 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mov r5.xyz, c0.x
|
|
temp5.xyz = float3(0, 0, 0);
|
|
// mov r6.xyz, c0.x
|
|
temp6.xyz = float3(0, 0, 0);
|
|
// mov r3.w, c3.x
|
|
temp3.w = float1(1);
|
|
// rep i0
|
|
for (int it0 = 0; it0 < int1(2); ++it0) {
|
|
// add r4.w, r3.w, r3.w
|
|
temp4.w = temp3.w + temp3.w;
|
|
// mova a0.x, r4.w
|
|
addr0.x = temp4.w;
|
|
// mad r7.xyz, r3, r2.w, c6[a0.x]
|
|
temp7.xyz = temp3.xyz * temp2.www + DirectionalLight[0 + (addr0.x / 2)].Direction.xyz;
|
|
// nrm r8.xyz, r7
|
|
temp8.xyz = normalize(temp7.xyz).xyz;
|
|
// dp3 r4.w, r1, c6[a0.x]
|
|
temp4.w = dot(temp1.xyz, DirectionalLight[0 + (addr0.x / 2)].Direction.xyz);
|
|
// dp3 r5.w, r1, r8
|
|
temp5.w = dot(temp1.xyz, temp8.xyz);
|
|
// slt r6.w, -r4.w, r4.w
|
|
temp6.w = (-temp4.w < temp4.w) ? 1 : 0;
|
|
// mul r4.w, r4.w, r6.w
|
|
temp4.w = temp4.w * temp6.w;
|
|
// slt r7.x, -r5.w, r5.w
|
|
temp7.x = (-temp5.w < temp5.w) ? 1 : 0;
|
|
// mul r6.w, r6.w, r7.x
|
|
temp6.w = temp6.w * temp7.x;
|
|
// pow r7.x, r5.w, c18.x
|
|
temp7.x = pow(temp5.w, Shininess.x);
|
|
// mul r5.w, r6.w, r7.x
|
|
temp5.w = temp6.w * temp7.x;
|
|
// mad r5.xyz, c5[a0.x], r4.w, r5
|
|
temp5.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp4.www + temp5.xyz;
|
|
// mad r6.xyz, c5[a0.x], r5.w, r6
|
|
temp6.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp5.www + temp6.xyz;
|
|
// add r3.w, r3.w, c3.x
|
|
temp3.w = temp3.w + float1(1);
|
|
// endrep
|
|
}
|
|
// add r3.xyz, -r0, c90
|
|
temp3.xyz = -temp0.xyz + PointLight[0].Position.xyz;
|
|
// dp3 r2.w, r3, r3
|
|
temp2.w = dot(temp3.xyz, temp3.xyz);
|
|
// rsq r2.w, r2.w
|
|
temp2.w = 1 / sqrt(temp2.w);
|
|
// rcp r3.w, r2.w
|
|
temp3.w = 1.0f / temp2.w;
|
|
// mul r3.xyz, r3, r2.w
|
|
temp3.xyz = temp3.xyz * temp2.www;
|
|
// add r2.w, r3.w, -c91.x
|
|
temp2.w = temp3.w + -PointLight[0].Range_Inner_Outer.x;
|
|
// add r3.w, -c91.x, c91.y
|
|
temp3.w = -PointLight[0].Range_Inner_Outer.x + PointLight[0].Range_Inner_Outer.y;
|
|
// rcp r3.w, r3.w
|
|
temp3.w = 1.0f / temp3.w;
|
|
// mad_sat r2.w, r2.w, -r3.w, c3.x
|
|
temp2.w = saturate(temp2.w * -temp3.w + float1(1));
|
|
// mul r2.w, r2.w, r2.w
|
|
temp2.w = temp2.w * temp2.w;
|
|
// mul r7.xyz, r2.w, c89
|
|
temp7.xyz = temp2.www * PointLight[0].Color.xyz;
|
|
// dp3 r2.w, r1, r3
|
|
temp2.w = dot(temp1.xyz, temp3.xyz);
|
|
// max r2.w, r2.w, c0.x
|
|
temp2.w = max(temp2.w, float1(0));
|
|
// mul r3.xyz, r7, r2.w
|
|
temp3.xyz = temp7.xyz * temp2.www;
|
|
// mad r3.xyz, c11.x, r3, r5
|
|
temp3.xyz = expr11.xxx * temp3.xyz + temp5.xyz;
|
|
// add r5.xyz, -r0, c93
|
|
temp5.xyz = -temp0.xyz + PointLight[1].Position.xyz;
|
|
// dp3 r2.w, r5, r5
|
|
temp2.w = dot(temp5.xyz, temp5.xyz);
|
|
// rsq r2.w, r2.w
|
|
temp2.w = 1 / sqrt(temp2.w);
|
|
// rcp r3.w, r2.w
|
|
temp3.w = 1.0f / temp2.w;
|
|
// mul r5.xyz, r5, r2.w
|
|
temp5.xyz = temp5.xyz * temp2.www;
|
|
// add r2.w, r3.w, -c94.x
|
|
temp2.w = temp3.w + -PointLight[1].Range_Inner_Outer.x;
|
|
// add r3.w, -c94.x, c94.y
|
|
temp3.w = -PointLight[1].Range_Inner_Outer.x + PointLight[1].Range_Inner_Outer.y;
|
|
// rcp r3.w, r3.w
|
|
temp3.w = 1.0f / temp3.w;
|
|
// mad_sat r2.w, r2.w, -r3.w, c3.x
|
|
temp2.w = saturate(temp2.w * -temp3.w + float1(1));
|
|
// mul r2.w, r2.w, r2.w
|
|
temp2.w = temp2.w * temp2.w;
|
|
// mul r7.xyz, r2.w, c92
|
|
temp7.xyz = temp2.www * PointLight[1].Color.xyz;
|
|
// dp3 r2.w, r1, r5
|
|
temp2.w = dot(temp1.xyz, temp5.xyz);
|
|
// max r2.w, r2.w, c0.x
|
|
temp2.w = max(temp2.w, float1(0));
|
|
// mul r5.xyz, r7, r2.w
|
|
temp5.xyz = temp7.xyz * temp2.www;
|
|
// mad r3.xyz, c12.x, r5, r3
|
|
temp3.xyz = expr12.xxx * temp5.xyz + temp3.xyz;
|
|
// add r5.xyz, -r0, c96
|
|
temp5.xyz = -temp0.xyz + PointLight[2].Position.xyz;
|
|
// dp3 r2.w, r5, r5
|
|
temp2.w = dot(temp5.xyz, temp5.xyz);
|
|
// rsq r2.w, r2.w
|
|
temp2.w = 1 / sqrt(temp2.w);
|
|
// rcp r3.w, r2.w
|
|
temp3.w = 1.0f / temp2.w;
|
|
// mul r5.xyz, r5, r2.w
|
|
temp5.xyz = temp5.xyz * temp2.www;
|
|
// add r2.w, r3.w, -c97.x
|
|
temp2.w = temp3.w + -PointLight[2].Range_Inner_Outer.x;
|
|
// add r3.w, -c97.x, c97.y
|
|
temp3.w = -PointLight[2].Range_Inner_Outer.x + PointLight[2].Range_Inner_Outer.y;
|
|
// rcp r3.w, r3.w
|
|
temp3.w = 1.0f / temp3.w;
|
|
// mad_sat r2.w, r2.w, -r3.w, c3.x
|
|
temp2.w = saturate(temp2.w * -temp3.w + float1(1));
|
|
// mul r2.w, r2.w, r2.w
|
|
temp2.w = temp2.w * temp2.w;
|
|
// mul r7.xyz, r2.w, c95
|
|
temp7.xyz = temp2.www * PointLight[2].Color.xyz;
|
|
// dp3 r2.w, r1, r5
|
|
temp2.w = dot(temp1.xyz, temp5.xyz);
|
|
// max r2.w, r2.w, c0.x
|
|
temp2.w = max(temp2.w, float1(0));
|
|
// mul r5.xyz, r7, r2.w
|
|
temp5.xyz = temp7.xyz * temp2.www;
|
|
// mad r3.xyz, c13.x, r5, r3
|
|
temp3.xyz = expr13.xxx * temp5.xyz + temp3.xyz;
|
|
// mov r5.xyz, c4
|
|
temp5.xyz = AmbientLightColor.xyz;
|
|
// mov r7.xyz, c15
|
|
temp7.xyz = ColorAmbient.xyz;
|
|
// mad r5.xyz, r5, r7, c19
|
|
temp5.xyz = temp5.xyz * temp7.xyz + ColorEmissive.xyz;
|
|
// mad r3.xyz, r3, c16, r5
|
|
temp3.xyz = temp3.xyz * ColorDiffuse.xyz + temp5.xyz;
|
|
// mul r2.xyz, r2, r3
|
|
temp2.xyz = temp2.xyz * temp3.xyz;
|
|
// mul o1.xyz, r2, c3.z
|
|
o.texcoord1.xyz = temp2.xyz * float3(0.5, 0.5, 0.5);
|
|
// mul o1.w, r1.w, c1.x
|
|
o.texcoord1.w = temp1.w * OpacityOverride.x;
|
|
// mul r2.xyz, r6, c17
|
|
temp2.xyz = temp6.xyz * ColorSpecular.xyz;
|
|
// mul o2.xyz, r2, c3.z
|
|
o.color1.xyz = temp2.xyz * float3(0.5, 0.5, 0.5);
|
|
// dp4 r2.x, r0, c113
|
|
temp2.x = dot(temp0, (ShadowMapWorldToShadow._m00_m10_m20_m30));
|
|
// dp4 r2.y, r0, c114
|
|
temp2.y = dot(temp0, (ShadowMapWorldToShadow._m01_m11_m21_m31));
|
|
// dp4 r2.z, r0, c115
|
|
temp2.z = dot(temp0, (ShadowMapWorldToShadow._m02_m12_m22_m32));
|
|
// dp4 r0.w, r0, c116
|
|
temp0.w = dot(temp0, (ShadowMapWorldToShadow._m03_m13_m23_m33));
|
|
// rcp r1.w, r0.w
|
|
temp1.w = 1.0f / temp0.w;
|
|
// mul r3.xy, r0.z, c117.zwzw
|
|
temp3.xy = temp0.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
|
|
// mad r3.xy, r0, c117, -r3
|
|
temp3.xy = temp0.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp3.xy;
|
|
// add o4.xy, r3, c118
|
|
o.texcoord2.xy = temp3.xy + Cloud.CurrentOffsetUV.xy;
|
|
// add r3.xy, r0.yxzw, c20.wzzw
|
|
temp3.xy = temp0.yx + Shroud.ScaleUV_OffsetUV.wz;
|
|
// mul o4.zw, r3.xyxy, c20.xyyx
|
|
o.texcoord2.zw = temp3.xy * Shroud.ScaleUV_OffsetUV.yx;
|
|
// dp3 r0.z, r4, r1
|
|
temp0.z = dot(temp4.xyz, temp1.xyz);
|
|
// add r0.z, -r0.z, c3.x
|
|
temp0.z = -temp0.z + float1(1);
|
|
// mul o8.xyz, r0.z, r0.z
|
|
o.texcoord6 = temp0.z * temp0.z;
|
|
// mad r0.xy, r0, c0.y, v6
|
|
temp0.xy = temp0.xy * float2(0.05, 0.05) + i.texcoord.xy;
|
|
// add o3.xy, r0, c14.x
|
|
o.texcoord = temp0 + expr14.x;
|
|
// mov o2.w, c3.x
|
|
o.color1.w = float1(1);
|
|
// mad o5.xyz, r2, r1.w, c0.xxzw
|
|
o.texcoord3.xyz = temp2.xyz * temp1.www + float3(0, 0, -0.0015);
|
|
// mov o5.w, r0.w
|
|
o.texcoord3.w = temp0.w;
|
|
//
|
|
|
|
return o;
|
|
}
|
|
|
|
VertexShader VS_Array[3] = {
|
|
compile vs_3_0 VS_Array_Shader_0(), // 62
|
|
compile vs_3_0 VS_Array_Shader_1(), // 63
|
|
compile vs_3_0 VS_Array_Shader_2(), // 64
|
|
};
|
|
// PS_Array_Shader_0 Pixel_3_0 Has PRES False
|
|
struct PS_Array_Shader_0_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_Array_Shader_0(PS_Array_Shader_0_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1;
|
|
float3 temp2;
|
|
// def c0, 50, 2, 0, 0
|
|
// def c1, 2.2, 0.3, 0.6, 3
|
|
// dcl_texcoord1 v0.w
|
|
// dcl_texcoord v1.xy
|
|
// dcl_texcoord2 v2.zw
|
|
// dcl_texcoord6 v3.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.xy, v1.yxzw, v1.yxzw
|
|
temp0.xy = i.texcoord.yx + i.texcoord.yx;
|
|
// texld r1, r0.yxzw, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp0.yx);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// log r2.x, r1.x
|
|
temp2.x = log2(temp1.x);
|
|
// log r2.y, r1.y
|
|
temp2.y = log2(temp1.y);
|
|
// log r2.z, r1.z
|
|
temp2.z = log2(temp1.z);
|
|
// mul r1.xyz, r2, c1.x
|
|
temp1.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r2.x, r1.x
|
|
temp2.x = exp2(temp1.x);
|
|
// exp r2.y, r1.y
|
|
temp2.y = exp2(temp1.y);
|
|
// exp r2.z, r1.z
|
|
temp2.z = exp2(temp1.z);
|
|
// log r1.x, r0.x
|
|
temp1.x = log2(temp0.x);
|
|
// log r1.y, r0.y
|
|
temp1.y = log2(temp0.y);
|
|
// log r1.z, r0.z
|
|
temp1.z = log2(temp0.z);
|
|
// mul r0.xyz, r1, c1.x
|
|
temp0.xyz = temp1.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r1.x, r0.x
|
|
temp1.x = exp2(temp0.x);
|
|
// exp r1.y, r0.y
|
|
temp1.y = exp2(temp0.y);
|
|
// exp r1.z, r0.z
|
|
temp1.z = exp2(temp0.z);
|
|
// mul r0.xyz, r2, r1
|
|
temp0.xyz = temp2.xyz * temp1.xyz;
|
|
// mul r1.xyz, c1.yzww, v3
|
|
temp1.xyz = float3(0.3, 0.6, 3) * i.texcoord6.xyz;
|
|
// mad r0.xyz, r0, c0.x, r1
|
|
temp0.xyz = temp0.xyz * float3(50, 50, 50) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.y
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// texld r0, v2.wzzw, s0
|
|
temp0 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
|
|
// mul oC0.xyz, r1, r0
|
|
out_color.xyz = temp1.xyz * temp0.xyz;
|
|
// mov oC0.w, v0.w
|
|
out_color.w = i.texcoord1.w;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_Array_Shader_1 Pixel_3_0 Has PRES False
|
|
struct PS_Array_Shader_1_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_Array_Shader_1(PS_Array_Shader_1_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1;
|
|
float3 temp2;
|
|
// def c0, 50, 2, 0, 0
|
|
// def c1, 2.2, 0.3, 0.6, 3
|
|
// dcl_texcoord1 v0.w
|
|
// dcl_texcoord v1.xy
|
|
// dcl_texcoord2 v2.zw
|
|
// dcl_texcoord6 v3.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.xy, v1.yxzw, v1.yxzw
|
|
temp0.xy = i.texcoord.yx + i.texcoord.yx;
|
|
// texld r1, r0.yxzw, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp0.yx);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// log r2.x, r1.x
|
|
temp2.x = log2(temp1.x);
|
|
// log r2.y, r1.y
|
|
temp2.y = log2(temp1.y);
|
|
// log r2.z, r1.z
|
|
temp2.z = log2(temp1.z);
|
|
// mul r1.xyz, r2, c1.x
|
|
temp1.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r2.x, r1.x
|
|
temp2.x = exp2(temp1.x);
|
|
// exp r2.y, r1.y
|
|
temp2.y = exp2(temp1.y);
|
|
// exp r2.z, r1.z
|
|
temp2.z = exp2(temp1.z);
|
|
// log r1.x, r0.x
|
|
temp1.x = log2(temp0.x);
|
|
// log r1.y, r0.y
|
|
temp1.y = log2(temp0.y);
|
|
// log r1.z, r0.z
|
|
temp1.z = log2(temp0.z);
|
|
// mul r0.xyz, r1, c1.x
|
|
temp0.xyz = temp1.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r1.x, r0.x
|
|
temp1.x = exp2(temp0.x);
|
|
// exp r1.y, r0.y
|
|
temp1.y = exp2(temp0.y);
|
|
// exp r1.z, r0.z
|
|
temp1.z = exp2(temp0.z);
|
|
// mul r0.xyz, r2, r1
|
|
temp0.xyz = temp2.xyz * temp1.xyz;
|
|
// mul r1.xyz, c1.yzww, v3
|
|
temp1.xyz = float3(0.3, 0.6, 3) * i.texcoord6.xyz;
|
|
// mad r0.xyz, r0, c0.x, r1
|
|
temp0.xyz = temp0.xyz * float3(50, 50, 50) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.y
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// texld r0, v2.wzzw, s0
|
|
temp0 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
|
|
// mul oC0.xyz, r1, r0
|
|
out_color.xyz = temp1.xyz * temp0.xyz;
|
|
// mov oC0.w, v0.w
|
|
out_color.w = i.texcoord1.w;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_Array_Shader_2 Pixel_3_0 Has PRES False
|
|
struct PS_Array_Shader_2_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_Array_Shader_2(PS_Array_Shader_2_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1;
|
|
float3 temp2;
|
|
// def c0, 50, 2, 0, 0
|
|
// def c1, 2.2, 0.3, 0.6, 3
|
|
// dcl_texcoord1 v0.w
|
|
// dcl_texcoord v1.xy
|
|
// dcl_texcoord2 v2.zw
|
|
// dcl_texcoord6 v3.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.xy, v1.yxzw, v1.yxzw
|
|
temp0.xy = i.texcoord.yx + i.texcoord.yx;
|
|
// texld r1, r0.yxzw, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp0.yx);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// log r2.x, r1.x
|
|
temp2.x = log2(temp1.x);
|
|
// log r2.y, r1.y
|
|
temp2.y = log2(temp1.y);
|
|
// log r2.z, r1.z
|
|
temp2.z = log2(temp1.z);
|
|
// mul r1.xyz, r2, c1.x
|
|
temp1.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r2.x, r1.x
|
|
temp2.x = exp2(temp1.x);
|
|
// exp r2.y, r1.y
|
|
temp2.y = exp2(temp1.y);
|
|
// exp r2.z, r1.z
|
|
temp2.z = exp2(temp1.z);
|
|
// log r1.x, r0.x
|
|
temp1.x = log2(temp0.x);
|
|
// log r1.y, r0.y
|
|
temp1.y = log2(temp0.y);
|
|
// log r1.z, r0.z
|
|
temp1.z = log2(temp0.z);
|
|
// mul r0.xyz, r1, c1.x
|
|
temp0.xyz = temp1.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r1.x, r0.x
|
|
temp1.x = exp2(temp0.x);
|
|
// exp r1.y, r0.y
|
|
temp1.y = exp2(temp0.y);
|
|
// exp r1.z, r0.z
|
|
temp1.z = exp2(temp0.z);
|
|
// mul r0.xyz, r2, r1
|
|
temp0.xyz = temp2.xyz * temp1.xyz;
|
|
// mul r1.xyz, c1.yzww, v3
|
|
temp1.xyz = float3(0.3, 0.6, 3) * i.texcoord6.xyz;
|
|
// mad r0.xyz, r0, c0.x, r1
|
|
temp0.xyz = temp0.xyz * float3(50, 50, 50) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.y
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// texld r0, v2.wzzw, s0
|
|
temp0 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
|
|
// mul oC0.xyz, r1, r0
|
|
out_color.xyz = temp1.xyz * temp0.xyz;
|
|
// mov oC0.w, v0.w
|
|
out_color.w = i.texcoord1.w;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_Array_Shader_3 Pixel_3_0 Has PRES False
|
|
struct PS_Array_Shader_3_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_Array_Shader_3(PS_Array_Shader_3_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1;
|
|
float3 temp2;
|
|
// def c0, 50, 2, 0, 0
|
|
// def c1, 2.2, 0.3, 0.6, 3
|
|
// dcl_texcoord1 v0.w
|
|
// dcl_texcoord v1.xy
|
|
// dcl_texcoord2 v2.zw
|
|
// dcl_texcoord6 v3.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.xy, v1.yxzw, v1.yxzw
|
|
temp0.xy = i.texcoord.yx + i.texcoord.yx;
|
|
// texld r1, r0.yxzw, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp0.yx);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// log r2.x, r1.x
|
|
temp2.x = log2(temp1.x);
|
|
// log r2.y, r1.y
|
|
temp2.y = log2(temp1.y);
|
|
// log r2.z, r1.z
|
|
temp2.z = log2(temp1.z);
|
|
// mul r1.xyz, r2, c1.x
|
|
temp1.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r2.x, r1.x
|
|
temp2.x = exp2(temp1.x);
|
|
// exp r2.y, r1.y
|
|
temp2.y = exp2(temp1.y);
|
|
// exp r2.z, r1.z
|
|
temp2.z = exp2(temp1.z);
|
|
// log r1.x, r0.x
|
|
temp1.x = log2(temp0.x);
|
|
// log r1.y, r0.y
|
|
temp1.y = log2(temp0.y);
|
|
// log r1.z, r0.z
|
|
temp1.z = log2(temp0.z);
|
|
// mul r0.xyz, r1, c1.x
|
|
temp0.xyz = temp1.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r1.x, r0.x
|
|
temp1.x = exp2(temp0.x);
|
|
// exp r1.y, r0.y
|
|
temp1.y = exp2(temp0.y);
|
|
// exp r1.z, r0.z
|
|
temp1.z = exp2(temp0.z);
|
|
// mul r0.xyz, r2, r1
|
|
temp0.xyz = temp2.xyz * temp1.xyz;
|
|
// mul r1.xyz, c1.yzww, v3
|
|
temp1.xyz = float3(0.3, 0.6, 3) * i.texcoord6.xyz;
|
|
// mad r0.xyz, r0, c0.x, r1
|
|
temp0.xyz = temp0.xyz * float3(50, 50, 50) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.y
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// texld r0, v2.wzzw, s0
|
|
temp0 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
|
|
// mul oC0.xyz, r1, r0
|
|
out_color.xyz = temp1.xyz * temp0.xyz;
|
|
// mov oC0.w, v0.w
|
|
out_color.w = i.texcoord1.w;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_Array_Shader_4 Pixel_3_0 Has PRES False
|
|
struct PS_Array_Shader_4_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_Array_Shader_4(PS_Array_Shader_4_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1;
|
|
float3 temp2;
|
|
// def c0, 50, 2, 0, 0
|
|
// def c1, 2.2, 0.3, 0.6, 3
|
|
// dcl_texcoord1 v0.w
|
|
// dcl_texcoord v1.xy
|
|
// dcl_texcoord2 v2.zw
|
|
// dcl_texcoord6 v3.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.xy, v1.yxzw, v1.yxzw
|
|
temp0.xy = i.texcoord.yx + i.texcoord.yx;
|
|
// texld r1, r0.yxzw, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp0.yx);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// log r2.x, r1.x
|
|
temp2.x = log2(temp1.x);
|
|
// log r2.y, r1.y
|
|
temp2.y = log2(temp1.y);
|
|
// log r2.z, r1.z
|
|
temp2.z = log2(temp1.z);
|
|
// mul r1.xyz, r2, c1.x
|
|
temp1.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r2.x, r1.x
|
|
temp2.x = exp2(temp1.x);
|
|
// exp r2.y, r1.y
|
|
temp2.y = exp2(temp1.y);
|
|
// exp r2.z, r1.z
|
|
temp2.z = exp2(temp1.z);
|
|
// log r1.x, r0.x
|
|
temp1.x = log2(temp0.x);
|
|
// log r1.y, r0.y
|
|
temp1.y = log2(temp0.y);
|
|
// log r1.z, r0.z
|
|
temp1.z = log2(temp0.z);
|
|
// mul r0.xyz, r1, c1.x
|
|
temp0.xyz = temp1.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r1.x, r0.x
|
|
temp1.x = exp2(temp0.x);
|
|
// exp r1.y, r0.y
|
|
temp1.y = exp2(temp0.y);
|
|
// exp r1.z, r0.z
|
|
temp1.z = exp2(temp0.z);
|
|
// mul r0.xyz, r2, r1
|
|
temp0.xyz = temp2.xyz * temp1.xyz;
|
|
// mul r1.xyz, c1.yzww, v3
|
|
temp1.xyz = float3(0.3, 0.6, 3) * i.texcoord6.xyz;
|
|
// mad r0.xyz, r0, c0.x, r1
|
|
temp0.xyz = temp0.xyz * float3(50, 50, 50) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.y
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// texld r0, v2.wzzw, s0
|
|
temp0 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
|
|
// mul oC0.xyz, r1, r0
|
|
out_color.xyz = temp1.xyz * temp0.xyz;
|
|
// mov oC0.w, v0.w
|
|
out_color.w = i.texcoord1.w;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_Array_Shader_5 Pixel_3_0 Has PRES False
|
|
struct PS_Array_Shader_5_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_Array_Shader_5(PS_Array_Shader_5_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1;
|
|
float3 temp2;
|
|
// def c0, 50, 2, 0, 0
|
|
// def c1, 2.2, 0.3, 0.6, 3
|
|
// dcl_texcoord1 v0.w
|
|
// dcl_texcoord v1.xy
|
|
// dcl_texcoord2 v2.zw
|
|
// dcl_texcoord6 v3.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.xy, v1.yxzw, v1.yxzw
|
|
temp0.xy = i.texcoord.yx + i.texcoord.yx;
|
|
// texld r1, r0.yxzw, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp0.yx);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// log r2.x, r1.x
|
|
temp2.x = log2(temp1.x);
|
|
// log r2.y, r1.y
|
|
temp2.y = log2(temp1.y);
|
|
// log r2.z, r1.z
|
|
temp2.z = log2(temp1.z);
|
|
// mul r1.xyz, r2, c1.x
|
|
temp1.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r2.x, r1.x
|
|
temp2.x = exp2(temp1.x);
|
|
// exp r2.y, r1.y
|
|
temp2.y = exp2(temp1.y);
|
|
// exp r2.z, r1.z
|
|
temp2.z = exp2(temp1.z);
|
|
// log r1.x, r0.x
|
|
temp1.x = log2(temp0.x);
|
|
// log r1.y, r0.y
|
|
temp1.y = log2(temp0.y);
|
|
// log r1.z, r0.z
|
|
temp1.z = log2(temp0.z);
|
|
// mul r0.xyz, r1, c1.x
|
|
temp0.xyz = temp1.xyz * float3(2.2, 2.2, 2.2);
|
|
// exp r1.x, r0.x
|
|
temp1.x = exp2(temp0.x);
|
|
// exp r1.y, r0.y
|
|
temp1.y = exp2(temp0.y);
|
|
// exp r1.z, r0.z
|
|
temp1.z = exp2(temp0.z);
|
|
// mul r0.xyz, r2, r1
|
|
temp0.xyz = temp2.xyz * temp1.xyz;
|
|
// mul r1.xyz, c1.yzww, v3
|
|
temp1.xyz = float3(0.3, 0.6, 3) * i.texcoord6.xyz;
|
|
// mad r0.xyz, r0, c0.x, r1
|
|
temp0.xyz = temp0.xyz * float3(50, 50, 50) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.y
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// texld r0, v2.wzzw, s0
|
|
temp0 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
|
|
// mul oC0.xyz, r1, r0
|
|
out_color.xyz = temp1.xyz * temp0.xyz;
|
|
// mov oC0.w, v0.w
|
|
out_color.w = i.texcoord1.w;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
PixelShader PS_Array[6] = {
|
|
compile ps_3_0 PS_Array_Shader_0(), // 65
|
|
compile ps_3_0 PS_Array_Shader_1(), // 66
|
|
compile ps_3_0 PS_Array_Shader_2(), // 67
|
|
compile ps_3_0 PS_Array_Shader_3(), // 68
|
|
compile ps_3_0 PS_Array_Shader_4(), // 69
|
|
compile ps_3_0 PS_Array_Shader_5(), // 70
|
|
};
|
|
// VS_M_Array_Shader_0 Vertex_2_0 Has PRES True
|
|
struct VS_M_Array_Shader_0_Input
|
|
{
|
|
float4 position : POSITION;
|
|
float4 normal : NORMAL;
|
|
float4 texcoord : TEXCOORD;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct VS_M_Array_Shader_0_Output
|
|
{
|
|
float2 texcoord : TEXCOORD;
|
|
float4 color1 : COLOR1;
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float3 texcoord5 : TEXCOORD5;
|
|
float3 texcoord4 : TEXCOORD4;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
float4 texcoord3 : TEXCOORD3;
|
|
float4 position : POSITION;
|
|
};
|
|
|
|
VS_M_Array_Shader_0_Output VS_M_Array_Shader_0(VS_M_Array_Shader_0_Input i)
|
|
{
|
|
/*
|
|
PRSI
|
|
OutputRegisterOffset: 17
|
|
Unknown1: 0
|
|
Unknown2: 0
|
|
OutputRegisterCount: 1
|
|
Unknown3: 0
|
|
Unknown4: 0
|
|
Unknown5: 17
|
|
Unknown6: 1
|
|
Mappings: 1
|
|
0 - ConstOutput: 0 ConstInput 0
|
|
|
|
*/
|
|
float4 expr17;
|
|
{
|
|
// Expression_2_1
|
|
// mul c17.x, c0.x, (0.3)
|
|
expr17.x = Time.x * (0.3);
|
|
}
|
|
|
|
VS_M_Array_Shader_0_Output o;
|
|
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
|
|
float addr0;
|
|
float3 temp7;
|
|
// def c0, 1, 0, 0.5, 0
|
|
// def c3, 0.05, 0, -0.0015, 0
|
|
// defi i0, 2, 0, 0, 0
|
|
// dcl_position v0
|
|
// dcl_normal v1
|
|
// dcl_texcoord v2
|
|
// dcl_color v3
|
|
// mad r0, v0.xyzx, c0.xxxy, c0.yyyx
|
|
temp0 = i.position.xyzx * float4(1, 1, 1, 0) + float4(0, 0, 0, 1);
|
|
// dp4 r1.z, r0, c126
|
|
temp1.z = dot(temp0, (World._m02_m12_m22_m32));
|
|
// dp4 r1.x, r0, c124
|
|
temp1.x = dot(temp0, (World._m00_m10_m20_m30));
|
|
// dp4 r1.y, r0, c125
|
|
temp1.y = dot(temp0, (World._m01_m11_m21_m31));
|
|
// mad r0.xy, r1, c3.x, v2
|
|
temp0.xy = temp1.xy * float2(0.05, 0.05) + i.texcoord.xy;
|
|
// add oT0.xy, r0, c17.x
|
|
o.texcoord = temp0 + expr17.x;
|
|
// dp3 r0.x, v1, c124
|
|
temp0.x = dot(i.normal.xyz, (World._m00_m10_m20_m30).xyz);
|
|
// dp3 r0.y, v1, c125
|
|
temp0.y = dot(i.normal.xyz, (World._m01_m11_m21_m31).xyz);
|
|
// dp3 r0.z, v1, c126
|
|
temp0.z = dot(i.normal.xyz, (World._m02_m12_m22_m32).xyz);
|
|
// add r2.xyz, -r1, c123
|
|
temp2.xyz = -temp1.xyz + EyePosition.xyz;
|
|
// dp3 r0.w, r2, r2
|
|
temp0.w = dot(temp2.xyz, temp2.xyz);
|
|
// rsq r0.w, r0.w
|
|
temp0.w = 1 / sqrt(temp0.w);
|
|
// mul r3.xyz, r2, r0.w
|
|
temp3.xyz = temp2.xyz * temp0.www;
|
|
// dp3 r2.w, r3, r0
|
|
temp2.w = dot(temp3.xyz, temp0.xyz);
|
|
// mov r3.zw, c14.x
|
|
temp3.zw = Shininess.x;
|
|
// mov r4.xyz, c0.y
|
|
temp4.xyz = float3(0, 0, 0);
|
|
// mov r5.xyz, c0.y
|
|
temp5.xyz = float3(0, 0, 0);
|
|
// mov r4.w, c0.x
|
|
temp4.w = float1(1);
|
|
// rep i0
|
|
for (int it0 = 0; it0 < int1(2); ++it0) {
|
|
// add r5.w, r4.w, r4.w
|
|
temp5.w = temp4.w + temp4.w;
|
|
// mova a0.x, r5.w
|
|
addr0.x = temp5.w;
|
|
// mad r6.xyz, r2, r0.w, c6[a0.x]
|
|
temp6.xyz = temp2.xyz * temp0.www + DirectionalLight[0 + (addr0.x / 2)].Direction.xyz;
|
|
// nrm r7.xyz, r6
|
|
temp7.xyz = normalize(temp6.xyz).xyz;
|
|
// dp3 r3.y, r0, r7
|
|
temp3.y = dot(temp0.xyz, temp7.xyz);
|
|
// dp3 r3.x, r0, c6[a0.x]
|
|
temp3.x = dot(temp0.xyz, DirectionalLight[0 + (addr0.x / 2)].Direction.xyz);
|
|
// lit r6, r3
|
|
temp6 = lit(temp3.x, temp3.y, temp3.w);
|
|
// mad r5.xyz, c5[a0.x], r6.z, r5
|
|
temp5.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp6.zzz + temp5.xyz;
|
|
// mad r4.xyz, c5[a0.x], r6.y, r4
|
|
temp4.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp6.yyy + temp4.xyz;
|
|
// add r4.w, r4.w, c0.x
|
|
temp4.w = temp4.w + float1(1);
|
|
// endrep
|
|
}
|
|
// mul r3.xyz, r5, c13
|
|
temp3.xyz = temp5.xyz * ColorSpecular.xyz;
|
|
// mul oD1.xyz, r3, c0.z
|
|
o.color1.xyz = temp3.xyz * float3(0.5, 0.5, 0.5);
|
|
// mov r3.xyz, c4
|
|
temp3.xyz = AmbientLightColor.xyz;
|
|
// mov r5.xyz, c11
|
|
temp5.xyz = ColorAmbient.xyz;
|
|
// mad r3.xyz, r3, r5, c15
|
|
temp3.xyz = temp3.xyz * temp5.xyz + ColorEmissive.xyz;
|
|
// mad r3.xyz, r4, c12, r3
|
|
temp3.xyz = temp4.xyz * ColorDiffuse.xyz + temp3.xyz;
|
|
// mul r4.xyz, v3, c2
|
|
temp4.xyz = i.color.xyz * TintColor.xyz;
|
|
// mul r3.xyz, r3, r4
|
|
temp3.xyz = temp3.xyz * temp4.xyz;
|
|
// mul oT1.xyz, r3, c0.z
|
|
o.texcoord1.xyz = temp3.xyz * float3(0.5, 0.5, 0.5);
|
|
// dp3 r3.x, r0, c6
|
|
temp3.x = dot(temp0.xyz, DirectionalLight[0].Direction.xyz);
|
|
// mad r2.xyz, r2, r0.w, c6
|
|
temp2.xyz = temp2.xyz * temp0.www + DirectionalLight[0].Direction.xyz;
|
|
// nrm r5.xyz, r2
|
|
temp5.xyz = normalize(temp2.xyz).xyz;
|
|
// dp3 r3.y, r0, r5
|
|
temp3.y = dot(temp0.xyz, temp5.xyz);
|
|
// mov r3.zw, c14.x
|
|
temp3.zw = Shininess.x;
|
|
// lit r0, r3
|
|
temp0 = lit(temp3.x, temp3.y, temp3.w);
|
|
// mul r0.xzw, r0.z, c5.xyyz
|
|
temp0.xzw = temp0.zzz * DirectionalLight[0].Color.xyz;
|
|
// mul r0.xzw, r0, c13.xyyz
|
|
temp0.xzw = temp0.xzw * ColorSpecular.xyz;
|
|
// mul oT5.xyz, r0.xzww, c0.z
|
|
o.texcoord5 = temp0.xzww * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mul r0.xyz, r0.y, c5
|
|
temp0.xyz = temp0.yyy * DirectionalLight[0].Color.xyz;
|
|
// mul r0.xyz, r0, c12
|
|
temp0.xyz = temp0.xyz * ColorDiffuse.xyz;
|
|
// mul r0.xyz, r4, r0
|
|
temp0.xyz = temp4.xyz * temp0.xyz;
|
|
// mul oT4.xyz, r0, c0.z
|
|
o.texcoord4 = temp0 * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mul r0.xy, r1.z, c117.zwzw
|
|
temp0.xy = temp1.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
|
|
// mad r0.xy, r1, c117, -r0
|
|
temp0.xy = temp1.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp0.xy;
|
|
// add oT2.xy, r0, c118
|
|
o.texcoord2.xy = temp0.xy + Cloud.CurrentOffsetUV.xy;
|
|
// add r0.x, -r2.w, c0.x
|
|
temp0.x = -temp2.w + float1(1);
|
|
// mul oT6.xyz, r0.x, r0.x
|
|
o.texcoord6 = temp0.x * temp0.x;
|
|
// mov r1.w, c0.x
|
|
temp1.w = float1(1);
|
|
// dp4 r0.x, r1, c116
|
|
temp0.x = dot(temp1, (ShadowMapWorldToShadow._m03_m13_m23_m33));
|
|
// dp4 r0.y, r1, c113
|
|
temp0.y = dot(temp1, (ShadowMapWorldToShadow._m00_m10_m20_m30));
|
|
// dp4 r0.z, r1, c114
|
|
temp0.z = dot(temp1, (ShadowMapWorldToShadow._m01_m11_m21_m31));
|
|
// dp4 r0.w, r1, c115
|
|
temp0.w = dot(temp1, (ShadowMapWorldToShadow._m02_m12_m22_m32));
|
|
// rcp r2.x, r0.x
|
|
temp2.x = 1.0f / temp0.x;
|
|
// mad oT3.xyz, r0.yzww, r2.x, c3.yyzw
|
|
o.texcoord3.xyz = temp0.yzw * temp2.xxx + float3(0, 0, -0.0015);
|
|
// add r0.yz, r1.xyxw, c16.xwzw
|
|
temp0.yz = temp1.yx + Shroud.ScaleUV_OffsetUV.wz;
|
|
// mul oT2.zw, r0.xyyz, c16.xyyx
|
|
o.texcoord2.zw = temp0.yz * Shroud.ScaleUV_OffsetUV.yx;
|
|
// mov oT3.w, r0.x
|
|
o.texcoord3.w = temp0.x;
|
|
// dp4 oPos.x, r1, c119
|
|
o.position.x = dot(temp1, (ViewProjection._m00_m10_m20_m30));
|
|
// dp4 oPos.y, r1, c120
|
|
o.position.y = dot(temp1, (ViewProjection._m01_m11_m21_m31));
|
|
// dp4 oPos.z, r1, c121
|
|
o.position.z = dot(temp1, (ViewProjection._m02_m12_m22_m32));
|
|
// dp4 oPos.w, r1, c122
|
|
o.position.w = dot(temp1, (ViewProjection._m03_m13_m23_m33));
|
|
// mul oT1.w, v3.w, c1.x
|
|
o.texcoord1.w = i.color.w * OpacityOverride.x;
|
|
// mov oD1.w, c0.x
|
|
o.color1.w = float1(1);
|
|
//
|
|
|
|
return o;
|
|
}
|
|
|
|
// VS_M_Array_Shader_1 Vertex_2_0 Has PRES True
|
|
struct VS_M_Array_Shader_1_Input
|
|
{
|
|
float4 blendindices : BLENDINDICES;
|
|
float4 position : POSITION;
|
|
float4 normal : NORMAL;
|
|
float4 texcoord : TEXCOORD;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct VS_M_Array_Shader_1_Output
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float4 position : POSITION;
|
|
float4 color1 : COLOR1;
|
|
float3 texcoord5 : TEXCOORD5;
|
|
float3 texcoord4 : TEXCOORD4;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
float4 texcoord3 : TEXCOORD3;
|
|
};
|
|
|
|
VS_M_Array_Shader_1_Output VS_M_Array_Shader_1(VS_M_Array_Shader_1_Input i)
|
|
{
|
|
/*
|
|
PRSI
|
|
OutputRegisterOffset: 17
|
|
Unknown1: 0
|
|
Unknown2: 0
|
|
OutputRegisterCount: 1
|
|
Unknown3: 0
|
|
Unknown4: 0
|
|
Unknown5: 17
|
|
Unknown6: 1
|
|
Mappings: 1
|
|
0 - ConstOutput: 0 ConstInput 0
|
|
|
|
*/
|
|
float4 expr17;
|
|
{
|
|
// Expression_2_1
|
|
// mul c17.x, c0.x, (0.3)
|
|
expr17.x = Time.x * (0.3);
|
|
}
|
|
|
|
VS_M_Array_Shader_1_Output o;
|
|
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
|
|
float addr0;
|
|
float3 temp7;
|
|
// def c0, 1, -1, 0.5, 0
|
|
// def c3, 0, 0.05, -0.0015, 0
|
|
// defi i0, 2, 0, 0, 0
|
|
// dcl_blendindices v0
|
|
// dcl_position v1
|
|
// dcl_normal v2
|
|
// dcl_texcoord v3
|
|
// dcl_color v4
|
|
// frc r0.x, v0.x
|
|
temp0.x = frac(i.blendindices.x);
|
|
// slt r0.y, -r0.x, r0.x
|
|
temp0.y = (-temp0.x < temp0.x) ? 1 : 0;
|
|
// add r0.x, -r0.x, v0.x
|
|
temp0.x = -temp0.x + i.blendindices.x;
|
|
// slt r0.z, v0.x, -v0.x
|
|
temp0.z = (i.blendindices.x < -i.blendindices.x) ? 1 : 0;
|
|
// mad r0.x, r0.z, r0.y, r0.x
|
|
temp0.x = temp0.z * temp0.y + temp0.x;
|
|
// add r0.x, r0.x, r0.x
|
|
temp0.x = temp0.x + temp0.x;
|
|
// mova a0.x, r0.x
|
|
addr0.x = temp0.x;
|
|
// mul r0.x, v4.w, c129[a0.x].w
|
|
temp0.x = i.color.w * WorldBones[1 + addr0.x].w;
|
|
// mul oT1.w, r0.x, c1.x
|
|
o.texcoord1.w = temp0.x * OpacityOverride.x;
|
|
// mov r0.w, c0.x
|
|
temp0.w = float1(1);
|
|
// mul r1, v1.zxyy, c128[a0.x].yzxy
|
|
temp1 = i.position.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r1, c128[a0.x].wwwx, v1.xyzx, r1
|
|
temp1 = WorldBones[0 + addr0.x].wwwx * i.position.xyzx + temp1;
|
|
// mul r2, v1.yzxz, c128[a0.x].zxyz
|
|
temp2 = i.position.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r1, r1, c0.xxxy, -r2
|
|
temp1 = temp1 * float4(1, 1, 1, -1) + -temp2;
|
|
// mul r2.xyz, r1.w, c128[a0.x]
|
|
temp2.xyz = temp1.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r2.xyz, c128[a0.x].w, r1, -r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].www * temp1.xyz + -temp2.xyz;
|
|
// mad r2.xyz, c128[a0.x].yzxw, r1.zxyw, r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].yzx * temp1.zxy + temp2.xyz;
|
|
// mad r1.xyz, c128[a0.x].zxyw, -r1.yzxw, r2
|
|
temp1.xyz = WorldBones[0 + addr0.x].zxy * -temp1.yzx + temp2.xyz;
|
|
// add r0.xyz, r1, c129[a0.x]
|
|
temp0.xyz = temp1.xyz + WorldBones[1 + addr0.x].xyz;
|
|
// mad r1.xy, r0, c3.y, v3
|
|
temp1.xy = temp0.xy * float2(0.05, 0.05) + i.texcoord.xy;
|
|
// add oT0.xy, r1, c17.x
|
|
o.texcoord = temp1 + expr17.x;
|
|
// mul r1.xy, r0.z, c117.zwzw
|
|
temp1.xy = temp0.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
|
|
// mad r1.xy, r0, c117, -r1
|
|
temp1.xy = temp0.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp1.xy;
|
|
// add oT2.xy, r1, c118
|
|
o.texcoord2.xy = temp1.xy + Cloud.CurrentOffsetUV.xy;
|
|
// dp4 oPos.x, r0, c119
|
|
o.position.x = dot(temp0, (ViewProjection._m00_m10_m20_m30));
|
|
// dp4 oPos.y, r0, c120
|
|
o.position.y = dot(temp0, (ViewProjection._m01_m11_m21_m31));
|
|
// dp4 oPos.z, r0, c121
|
|
o.position.z = dot(temp0, (ViewProjection._m02_m12_m22_m32));
|
|
// dp4 oPos.w, r0, c122
|
|
o.position.w = dot(temp0, (ViewProjection._m03_m13_m23_m33));
|
|
// mul r1, v2.zxyy, c128[a0.x].yzxy
|
|
temp1 = i.normal.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r1, c128[a0.x].wwwx, v2.xyzx, r1
|
|
temp1 = WorldBones[0 + addr0.x].wwwx * i.normal.xyzx + temp1;
|
|
// mul r2, v2.yzxz, c128[a0.x].zxyz
|
|
temp2 = i.normal.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r1, r1, c0.xxxy, -r2
|
|
temp1 = temp1 * float4(1, 1, 1, -1) + -temp2;
|
|
// mul r2.xyz, r1.w, c128[a0.x]
|
|
temp2.xyz = temp1.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r2.xyz, c128[a0.x].w, r1, -r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].www * temp1.xyz + -temp2.xyz;
|
|
// mad r2.xyz, c128[a0.x].yzxw, r1.zxyw, r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].yzx * temp1.zxy + temp2.xyz;
|
|
// mad r1.xyz, c128[a0.x].zxyw, -r1.yzxw, r2
|
|
temp1.xyz = WorldBones[0 + addr0.x].zxy * -temp1.yzx + temp2.xyz;
|
|
// add r2.xyz, -r0, c123
|
|
temp2.xyz = -temp0.xyz + EyePosition.xyz;
|
|
// dp3 r1.w, r2, r2
|
|
temp1.w = dot(temp2.xyz, temp2.xyz);
|
|
// rsq r1.w, r1.w
|
|
temp1.w = 1 / sqrt(temp1.w);
|
|
// mul r3.xyz, r2, r1.w
|
|
temp3.xyz = temp2.xyz * temp1.www;
|
|
// dp3 r2.w, r3, r1
|
|
temp2.w = dot(temp3.xyz, temp1.xyz);
|
|
// mov r3.zw, c14.x
|
|
temp3.zw = Shininess.x;
|
|
// mov r4.xyz, c3.x
|
|
temp4.xyz = float3(0, 0, 0);
|
|
// mov r5.xyz, c3.x
|
|
temp5.xyz = float3(0, 0, 0);
|
|
// mov r4.w, c0.x
|
|
temp4.w = float1(1);
|
|
// rep i0
|
|
for (int it0 = 0; it0 < int1(2); ++it0) {
|
|
// add r5.w, r4.w, r4.w
|
|
temp5.w = temp4.w + temp4.w;
|
|
// mova a0.x, r5.w
|
|
addr0.x = temp5.w;
|
|
// mad r6.xyz, r2, r1.w, c6[a0.x]
|
|
temp6.xyz = temp2.xyz * temp1.www + DirectionalLight[0 + (addr0.x / 2)].Direction.xyz;
|
|
// nrm r7.xyz, r6
|
|
temp7.xyz = normalize(temp6.xyz).xyz;
|
|
// dp3 r3.y, r1, r7
|
|
temp3.y = dot(temp1.xyz, temp7.xyz);
|
|
// dp3 r3.x, r1, c6[a0.x]
|
|
temp3.x = dot(temp1.xyz, DirectionalLight[0 + (addr0.x / 2)].Direction.xyz);
|
|
// lit r6, r3
|
|
temp6 = lit(temp3.x, temp3.y, temp3.w);
|
|
// mad r5.xyz, c5[a0.x], r6.z, r5
|
|
temp5.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp6.zzz + temp5.xyz;
|
|
// mad r4.xyz, c5[a0.x], r6.y, r4
|
|
temp4.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp6.yyy + temp4.xyz;
|
|
// add r4.w, r4.w, c0.x
|
|
temp4.w = temp4.w + float1(1);
|
|
// endrep
|
|
}
|
|
// mul r3.xyz, r5, c13
|
|
temp3.xyz = temp5.xyz * ColorSpecular.xyz;
|
|
// mul oD1.xyz, r3, c0.z
|
|
o.color1.xyz = temp3.xyz * float3(0.5, 0.5, 0.5);
|
|
// mov r3.xyz, c4
|
|
temp3.xyz = AmbientLightColor.xyz;
|
|
// mov r5.xyz, c11
|
|
temp5.xyz = ColorAmbient.xyz;
|
|
// mad r3.xyz, r3, r5, c15
|
|
temp3.xyz = temp3.xyz * temp5.xyz + ColorEmissive.xyz;
|
|
// mad r3.xyz, r4, c12, r3
|
|
temp3.xyz = temp4.xyz * ColorDiffuse.xyz + temp3.xyz;
|
|
// mul r4.xyz, v4, c2
|
|
temp4.xyz = i.color.xyz * TintColor.xyz;
|
|
// mul r3.xyz, r3, r4
|
|
temp3.xyz = temp3.xyz * temp4.xyz;
|
|
// mul oT1.xyz, r3, c0.z
|
|
o.texcoord1.xyz = temp3.xyz * float3(0.5, 0.5, 0.5);
|
|
// dp3 r3.x, r1, c6
|
|
temp3.x = dot(temp1.xyz, DirectionalLight[0].Direction.xyz);
|
|
// mad r2.xyz, r2, r1.w, c6
|
|
temp2.xyz = temp2.xyz * temp1.www + DirectionalLight[0].Direction.xyz;
|
|
// nrm r5.xyz, r2
|
|
temp5.xyz = normalize(temp2.xyz).xyz;
|
|
// dp3 r3.y, r1, r5
|
|
temp3.y = dot(temp1.xyz, temp5.xyz);
|
|
// mov r3.zw, c14.x
|
|
temp3.zw = Shininess.x;
|
|
// lit r1, r3
|
|
temp1 = lit(temp3.x, temp3.y, temp3.w);
|
|
// mul r1.xzw, r1.z, c5.xyyz
|
|
temp1.xzw = temp1.zzz * DirectionalLight[0].Color.xyz;
|
|
// mul r1.xzw, r1, c13.xyyz
|
|
temp1.xzw = temp1.xzw * ColorSpecular.xyz;
|
|
// mul oT5.xyz, r1.xzww, c0.z
|
|
o.texcoord5 = temp1.xzww * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mul r1.xyz, r1.y, c5
|
|
temp1.xyz = temp1.yyy * DirectionalLight[0].Color.xyz;
|
|
// mul r1.xyz, r1, c12
|
|
temp1.xyz = temp1.xyz * ColorDiffuse.xyz;
|
|
// mul r1.xyz, r4, r1
|
|
temp1.xyz = temp4.xyz * temp1.xyz;
|
|
// mul oT4.xyz, r1, c0.z
|
|
o.texcoord4 = temp1 * float4(0.5, 0.5, 0.5, 0.5);
|
|
// add r1.xy, r0.yxzw, c16.wzzw
|
|
temp1.xy = temp0.yx + Shroud.ScaleUV_OffsetUV.wz;
|
|
// mul oT2.zw, r1.xyxy, c16.xyyx
|
|
o.texcoord2.zw = temp1.xy * Shroud.ScaleUV_OffsetUV.yx;
|
|
// add r1.x, -r2.w, c0.x
|
|
temp1.x = -temp2.w + float1(1);
|
|
// mul oT6.xyz, r1.x, r1.x
|
|
o.texcoord6 = temp1.x * temp1.x;
|
|
// dp4 r1.x, r0, c116
|
|
temp1.x = dot(temp0, (ShadowMapWorldToShadow._m03_m13_m23_m33));
|
|
// dp4 r1.y, r0, c113
|
|
temp1.y = dot(temp0, (ShadowMapWorldToShadow._m00_m10_m20_m30));
|
|
// dp4 r1.z, r0, c114
|
|
temp1.z = dot(temp0, (ShadowMapWorldToShadow._m01_m11_m21_m31));
|
|
// dp4 r1.w, r0, c115
|
|
temp1.w = dot(temp0, (ShadowMapWorldToShadow._m02_m12_m22_m32));
|
|
// rcp r0.x, r1.x
|
|
temp0.x = 1.0f / temp1.x;
|
|
// mad oT3.xyz, r1.yzww, r0.x, c3.xxzw
|
|
o.texcoord3.xyz = temp1.yzw * temp0.xxx + float3(0, 0, -0.0015);
|
|
// mov oT3.w, r1.x
|
|
o.texcoord3.w = temp1.x;
|
|
// mov oD1.w, c0.x
|
|
o.color1.w = float1(1);
|
|
//
|
|
|
|
return o;
|
|
}
|
|
|
|
// VS_M_Array_Shader_2 Vertex_2_0 Has PRES True
|
|
struct VS_M_Array_Shader_2_Input
|
|
{
|
|
float4 blendindices : BLENDINDICES;
|
|
float4 blendweight : BLENDWEIGHT;
|
|
float4 position : POSITION;
|
|
float4 position1 : POSITION1;
|
|
float4 normal : NORMAL;
|
|
float4 normal1 : NORMAL1;
|
|
float4 texcoord : TEXCOORD;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct VS_M_Array_Shader_2_Output
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 color1 : COLOR1;
|
|
float3 texcoord5 : TEXCOORD5;
|
|
float3 texcoord4 : TEXCOORD4;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
float4 texcoord3 : TEXCOORD3;
|
|
float4 position : POSITION;
|
|
};
|
|
|
|
VS_M_Array_Shader_2_Output VS_M_Array_Shader_2(VS_M_Array_Shader_2_Input i)
|
|
{
|
|
/*
|
|
PRSI
|
|
OutputRegisterOffset: 17
|
|
Unknown1: 0
|
|
Unknown2: 0
|
|
OutputRegisterCount: 1
|
|
Unknown3: 0
|
|
Unknown4: 0
|
|
Unknown5: 17
|
|
Unknown6: 1
|
|
Mappings: 1
|
|
0 - ConstOutput: 0 ConstInput 0
|
|
|
|
*/
|
|
float4 expr17;
|
|
{
|
|
// Expression_2_1
|
|
// mul c17.x, c0.x, (0.3)
|
|
expr17.x = Time.x * (0.3);
|
|
}
|
|
|
|
VS_M_Array_Shader_2_Output o;
|
|
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
|
|
float2 addr0;
|
|
float3 temp7;
|
|
// def c0, 1, -1, 0.5, 0
|
|
// def c3, 0, 0.05, -0.0015, 0
|
|
// defi i0, 2, 0, 0, 0
|
|
// dcl_blendindices v0
|
|
// dcl_blendweight v1
|
|
// dcl_position v2
|
|
// dcl_position1 v3
|
|
// dcl_normal v4
|
|
// dcl_normal1 v5
|
|
// dcl_texcoord v6
|
|
// dcl_color v7
|
|
// frc r0.xy, v0
|
|
temp0.xy = frac(i.blendindices.xy);
|
|
// slt r0.zw, -r0.xyxy, r0.xyxy
|
|
temp0.zw = (-temp0.xy < temp0.xy) ? 1 : 0;
|
|
// add r0.xy, -r0, v0
|
|
temp0.xy = -temp0.xy + i.blendindices.xy;
|
|
// slt r1.xy, v0, -v0
|
|
temp1.xy = (i.blendindices.xy < -i.blendindices.xy) ? 1 : 0;
|
|
// mad r0.xy, r1, r0.zwzw, r0
|
|
temp0.xy = temp1.xy * temp0.zw + temp0.xy;
|
|
// add r0.xy, r0, r0
|
|
temp0.xy = temp0.xy + temp0.xy;
|
|
// mova a0.xy, r0
|
|
addr0.xy = temp0.xy;
|
|
// mul r0.x, v1.y, c129[a0.y].w
|
|
temp0.x = i.blendweight.y * WorldBones[1 + addr0.y].w;
|
|
// mad r0.x, c129[a0.x].w, v1.x, r0.x
|
|
temp0.x = WorldBones[1 + addr0.x].w * i.blendweight.x + temp0.x;
|
|
// mul r0.x, r0.x, v7.w
|
|
temp0.x = temp0.x * i.color.w;
|
|
// mul oT1.w, r0.x, c1.x
|
|
o.texcoord1.w = temp0.x * OpacityOverride.x;
|
|
// mul r0, v2.zxyy, c128[a0.x].yzxy
|
|
temp0 = i.position.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r0, c128[a0.x].wwwx, v2.xyzx, r0
|
|
temp0 = WorldBones[0 + addr0.x].wwwx * i.position.xyzx + temp0;
|
|
// mul r1, v2.yzxz, c128[a0.x].zxyz
|
|
temp1 = i.position.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r0, r0, c0.xxxy, -r1
|
|
temp0 = temp0 * float4(1, 1, 1, -1) + -temp1;
|
|
// mul r1.xyz, r0.w, c128[a0.x]
|
|
temp1.xyz = temp0.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r1.xyz, c128[a0.x].w, r0, -r1
|
|
temp1.xyz = WorldBones[0 + addr0.x].www * temp0.xyz + -temp1.xyz;
|
|
// mad r1.xyz, c128[a0.x].yzxw, r0.zxyw, r1
|
|
temp1.xyz = WorldBones[0 + addr0.x].yzx * temp0.zxy + temp1.xyz;
|
|
// mad r0.xyz, c128[a0.x].zxyw, -r0.yzxw, r1
|
|
temp0.xyz = WorldBones[0 + addr0.x].zxy * -temp0.yzx + temp1.xyz;
|
|
// add r0.xyz, r0, c129[a0.x]
|
|
temp0.xyz = temp0.xyz + WorldBones[1 + addr0.x].xyz;
|
|
// mul r1, v4.zxyy, c128[a0.x].yzxy
|
|
temp1 = i.normal.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r1, c128[a0.x].wwwx, v4.xyzx, r1
|
|
temp1 = WorldBones[0 + addr0.x].wwwx * i.normal.xyzx + temp1;
|
|
// mul r2, v4.yzxz, c128[a0.x].zxyz
|
|
temp2 = i.normal.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r1, r1, c0.xxxy, -r2
|
|
temp1 = temp1 * float4(1, 1, 1, -1) + -temp2;
|
|
// mul r2.xyz, r1.w, c128[a0.x]
|
|
temp2.xyz = temp1.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r2.xyz, c128[a0.x].w, r1, -r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].www * temp1.xyz + -temp2.xyz;
|
|
// mad r2.xyz, c128[a0.x].yzxw, r1.zxyw, r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].yzx * temp1.zxy + temp2.xyz;
|
|
// mad r1.xyz, c128[a0.x].zxyw, -r1.yzxw, r2
|
|
temp1.xyz = WorldBones[0 + addr0.x].zxy * -temp1.yzx + temp2.xyz;
|
|
// mul r2, v3.zxyy, c128[a0.y].yzxy
|
|
temp2 = i.position1.zxyy * WorldBones[0 + addr0.y].yzxy;
|
|
// mad r2, c128[a0.y].wwwx, v3.xyzx, r2
|
|
temp2 = WorldBones[0 + addr0.y].wwwx * i.position1.xyzx + temp2;
|
|
// mul r3, v3.yzxz, c128[a0.y].zxyz
|
|
temp3 = i.position1.yzxz * WorldBones[0 + addr0.y].zxyz;
|
|
// mad r2, r2, c0.xxxy, -r3
|
|
temp2 = temp2 * float4(1, 1, 1, -1) + -temp3;
|
|
// mul r3.xyz, r2.w, c128[a0.y]
|
|
temp3.xyz = temp2.www * WorldBones[0 + addr0.y].xyz;
|
|
// mad r3.xyz, c128[a0.y].w, r2, -r3
|
|
temp3.xyz = WorldBones[0 + addr0.y].www * temp2.xyz + -temp3.xyz;
|
|
// mad r3.xyz, c128[a0.y].yzxw, r2.zxyw, r3
|
|
temp3.xyz = WorldBones[0 + addr0.y].yzx * temp2.zxy + temp3.xyz;
|
|
// mad r2.xyz, c128[a0.y].zxyw, -r2.yzxw, r3
|
|
temp2.xyz = WorldBones[0 + addr0.y].zxy * -temp2.yzx + temp3.xyz;
|
|
// add r2.xyz, r2, c129[a0.y]
|
|
temp2.xyz = temp2.xyz + WorldBones[1 + addr0.y].xyz;
|
|
// mul r2.xyz, r2, v1.y
|
|
temp2.xyz = temp2.xyz * i.blendweight.yyy;
|
|
// mad r0.xyz, r0, v1.x, r2
|
|
temp0.xyz = temp0.xyz * i.blendweight.xxx + temp2.xyz;
|
|
// mul r2, v5.zxyy, c128[a0.y].yzxy
|
|
temp2 = i.normal1.zxyy * WorldBones[0 + addr0.y].yzxy;
|
|
// mad r2, c128[a0.y].wwwx, v5.xyzx, r2
|
|
temp2 = WorldBones[0 + addr0.y].wwwx * i.normal1.xyzx + temp2;
|
|
// mul r3, v5.yzxz, c128[a0.y].zxyz
|
|
temp3 = i.normal1.yzxz * WorldBones[0 + addr0.y].zxyz;
|
|
// mad r2, r2, c0.xxxy, -r3
|
|
temp2 = temp2 * float4(1, 1, 1, -1) + -temp3;
|
|
// mul r3.xyz, r2.w, c128[a0.y]
|
|
temp3.xyz = temp2.www * WorldBones[0 + addr0.y].xyz;
|
|
// mad r3.xyz, c128[a0.y].w, r2, -r3
|
|
temp3.xyz = WorldBones[0 + addr0.y].www * temp2.xyz + -temp3.xyz;
|
|
// mad r3.xyz, c128[a0.y].yzxw, r2.zxyw, r3
|
|
temp3.xyz = WorldBones[0 + addr0.y].yzx * temp2.zxy + temp3.xyz;
|
|
// mad r2.xyz, c128[a0.y].zxyw, -r2.yzxw, r3
|
|
temp2.xyz = WorldBones[0 + addr0.y].zxy * -temp2.yzx + temp3.xyz;
|
|
// mul r2.xyz, r2, v1.y
|
|
temp2.xyz = temp2.xyz * i.blendweight.yyy;
|
|
// mad r1.xyz, r1, v1.x, r2
|
|
temp1.xyz = temp1.xyz * i.blendweight.xxx + temp2.xyz;
|
|
// mad r2.xy, r0, c3.y, v6
|
|
temp2.xy = temp0.xy * float2(0.05, 0.05) + i.texcoord.xy;
|
|
// add oT0.xy, r2, c17.x
|
|
o.texcoord = temp2 + expr17.x;
|
|
// add r2.xyz, -r0, c123
|
|
temp2.xyz = -temp0.xyz + EyePosition.xyz;
|
|
// dp3 r1.w, r2, r2
|
|
temp1.w = dot(temp2.xyz, temp2.xyz);
|
|
// rsq r1.w, r1.w
|
|
temp1.w = 1 / sqrt(temp1.w);
|
|
// mul r3.xyz, r2, r1.w
|
|
temp3.xyz = temp2.xyz * temp1.www;
|
|
// dp3 r2.w, r3, r1
|
|
temp2.w = dot(temp3.xyz, temp1.xyz);
|
|
// mov r3.zw, c14.x
|
|
temp3.zw = Shininess.x;
|
|
// mov r4.xyz, c3.x
|
|
temp4.xyz = float3(0, 0, 0);
|
|
// mov r5.xyz, c3.x
|
|
temp5.xyz = float3(0, 0, 0);
|
|
// mov r4.w, c0.x
|
|
temp4.w = float1(1);
|
|
// rep i0
|
|
for (int it0 = 0; it0 < int1(2); ++it0) {
|
|
// add r5.w, r4.w, r4.w
|
|
temp5.w = temp4.w + temp4.w;
|
|
// mova a0.x, r5.w
|
|
addr0.x = temp5.w;
|
|
// mad r6.xyz, r2, r1.w, c6[a0.x]
|
|
temp6.xyz = temp2.xyz * temp1.www + DirectionalLight[0 + (addr0.x / 2)].Direction.xyz;
|
|
// nrm r7.xyz, r6
|
|
temp7.xyz = normalize(temp6.xyz).xyz;
|
|
// dp3 r3.y, r1, r7
|
|
temp3.y = dot(temp1.xyz, temp7.xyz);
|
|
// dp3 r3.x, r1, c6[a0.x]
|
|
temp3.x = dot(temp1.xyz, DirectionalLight[0 + (addr0.x / 2)].Direction.xyz);
|
|
// lit r6, r3
|
|
temp6 = lit(temp3.x, temp3.y, temp3.w);
|
|
// mad r5.xyz, c5[a0.x], r6.z, r5
|
|
temp5.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp6.zzz + temp5.xyz;
|
|
// mad r4.xyz, c5[a0.x], r6.y, r4
|
|
temp4.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp6.yyy + temp4.xyz;
|
|
// add r4.w, r4.w, c0.x
|
|
temp4.w = temp4.w + float1(1);
|
|
// endrep
|
|
}
|
|
// mul r3.xyz, r5, c13
|
|
temp3.xyz = temp5.xyz * ColorSpecular.xyz;
|
|
// mul oD1.xyz, r3, c0.z
|
|
o.color1.xyz = temp3.xyz * float3(0.5, 0.5, 0.5);
|
|
// mov r3.xyz, c4
|
|
temp3.xyz = AmbientLightColor.xyz;
|
|
// mov r5.xyz, c11
|
|
temp5.xyz = ColorAmbient.xyz;
|
|
// mad r3.xyz, r3, r5, c15
|
|
temp3.xyz = temp3.xyz * temp5.xyz + ColorEmissive.xyz;
|
|
// mad r3.xyz, r4, c12, r3
|
|
temp3.xyz = temp4.xyz * ColorDiffuse.xyz + temp3.xyz;
|
|
// mul r4.xyz, v7, c2
|
|
temp4.xyz = i.color.xyz * TintColor.xyz;
|
|
// mul r3.xyz, r3, r4
|
|
temp3.xyz = temp3.xyz * temp4.xyz;
|
|
// mul oT1.xyz, r3, c0.z
|
|
o.texcoord1.xyz = temp3.xyz * float3(0.5, 0.5, 0.5);
|
|
// dp3 r3.x, r1, c6
|
|
temp3.x = dot(temp1.xyz, DirectionalLight[0].Direction.xyz);
|
|
// mad r2.xyz, r2, r1.w, c6
|
|
temp2.xyz = temp2.xyz * temp1.www + DirectionalLight[0].Direction.xyz;
|
|
// nrm r5.xyz, r2
|
|
temp5.xyz = normalize(temp2.xyz).xyz;
|
|
// dp3 r3.y, r1, r5
|
|
temp3.y = dot(temp1.xyz, temp5.xyz);
|
|
// mov r3.zw, c14.x
|
|
temp3.zw = Shininess.x;
|
|
// lit r1, r3
|
|
temp1 = lit(temp3.x, temp3.y, temp3.w);
|
|
// mul r1.xzw, r1.z, c5.xyyz
|
|
temp1.xzw = temp1.zzz * DirectionalLight[0].Color.xyz;
|
|
// mul r1.xzw, r1, c13.xyyz
|
|
temp1.xzw = temp1.xzw * ColorSpecular.xyz;
|
|
// mul oT5.xyz, r1.xzww, c0.z
|
|
o.texcoord5 = temp1.xzww * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mul r1.xyz, r1.y, c5
|
|
temp1.xyz = temp1.yyy * DirectionalLight[0].Color.xyz;
|
|
// mul r1.xyz, r1, c12
|
|
temp1.xyz = temp1.xyz * ColorDiffuse.xyz;
|
|
// mul r1.xyz, r4, r1
|
|
temp1.xyz = temp4.xyz * temp1.xyz;
|
|
// mul oT4.xyz, r1, c0.z
|
|
o.texcoord4 = temp1 * float4(0.5, 0.5, 0.5, 0.5);
|
|
// mul r1.xy, r0.z, c117.zwzw
|
|
temp1.xy = temp0.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
|
|
// mad r1.xy, r0, c117, -r1
|
|
temp1.xy = temp0.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp1.xy;
|
|
// add oT2.xy, r1, c118
|
|
o.texcoord2.xy = temp1.xy + Cloud.CurrentOffsetUV.xy;
|
|
// add r1.x, -r2.w, c0.x
|
|
temp1.x = -temp2.w + float1(1);
|
|
// mul oT6.xyz, r1.x, r1.x
|
|
o.texcoord6 = temp1.x * temp1.x;
|
|
// mov r0.w, c0.x
|
|
temp0.w = float1(1);
|
|
// dp4 r1.x, r0, c116
|
|
temp1.x = dot(temp0, (ShadowMapWorldToShadow._m03_m13_m23_m33));
|
|
// dp4 r1.y, r0, c113
|
|
temp1.y = dot(temp0, (ShadowMapWorldToShadow._m00_m10_m20_m30));
|
|
// dp4 r1.z, r0, c114
|
|
temp1.z = dot(temp0, (ShadowMapWorldToShadow._m01_m11_m21_m31));
|
|
// dp4 r1.w, r0, c115
|
|
temp1.w = dot(temp0, (ShadowMapWorldToShadow._m02_m12_m22_m32));
|
|
// rcp r2.x, r1.x
|
|
temp2.x = 1.0f / temp1.x;
|
|
// mad oT3.xyz, r1.yzww, r2.x, c3.xxzw
|
|
o.texcoord3.xyz = temp1.yzw * temp2.xxx + float3(0, 0, -0.0015);
|
|
// add r1.yz, r0.xyxw, c16.xwzw
|
|
temp1.yz = temp0.yx + Shroud.ScaleUV_OffsetUV.wz;
|
|
// mul oT2.zw, r1.xyyz, c16.xyyx
|
|
o.texcoord2.zw = temp1.yz * Shroud.ScaleUV_OffsetUV.yx;
|
|
// mov oT3.w, r1.x
|
|
o.texcoord3.w = temp1.x;
|
|
// dp4 oPos.x, r0, c119
|
|
o.position.x = dot(temp0, (ViewProjection._m00_m10_m20_m30));
|
|
// dp4 oPos.y, r0, c120
|
|
o.position.y = dot(temp0, (ViewProjection._m01_m11_m21_m31));
|
|
// dp4 oPos.z, r0, c121
|
|
o.position.z = dot(temp0, (ViewProjection._m02_m12_m22_m32));
|
|
// dp4 oPos.w, r0, c122
|
|
o.position.w = dot(temp0, (ViewProjection._m03_m13_m23_m33));
|
|
// mov oD1.w, c0.x
|
|
o.color1.w = float1(1);
|
|
//
|
|
|
|
return o;
|
|
}
|
|
|
|
VertexShader VS_M_Array[3] = {
|
|
compile vs_2_0 VS_M_Array_Shader_0(), // 73
|
|
compile vs_2_0 VS_M_Array_Shader_1(), // 74
|
|
compile vs_2_0 VS_M_Array_Shader_2(), // 75
|
|
};
|
|
// PS_M_Array_Shader_0 Pixel_2_0 Has PRES False
|
|
struct PS_M_Array_Shader_0_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_M_Array_Shader_0(PS_M_Array_Shader_0_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1, temp2;
|
|
// def c0, 0.3, 0.6, 3, 2
|
|
// dcl t1
|
|
// dcl t0.xy
|
|
// dcl t2
|
|
// dcl t6.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.x, t0.y, t0.y
|
|
temp0.x = i.texcoord.y + i.texcoord.y;
|
|
// add r0.y, t0.x, t0.x
|
|
temp0.y = i.texcoord.x + i.texcoord.x;
|
|
// mov r1.x, r0.y
|
|
temp1.x = temp0.y;
|
|
// mov r1.y, r0.x
|
|
temp1.y = temp0.x;
|
|
// mov r2.xy, t2.wzyx
|
|
temp2.xy = i.texcoord2.wz;
|
|
// texld r1, r1, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp1.xy);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// texld r2, r2, s0
|
|
temp2 = tex2D(ShroudTextureSampler, temp2.xy);
|
|
// mul r0.xyz, r1, r0
|
|
temp0.xyz = temp1.xyz * temp0.xyz;
|
|
// mul r1.xyz, t6, c0
|
|
temp1.xyz = i.texcoord6.xyz * float3(0.3, 0.6, 3);
|
|
// mad r0.xyz, r0, c0.z, r1
|
|
temp0.xyz = temp0.xyz * float3(3, 3, 3) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.w
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// mul r0.xyz, r2, r1
|
|
temp0.xyz = temp2.xyz * temp1.xyz;
|
|
// mov r0.w, t1.w
|
|
temp0.w = i.texcoord1.w;
|
|
// mov oC0, r0
|
|
out_color = temp0;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_M_Array_Shader_1 Pixel_2_0 Has PRES False
|
|
struct PS_M_Array_Shader_1_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float4 color1 : COLOR1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_M_Array_Shader_1(PS_M_Array_Shader_1_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1, temp2;
|
|
// def c0, 0.3, 0.6, 3, 2
|
|
// def c1, -1, 1, 0, 0
|
|
// dcl t1
|
|
// dcl v1
|
|
// dcl t0.xy
|
|
// dcl t2
|
|
// dcl t6.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.x, t0.y, t0.y
|
|
temp0.x = i.texcoord.y + i.texcoord.y;
|
|
// add r0.y, t0.x, t0.x
|
|
temp0.y = i.texcoord.x + i.texcoord.x;
|
|
// mov r1.x, r0.y
|
|
temp1.x = temp0.y;
|
|
// mov r1.y, r0.x
|
|
temp1.y = temp0.x;
|
|
// mov r2.xy, t2.wzyx
|
|
temp2.xy = i.texcoord2.wz;
|
|
// texld r1, r1, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp1.xy);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// texld r2, r2, s0
|
|
temp2 = tex2D(ShroudTextureSampler, temp2.xy);
|
|
// mul r0.xyz, r1, r0
|
|
temp0.xyz = temp1.xyz * temp0.xyz;
|
|
// mul r1.xyz, t6, c0
|
|
temp1.xyz = i.texcoord6.xyz * float3(0.3, 0.6, 3);
|
|
// mad r0.xyz, r0, c0.z, r1
|
|
temp0.xyz = temp0.xyz * float3(3, 3, 3) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.w
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// add r0.xyz, r1, c1.x
|
|
temp0.xyz = temp1.xyz + float3(-1, -1, -1);
|
|
// mad r0.xyz, v1.w, r0, c1.y
|
|
temp0.xyz = i.color1.www * temp0.xyz + float3(1, 1, 1);
|
|
// mul r0.xyz, r2, r0
|
|
temp0.xyz = temp2.xyz * temp0.xyz;
|
|
// mov r0.w, t1.w
|
|
temp0.w = i.texcoord1.w;
|
|
// mov oC0, r0
|
|
out_color = temp0;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_M_Array_Shader_2 Pixel_2_0 Has PRES False
|
|
struct PS_M_Array_Shader_2_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float4 color1 : COLOR1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_M_Array_Shader_2(PS_M_Array_Shader_2_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1, temp2;
|
|
// def c0, 0.3, 0.6, 3, 2
|
|
// dcl t1
|
|
// dcl v1
|
|
// dcl t0.xy
|
|
// dcl t2
|
|
// dcl t6.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.x, t0.y, t0.y
|
|
temp0.x = i.texcoord.y + i.texcoord.y;
|
|
// add r0.y, t0.x, t0.x
|
|
temp0.y = i.texcoord.x + i.texcoord.x;
|
|
// mov r1.x, r0.y
|
|
temp1.x = temp0.y;
|
|
// mov r1.y, r0.x
|
|
temp1.y = temp0.x;
|
|
// mov r2.xy, t2.wzyx
|
|
temp2.xy = i.texcoord2.wz;
|
|
// texld r1, r1, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp1.xy);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// texld r2, r2, s0
|
|
temp2 = tex2D(ShroudTextureSampler, temp2.xy);
|
|
// mul r0.xyz, r1, r0
|
|
temp0.xyz = temp1.xyz * temp0.xyz;
|
|
// mul r1.xyz, t6, c0
|
|
temp1.xyz = i.texcoord6.xyz * float3(0.3, 0.6, 3);
|
|
// mad r0.xyz, r0, c0.z, r1
|
|
temp0.xyz = temp0.xyz * float3(3, 3, 3) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.w
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// mul r0.xyz, r1, v1.w
|
|
temp0.xyz = temp1.xyz * i.color1.www;
|
|
// mul r0.xyz, r2, r0
|
|
temp0.xyz = temp2.xyz * temp0.xyz;
|
|
// mov r0.w, t1.w
|
|
temp0.w = i.texcoord1.w;
|
|
// mov oC0, r0
|
|
out_color = temp0;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_M_Array_Shader_3 Pixel_2_0 Has PRES False
|
|
struct PS_M_Array_Shader_3_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_M_Array_Shader_3(PS_M_Array_Shader_3_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1, temp2;
|
|
// def c0, 0.3, 0.6, 3, 2
|
|
// dcl t1
|
|
// dcl t0.xy
|
|
// dcl t2
|
|
// dcl t6.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.x, t0.y, t0.y
|
|
temp0.x = i.texcoord.y + i.texcoord.y;
|
|
// add r0.y, t0.x, t0.x
|
|
temp0.y = i.texcoord.x + i.texcoord.x;
|
|
// mov r1.x, r0.y
|
|
temp1.x = temp0.y;
|
|
// mov r1.y, r0.x
|
|
temp1.y = temp0.x;
|
|
// mov r2.xy, t2.wzyx
|
|
temp2.xy = i.texcoord2.wz;
|
|
// texld r1, r1, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp1.xy);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// texld r2, r2, s0
|
|
temp2 = tex2D(ShroudTextureSampler, temp2.xy);
|
|
// mul r0.xyz, r1, r0
|
|
temp0.xyz = temp1.xyz * temp0.xyz;
|
|
// mul r1.xyz, t6, c0
|
|
temp1.xyz = i.texcoord6.xyz * float3(0.3, 0.6, 3);
|
|
// mad r0.xyz, r0, c0.z, r1
|
|
temp0.xyz = temp0.xyz * float3(3, 3, 3) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.w
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// mul r0.xyz, r2, r1
|
|
temp0.xyz = temp2.xyz * temp1.xyz;
|
|
// mov r0.w, t1.w
|
|
temp0.w = i.texcoord1.w;
|
|
// mov oC0, r0
|
|
out_color = temp0;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_M_Array_Shader_4 Pixel_2_0 Has PRES False
|
|
struct PS_M_Array_Shader_4_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float4 color1 : COLOR1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_M_Array_Shader_4(PS_M_Array_Shader_4_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1, temp2;
|
|
// def c0, 0.3, 0.6, 3, 2
|
|
// def c1, -1, 1, 0, 0
|
|
// dcl t1
|
|
// dcl v1
|
|
// dcl t0.xy
|
|
// dcl t2
|
|
// dcl t6.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.x, t0.y, t0.y
|
|
temp0.x = i.texcoord.y + i.texcoord.y;
|
|
// add r0.y, t0.x, t0.x
|
|
temp0.y = i.texcoord.x + i.texcoord.x;
|
|
// mov r1.x, r0.y
|
|
temp1.x = temp0.y;
|
|
// mov r1.y, r0.x
|
|
temp1.y = temp0.x;
|
|
// mov r2.xy, t2.wzyx
|
|
temp2.xy = i.texcoord2.wz;
|
|
// texld r1, r1, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp1.xy);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// texld r2, r2, s0
|
|
temp2 = tex2D(ShroudTextureSampler, temp2.xy);
|
|
// mul r0.xyz, r1, r0
|
|
temp0.xyz = temp1.xyz * temp0.xyz;
|
|
// mul r1.xyz, t6, c0
|
|
temp1.xyz = i.texcoord6.xyz * float3(0.3, 0.6, 3);
|
|
// mad r0.xyz, r0, c0.z, r1
|
|
temp0.xyz = temp0.xyz * float3(3, 3, 3) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.w
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// add r0.xyz, r1, c1.x
|
|
temp0.xyz = temp1.xyz + float3(-1, -1, -1);
|
|
// mad r0.xyz, v1.w, r0, c1.y
|
|
temp0.xyz = i.color1.www * temp0.xyz + float3(1, 1, 1);
|
|
// mul r0.xyz, r2, r0
|
|
temp0.xyz = temp2.xyz * temp0.xyz;
|
|
// mov r0.w, t1.w
|
|
temp0.w = i.texcoord1.w;
|
|
// mov oC0, r0
|
|
out_color = temp0;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PS_M_Array_Shader_5 Pixel_2_0 Has PRES False
|
|
struct PS_M_Array_Shader_5_Input
|
|
{
|
|
float4 texcoord1 : TEXCOORD1;
|
|
float4 color1 : COLOR1;
|
|
float2 texcoord : TEXCOORD;
|
|
float4 texcoord2 : TEXCOORD2;
|
|
float3 texcoord6 : TEXCOORD6;
|
|
};
|
|
|
|
float4 PS_M_Array_Shader_5(PS_M_Array_Shader_5_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0, temp1, temp2;
|
|
// def c0, 0.3, 0.6, 3, 2
|
|
// dcl t1
|
|
// dcl v1
|
|
// dcl t0.xy
|
|
// dcl t2
|
|
// dcl t6.xyz
|
|
// dcl_2d s0
|
|
// dcl_2d s1
|
|
// add r0.x, t0.y, t0.y
|
|
temp0.x = i.texcoord.y + i.texcoord.y;
|
|
// add r0.y, t0.x, t0.x
|
|
temp0.y = i.texcoord.x + i.texcoord.x;
|
|
// mov r1.x, r0.y
|
|
temp1.x = temp0.y;
|
|
// mov r1.y, r0.x
|
|
temp1.y = temp0.x;
|
|
// mov r2.xy, t2.wzyx
|
|
temp2.xy = i.texcoord2.wz;
|
|
// texld r1, r1, s1
|
|
temp1 = tex2D(ChronoRiftTextureSampler, temp1.xy);
|
|
// texld r0, r0, s1
|
|
temp0 = tex2D(ChronoRiftTextureSampler, temp0.xy);
|
|
// texld r2, r2, s0
|
|
temp2 = tex2D(ShroudTextureSampler, temp2.xy);
|
|
// mul r0.xyz, r1, r0
|
|
temp0.xyz = temp1.xyz * temp0.xyz;
|
|
// mul r1.xyz, t6, c0
|
|
temp1.xyz = i.texcoord6.xyz * float3(0.3, 0.6, 3);
|
|
// mad r0.xyz, r0, c0.z, r1
|
|
temp0.xyz = temp0.xyz * float3(3, 3, 3) + temp1.xyz;
|
|
// min r1.xyz, r0, c0.w
|
|
temp1.xyz = min(temp0.xyz, float3(2, 2, 2));
|
|
// mul r0.xyz, r1, v1.w
|
|
temp0.xyz = temp1.xyz * i.color1.www;
|
|
// mul r0.xyz, r2, r0
|
|
temp0.xyz = temp2.xyz * temp0.xyz;
|
|
// mov r0.w, t1.w
|
|
temp0.w = i.texcoord1.w;
|
|
// mov oC0, r0
|
|
out_color = temp0;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
PixelShader PS_M_Array[6] = {
|
|
compile ps_2_0 PS_M_Array_Shader_0(), // 76
|
|
compile ps_2_0 PS_M_Array_Shader_1(), // 77
|
|
compile ps_2_0 PS_M_Array_Shader_2(), // 78
|
|
compile ps_2_0 PS_M_Array_Shader_3(), // 79
|
|
compile ps_2_0 PS_M_Array_Shader_4(), // 80
|
|
compile ps_2_0 PS_M_Array_Shader_5(), // 81
|
|
};
|
|
// VSCreateShadowMap_Array_Shader_0 Vertex_2_0 Has PRES True
|
|
struct VSCreateShadowMap_Array_Shader_0_Input
|
|
{
|
|
float4 position : POSITION;
|
|
float4 texcoord : TEXCOORD;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct VSCreateShadowMap_Array_Shader_0_Output
|
|
{
|
|
float color : COLOR;
|
|
float texcoord1 : TEXCOORD1;
|
|
float4 position : POSITION;
|
|
float2 texcoord : TEXCOORD;
|
|
};
|
|
|
|
VSCreateShadowMap_Array_Shader_0_Output VSCreateShadowMap_Array_Shader_0(VSCreateShadowMap_Array_Shader_0_Input i)
|
|
{
|
|
/*
|
|
PRSI
|
|
OutputRegisterOffset: 11
|
|
Unknown1: 0
|
|
Unknown2: 0
|
|
OutputRegisterCount: 1
|
|
Unknown3: 0
|
|
Unknown4: 0
|
|
Unknown5: 11
|
|
Unknown6: 1
|
|
Mappings: 1
|
|
0 - ConstOutput: 0 ConstInput 0
|
|
|
|
*/
|
|
float4 expr11;
|
|
{
|
|
float4 temp0;
|
|
float4 temp1;
|
|
// Expression_2_1
|
|
// add r0.x, c0.x, (-2)
|
|
temp0.x = BlendMode.x + (-2);
|
|
// mul r1.x, r0.x, r0.x
|
|
temp1.x = temp0.x * temp0.x;
|
|
// neg r0.x, r1.x
|
|
temp0.x = -temp1.x;
|
|
// ge c11.x, r0.x, r1.x
|
|
expr11.x = temp0.x >= temp1.x;
|
|
}
|
|
|
|
VSCreateShadowMap_Array_Shader_0_Output o;
|
|
float4 temp0, temp1;
|
|
float temp2;
|
|
// def c0, 1, 0, 0, 0
|
|
// dcl_position v0
|
|
// dcl_texcoord v1
|
|
// dcl_color v2
|
|
// mul oD0.x, v2.w, c1.x
|
|
o.color = i.color.w * OpacityOverride.x;
|
|
// mad r0, v0.xyzx, c0.xxxy, c0.yyyx
|
|
temp0 = i.position.xyzx * float4(1, 1, 1, 0) + float4(0, 0, 0, 1);
|
|
// dp4 r1.x, r0, c124
|
|
temp1.x = dot(temp0, (World._m00_m10_m20_m30));
|
|
// dp4 r1.y, r0, c125
|
|
temp1.y = dot(temp0, (World._m01_m11_m21_m31));
|
|
// dp4 r1.z, r0, c126
|
|
temp1.z = dot(temp0, (World._m02_m12_m22_m32));
|
|
// mov r1.w, c0.x
|
|
temp1.w = float1(1);
|
|
// dp4 r0.w, r1, c122
|
|
temp0.w = dot(temp1, (ViewProjection._m03_m13_m23_m33));
|
|
// rcp r2.x, r0.w
|
|
temp2.x = 1.0f / temp0.w;
|
|
// dp4 r0.z, r1, c121
|
|
temp0.z = dot(temp1, (ViewProjection._m02_m12_m22_m32));
|
|
// mul oT1.x, r2.x, r0.z
|
|
o.texcoord1 = temp2.x * temp0.z;
|
|
// dp4 r0.x, r1, c119
|
|
temp0.x = dot(temp1, (ViewProjection._m00_m10_m20_m30));
|
|
// dp4 r0.y, r1, c120
|
|
temp0.y = dot(temp1, (ViewProjection._m01_m11_m21_m31));
|
|
// add r1, -r0, c0.xxxy
|
|
temp1 = -temp0 + float4(1, 1, 1, 0);
|
|
// mad oPos, c11.x, r1, r0
|
|
o.position = expr11.x * temp1 + temp0;
|
|
// mov oT0.xy, v1
|
|
o.texcoord = i.texcoord;
|
|
//
|
|
|
|
return o;
|
|
}
|
|
|
|
// VSCreateShadowMap_Array_Shader_1 Vertex_2_0 Has PRES True
|
|
struct VSCreateShadowMap_Array_Shader_1_Input
|
|
{
|
|
float4 blendindices : BLENDINDICES;
|
|
float4 position : POSITION;
|
|
float4 texcoord : TEXCOORD;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct VSCreateShadowMap_Array_Shader_1_Output
|
|
{
|
|
float color : COLOR;
|
|
float texcoord1 : TEXCOORD1;
|
|
float4 position : POSITION;
|
|
float2 texcoord : TEXCOORD;
|
|
};
|
|
|
|
VSCreateShadowMap_Array_Shader_1_Output VSCreateShadowMap_Array_Shader_1(VSCreateShadowMap_Array_Shader_1_Input i)
|
|
{
|
|
/*
|
|
PRSI
|
|
OutputRegisterOffset: 11
|
|
Unknown1: 0
|
|
Unknown2: 0
|
|
OutputRegisterCount: 1
|
|
Unknown3: 0
|
|
Unknown4: 0
|
|
Unknown5: 11
|
|
Unknown6: 1
|
|
Mappings: 1
|
|
0 - ConstOutput: 0 ConstInput 0
|
|
|
|
*/
|
|
float4 expr11;
|
|
{
|
|
float4 temp0;
|
|
float4 temp1;
|
|
// Expression_2_1
|
|
// add r0.x, c0.x, (-2)
|
|
temp0.x = BlendMode.x + (-2);
|
|
// mul r1.x, r0.x, r0.x
|
|
temp1.x = temp0.x * temp0.x;
|
|
// neg r0.x, r1.x
|
|
temp0.x = -temp1.x;
|
|
// ge c11.x, r0.x, r1.x
|
|
expr11.x = temp0.x >= temp1.x;
|
|
}
|
|
|
|
VSCreateShadowMap_Array_Shader_1_Output o;
|
|
float4 temp0, temp1;
|
|
float addr0, temp2;
|
|
// def c0, 1, -1, 0, 0
|
|
// dcl_blendindices v0
|
|
// dcl_position v1
|
|
// dcl_texcoord v2
|
|
// dcl_color v3
|
|
// slt r0.x, v0.x, -v0.x
|
|
temp0.x = (i.blendindices.x < -i.blendindices.x) ? 1 : 0;
|
|
// frc r0.y, v0.x
|
|
temp0.y = frac(i.blendindices.x);
|
|
// add r0.z, -r0.y, v0.x
|
|
temp0.z = -temp0.y + i.blendindices.x;
|
|
// slt r0.y, -r0.y, r0.y
|
|
temp0.y = (-temp0.y < temp0.y) ? 1 : 0;
|
|
// mad r0.x, r0.x, r0.y, r0.z
|
|
temp0.x = temp0.x * temp0.y + temp0.z;
|
|
// add r0.x, r0.x, r0.x
|
|
temp0.x = temp0.x + temp0.x;
|
|
// mova a0.x, r0.x
|
|
addr0.x = temp0.x;
|
|
// mul r0.x, v3.w, c129[a0.x].w
|
|
temp0.x = i.color.w * WorldBones[1 + addr0.x].w;
|
|
// mul oD0.x, r0.x, c1.x
|
|
o.color = temp0.x * OpacityOverride.x;
|
|
// mul r0, v1.zxyy, c128[a0.x].yzxy
|
|
temp0 = i.position.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r0, c128[a0.x].wwwx, v1.xyzx, r0
|
|
temp0 = WorldBones[0 + addr0.x].wwwx * i.position.xyzx + temp0;
|
|
// mul r1, v1.yzxz, c128[a0.x].zxyz
|
|
temp1 = i.position.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r0, r0, c0.xxxy, -r1
|
|
temp0 = temp0 * float4(1, 1, 1, -1) + -temp1;
|
|
// mul r1.xyz, r0.w, c128[a0.x]
|
|
temp1.xyz = temp0.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r1.xyz, c128[a0.x].w, r0, -r1
|
|
temp1.xyz = WorldBones[0 + addr0.x].www * temp0.xyz + -temp1.xyz;
|
|
// mad r1.xyz, c128[a0.x].yzxw, r0.zxyw, r1
|
|
temp1.xyz = WorldBones[0 + addr0.x].yzx * temp0.zxy + temp1.xyz;
|
|
// mad r0.xyz, c128[a0.x].zxyw, -r0.yzxw, r1
|
|
temp0.xyz = WorldBones[0 + addr0.x].zxy * -temp0.yzx + temp1.xyz;
|
|
// add r0.xyz, r0, c129[a0.x]
|
|
temp0.xyz = temp0.xyz + WorldBones[1 + addr0.x].xyz;
|
|
// mov r0.w, c0.x
|
|
temp0.w = float1(1);
|
|
// dp4 r1.w, r0, c122
|
|
temp1.w = dot(temp0, (ViewProjection._m03_m13_m23_m33));
|
|
// rcp r2.x, r1.w
|
|
temp2.x = 1.0f / temp1.w;
|
|
// dp4 r1.z, r0, c121
|
|
temp1.z = dot(temp0, (ViewProjection._m02_m12_m22_m32));
|
|
// mul oT1.x, r2.x, r1.z
|
|
o.texcoord1 = temp2.x * temp1.z;
|
|
// dp4 r1.x, r0, c119
|
|
temp1.x = dot(temp0, (ViewProjection._m00_m10_m20_m30));
|
|
// dp4 r1.y, r0, c120
|
|
temp1.y = dot(temp0, (ViewProjection._m01_m11_m21_m31));
|
|
// add r0, -r1, c0.xxxz
|
|
temp0 = -temp1 + float4(1, 1, 1, 0);
|
|
// mad oPos, c11.x, r0, r1
|
|
o.position = expr11.x * temp0 + temp1;
|
|
// mov oT0.xy, v2
|
|
o.texcoord = i.texcoord;
|
|
//
|
|
|
|
return o;
|
|
}
|
|
|
|
// VSCreateShadowMap_Array_Shader_2 Vertex_2_0 Has PRES True
|
|
struct VSCreateShadowMap_Array_Shader_2_Input
|
|
{
|
|
float4 blendindices : BLENDINDICES;
|
|
float4 blendweight : BLENDWEIGHT;
|
|
float4 position : POSITION;
|
|
float4 position1 : POSITION1;
|
|
float4 texcoord : TEXCOORD;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct VSCreateShadowMap_Array_Shader_2_Output
|
|
{
|
|
float color : COLOR;
|
|
float texcoord1 : TEXCOORD1;
|
|
float4 position : POSITION;
|
|
float2 texcoord : TEXCOORD;
|
|
};
|
|
|
|
VSCreateShadowMap_Array_Shader_2_Output VSCreateShadowMap_Array_Shader_2(VSCreateShadowMap_Array_Shader_2_Input i)
|
|
{
|
|
/*
|
|
PRSI
|
|
OutputRegisterOffset: 11
|
|
Unknown1: 0
|
|
Unknown2: 0
|
|
OutputRegisterCount: 1
|
|
Unknown3: 0
|
|
Unknown4: 0
|
|
Unknown5: 11
|
|
Unknown6: 1
|
|
Mappings: 1
|
|
0 - ConstOutput: 0 ConstInput 0
|
|
|
|
*/
|
|
float4 expr11;
|
|
{
|
|
float4 temp0;
|
|
float4 temp1;
|
|
// Expression_2_1
|
|
// add r0.x, c0.x, (-2)
|
|
temp0.x = BlendMode.x + (-2);
|
|
// mul r1.x, r0.x, r0.x
|
|
temp1.x = temp0.x * temp0.x;
|
|
// neg r0.x, r1.x
|
|
temp0.x = -temp1.x;
|
|
// ge c11.x, r0.x, r1.x
|
|
expr11.x = temp0.x >= temp1.x;
|
|
}
|
|
|
|
VSCreateShadowMap_Array_Shader_2_Output o;
|
|
float4 temp0, temp1, temp2;
|
|
float2 addr0;
|
|
// def c0, 1, -1, 0, 0
|
|
// dcl_blendindices v0
|
|
// dcl_blendweight v1
|
|
// dcl_position v2
|
|
// dcl_position1 v3
|
|
// dcl_texcoord v4
|
|
// dcl_color v5
|
|
// slt r0.xy, v0, -v0
|
|
temp0.xy = (i.blendindices.xy < -i.blendindices.xy) ? 1 : 0;
|
|
// frc r0.zw, v0.xyxy
|
|
temp0.zw = frac(i.blendindices.xy);
|
|
// add r1.xy, -r0.zwzw, v0
|
|
temp1.xy = -temp0.zw + i.blendindices.xy;
|
|
// slt r0.zw, -r0, r0
|
|
temp0.zw = (-temp0.zw < temp0.zw) ? 1 : 0;
|
|
// mad r0.xy, r0, r0.zwzw, r1
|
|
temp0.xy = temp0.xy * temp0.zw + temp1.xy;
|
|
// add r0.xy, r0, r0
|
|
temp0.xy = temp0.xy + temp0.xy;
|
|
// mova a0.xy, r0
|
|
addr0.xy = temp0.xy;
|
|
// mul r0.x, v1.y, c129[a0.y].w
|
|
temp0.x = i.blendweight.y * WorldBones[1 + addr0.y].w;
|
|
// mad r0.x, c129[a0.x].w, v1.x, r0.x
|
|
temp0.x = WorldBones[1 + addr0.x].w * i.blendweight.x + temp0.x;
|
|
// mul r0.x, r0.x, v5.w
|
|
temp0.x = temp0.x * i.color.w;
|
|
// mul oD0.x, r0.x, c1.x
|
|
o.color = temp0.x * OpacityOverride.x;
|
|
// mul r0, v3.zxyy, c128[a0.y].yzxy
|
|
temp0 = i.position1.zxyy * WorldBones[0 + addr0.y].yzxy;
|
|
// mad r0, c128[a0.y].wwwx, v3.xyzx, r0
|
|
temp0 = WorldBones[0 + addr0.y].wwwx * i.position1.xyzx + temp0;
|
|
// mul r1, v3.yzxz, c128[a0.y].zxyz
|
|
temp1 = i.position1.yzxz * WorldBones[0 + addr0.y].zxyz;
|
|
// mad r0, r0, c0.xxxy, -r1
|
|
temp0 = temp0 * float4(1, 1, 1, -1) + -temp1;
|
|
// mul r1.xyz, r0.w, c128[a0.y]
|
|
temp1.xyz = temp0.www * WorldBones[0 + addr0.y].xyz;
|
|
// mad r1.xyz, c128[a0.y].w, r0, -r1
|
|
temp1.xyz = WorldBones[0 + addr0.y].www * temp0.xyz + -temp1.xyz;
|
|
// mad r1.xyz, c128[a0.y].yzxw, r0.zxyw, r1
|
|
temp1.xyz = WorldBones[0 + addr0.y].yzx * temp0.zxy + temp1.xyz;
|
|
// mad r0.xyz, c128[a0.y].zxyw, -r0.yzxw, r1
|
|
temp0.xyz = WorldBones[0 + addr0.y].zxy * -temp0.yzx + temp1.xyz;
|
|
// add r0.xyz, r0, c129[a0.y]
|
|
temp0.xyz = temp0.xyz + WorldBones[1 + addr0.y].xyz;
|
|
// mul r0.xyz, r0, v1.y
|
|
temp0.xyz = temp0.xyz * i.blendweight.yyy;
|
|
// mul r1, v2.zxyy, c128[a0.x].yzxy
|
|
temp1 = i.position.zxyy * WorldBones[0 + addr0.x].yzxy;
|
|
// mad r1, c128[a0.x].wwwx, v2.xyzx, r1
|
|
temp1 = WorldBones[0 + addr0.x].wwwx * i.position.xyzx + temp1;
|
|
// mul r2, v2.yzxz, c128[a0.x].zxyz
|
|
temp2 = i.position.yzxz * WorldBones[0 + addr0.x].zxyz;
|
|
// mad r1, r1, c0.xxxy, -r2
|
|
temp1 = temp1 * float4(1, 1, 1, -1) + -temp2;
|
|
// mul r2.xyz, r1.w, c128[a0.x]
|
|
temp2.xyz = temp1.www * WorldBones[0 + addr0.x].xyz;
|
|
// mad r2.xyz, c128[a0.x].w, r1, -r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].www * temp1.xyz + -temp2.xyz;
|
|
// mad r2.xyz, c128[a0.x].yzxw, r1.zxyw, r2
|
|
temp2.xyz = WorldBones[0 + addr0.x].yzx * temp1.zxy + temp2.xyz;
|
|
// mad r1.xyz, c128[a0.x].zxyw, -r1.yzxw, r2
|
|
temp1.xyz = WorldBones[0 + addr0.x].zxy * -temp1.yzx + temp2.xyz;
|
|
// add r1.xyz, r1, c129[a0.x]
|
|
temp1.xyz = temp1.xyz + WorldBones[1 + addr0.x].xyz;
|
|
// mad r0.xyz, r1, v1.x, r0
|
|
temp0.xyz = temp1.xyz * i.blendweight.xxx + temp0.xyz;
|
|
// mov r0.w, c0.x
|
|
temp0.w = float1(1);
|
|
// dp4 r1.z, r0, c121
|
|
temp1.z = dot(temp0, (ViewProjection._m02_m12_m22_m32));
|
|
// dp4 r1.w, r0, c122
|
|
temp1.w = dot(temp0, (ViewProjection._m03_m13_m23_m33));
|
|
// rcp r2.x, r1.w
|
|
temp2.x = 1.0f / temp1.w;
|
|
// mul oT1.x, r1.z, r2.x
|
|
o.texcoord1 = temp1.z * temp2.x;
|
|
// dp4 r1.x, r0, c119
|
|
temp1.x = dot(temp0, (ViewProjection._m00_m10_m20_m30));
|
|
// dp4 r1.y, r0, c120
|
|
temp1.y = dot(temp0, (ViewProjection._m01_m11_m21_m31));
|
|
// add r0, -r1, c0.xxxz
|
|
temp0 = -temp1 + float4(1, 1, 1, 0);
|
|
// mad oPos, c11.x, r0, r1
|
|
o.position = expr11.x * temp0 + temp1;
|
|
// mov oT0.xy, v4
|
|
o.texcoord = i.texcoord;
|
|
//
|
|
|
|
return o;
|
|
}
|
|
|
|
VertexShader VSCreateShadowMap_Array[3] = {
|
|
compile vs_2_0 VSCreateShadowMap_Array_Shader_0(), // 86
|
|
compile vs_2_0 VSCreateShadowMap_Array_Shader_1(), // 87
|
|
compile vs_2_0 VSCreateShadowMap_Array_Shader_2(), // 88
|
|
};
|
|
// PSCreateShadowMap_Array_Shader_0 Pixel_2_0 Has PRES False
|
|
float4 PSCreateShadowMap_Array_Shader_0(float texcoord1 : TEXCOORD1) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0;
|
|
// dcl t1.x
|
|
// mov r0, t1.x
|
|
temp0 = texcoord1.x;
|
|
// mov oC0, r0
|
|
out_color = temp0;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
// PSCreateShadowMap_Array_Shader_1 Pixel_2_0 Has PRES False
|
|
struct PSCreateShadowMap_Array_Shader_1_Input
|
|
{
|
|
float color : COLOR;
|
|
float2 texcoord : TEXCOORD;
|
|
float texcoord1 : TEXCOORD1;
|
|
};
|
|
|
|
float4 PSCreateShadowMap_Array_Shader_1(PSCreateShadowMap_Array_Shader_1_Input i) : COLOR
|
|
{
|
|
float4 out_color;
|
|
float4 temp0;
|
|
// def c0, -0.3764706, 0, 0, 0
|
|
// dcl v0.x
|
|
// dcl t0.xy
|
|
// dcl t1.x
|
|
// dcl_2d s0
|
|
// texld r0, t0, s0
|
|
temp0 = tex2D(Texture_0Sampler, i.texcoord.xy);
|
|
// mad r0, v0.x, r0.w, c0.x
|
|
temp0 = i.color.x * temp0.w + float4(-0.3764706, -0.3764706, -0.3764706, -0.3764706);
|
|
// texkill r0
|
|
clip(temp0);
|
|
// mov r0, t1.x
|
|
temp0 = i.texcoord1.x;
|
|
// mov oC0, r0
|
|
out_color = temp0;
|
|
//
|
|
|
|
return out_color;
|
|
}
|
|
|
|
PixelShader PSCreateShadowMap_Array[2] = {
|
|
compile ps_2_0 PSCreateShadowMap_Array_Shader_0(), // 89
|
|
compile ps_2_0 PSCreateShadowMap_Array_Shader_1(), // 90
|
|
};
|
|
// _CreateDepthMap_Expression24 Expression_2_0 Has PRES False
|
|
float _CreateDepthMap_Expression24()
|
|
{
|
|
float4 temp0;
|
|
float4 temp1;
|
|
float4 temp2;
|
|
float1 expr0;
|
|
// add r0.x, c1.x, (-1)
|
|
temp0.x = BlendMode.x + (-1);
|
|
// mul r1.x, r0.x, r0.x
|
|
temp1.x = temp0.x * temp0.x;
|
|
// neg r0.x, r1.x
|
|
temp0.x = -temp1.x;
|
|
// ge r2.x, r0.x, r1.x
|
|
temp2.x = temp0.x >= temp1.x;
|
|
// add r0.x, r2.x, c0.x
|
|
temp0.x = temp2.x + AlphaTestEnable.x;
|
|
// neg r1.x, r0.x
|
|
temp1.x = -temp0.x;
|
|
// lt c0.x, r1.x, r0.x
|
|
expr0.x = temp1.x < temp0.x;
|
|
return expr0;
|
|
}
|
|
|
|
// _CreateDepthMap_Expression25 Expression_2_0 Has PRES False
|
|
float _CreateDepthMap_Expression25()
|
|
{
|
|
float1 expr0;
|
|
// min c0.x, c0.x, (2)
|
|
expr0.x = min(NumJointsPerVertex.x, (2));
|
|
return expr0;
|
|
}
|
|
|
|
// _Default_L_Expression26 Expression_2_0 Has PRES False
|
|
float _Default_L_Expression26()
|
|
{
|
|
float1 expr0;
|
|
// mul c0.x, c0.x, (3)
|
|
expr0.x = HasShadow.x * (3);
|
|
return expr0;
|
|
}
|
|
|
|
// _Default_L_Expression27 Expression_2_0 Has PRES False
|
|
float _Default_L_Expression27()
|
|
{
|
|
float1 expr0;
|
|
// min c0.x, c0.x, (2)
|
|
expr0.x = min(NumJointsPerVertex.x, (2));
|
|
return expr0;
|
|
}
|
|
|
|
// _Default_M_Expression28 Expression_2_0 Has PRES False
|
|
float _Default_M_Expression28()
|
|
{
|
|
float1 expr0;
|
|
// mul c0.x, c0.x, (3)
|
|
expr0.x = HasShadow.x * (3);
|
|
return expr0;
|
|
}
|
|
|
|
// _Default_M_Expression29 Expression_2_0 Has PRES False
|
|
float _Default_M_Expression29()
|
|
{
|
|
float1 expr0;
|
|
// min c0.x, c0.x, (2)
|
|
expr0.x = min(NumJointsPerVertex.x, (2));
|
|
return expr0;
|
|
}
|
|
|
|
// Default_Expression30 Expression_2_0 Has PRES False
|
|
float Default_Expression30()
|
|
{
|
|
float1 expr0;
|
|
// mul c0.x, c0.x, (3)
|
|
expr0.x = HasShadow.x * (3);
|
|
return expr0;
|
|
}
|
|
|
|
// Default_Expression31 Expression_2_0 Has PRES False
|
|
float Default_Expression31()
|
|
{
|
|
float1 expr0;
|
|
// min c0.x, c0.x, (2)
|
|
expr0.x = min(NumJointsPerVertex.x, (2));
|
|
return expr0;
|
|
}
|
|
|
|
technique Default
|
|
{
|
|
pass P0
|
|
{
|
|
VertexShader = VS_Array[Default_Expression31()]; // 71
|
|
PixelShader = PS_Array[Default_Expression30()]; // 72
|
|
ZEnable = 1;
|
|
ZFunc = 4;
|
|
ZWriteEnable = 1;
|
|
CullMode = 2;
|
|
AlphaBlendEnable = 1;
|
|
SrcBlend = 2;
|
|
DestBlend = 2;
|
|
AlphaTestEnable = 1;
|
|
AlphaFunc = 7;
|
|
AlphaRef = 96;
|
|
}
|
|
}
|
|
|
|
technique _Default_M
|
|
{
|
|
pass P0
|
|
{
|
|
VertexShader = VS_M_Array[_Default_M_Expression29()]; // 82
|
|
PixelShader = PS_M_Array[_Default_M_Expression28()]; // 83
|
|
ZEnable = 1;
|
|
ZFunc = 4;
|
|
ZWriteEnable = 1;
|
|
CullMode = 2;
|
|
AlphaBlendEnable = 1;
|
|
SrcBlend = 2;
|
|
DestBlend = 2;
|
|
AlphaTestEnable = 1;
|
|
AlphaFunc = 7;
|
|
AlphaRef = 96;
|
|
}
|
|
}
|
|
|
|
technique _Default_L
|
|
{
|
|
pass P0
|
|
{
|
|
VertexShader = VS_M_Array[_Default_L_Expression27()]; // 84
|
|
PixelShader = PS_M_Array[_Default_L_Expression26()]; // 85
|
|
ZEnable = 1;
|
|
ZFunc = 4;
|
|
ZWriteEnable = 1;
|
|
CullMode = 2;
|
|
AlphaBlendEnable = 1;
|
|
SrcBlend = 2;
|
|
DestBlend = 2;
|
|
AlphaTestEnable = 1;
|
|
AlphaFunc = 7;
|
|
AlphaRef = 96;
|
|
}
|
|
}
|
|
|
|
technique _CreateDepthMap
|
|
{
|
|
pass P0 <string ExpressionEvaluator = "BasicW3D_CreateShadowMap";>
|
|
{
|
|
VertexShader = VSCreateShadowMap_Array[_CreateDepthMap_Expression25()]; // 92
|
|
PixelShader = PSCreateShadowMap_Array[_CreateDepthMap_Expression24()]; // 93
|
|
ZEnable = 1;
|
|
ZFunc = 4;
|
|
AlphaBlendEnable = 0;
|
|
AlphaTestEnable = 0;
|
|
}
|
|
}
|
|
|