112Shaders/infantryfrozen.fx
2021-12-28 10:06:46 +01:00

4864 lines
162 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(ps_3_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 : register(ps_3_0, s0) <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 : register(ps_3_0, c11) <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, c14) <string UIName = "Ambient Material Color"; string UIWidget = "Color";> = { 1, 1, 1 };
float3 ColorDiffuse : register(vs_2_0, c12) : register(vs_3_0, c15) <string UIName = "Diffuse Material Color"; string UIWidget = "Color";> = { 1, 1, 1 };
float3 ColorSpecular : register(vs_2_0, c13) : register(vs_3_0, c16) <string UIName = "Specular Material Color"; string UIWidget = "Color";>;
float Shininess : register(vs_2_0, c14) : register(vs_3_0, c17) <string UIName = "Specular Shininess"; string UIWidget = "Slider"; float UIMax = 100;> = { 1 };
float3 ColorEmissive : register(vs_2_0, c15) : register(vs_3_0, c18) <string UIName = "Emissive Material Color"; string UIWidget = "Color";>;
texture Texture_0 <string UIName = "Base Texture";>; // 28
sampler2D Texture_0Sampler : register(ps_2_0, s0) <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, c19) <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_2_0, s1) <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 FrozenNormalMap <string UIWidget = "None"; string SasBindAddress = "WW3D.FXDistortionFractal";>; // 46
sampler2D FrozenNormalMapSampler <string Texture = "FrozenNormalMap"; string UIWidget = "None"; string SasBindAddress = "WW3D.FXDistortionFractal";> =
sampler_state
{
Texture = <FrozenNormalMap>; // 49
MinFilter = 3;
MagFilter = 2;
MipFilter = 2;
MaxAnisotropy = 8;
AddressU = 1;
AddressV = 1;
};
texture EnvironmentTexture <string UIWidget = "None"; string SasBindAddress = "Objects.LightSpaceEnvironmentMap"; string ResourceType = "Cube";>; // 53
samplerCUBE EnvironmentTextureSampler <string Texture = "EnvironmentTexture"; string UIWidget = "None"; string SasBindAddress = "Objects.LightSpaceEnvironmentMap"; string ResourceType = "Cube";> =
sampler_state
{
Texture = <EnvironmentTexture>; // 57
MinFilter = 2;
MagFilter = 2;
MipFilter = 2;
AddressU = 3;
AddressV = 3;
AddressW = 3;
};
texture CloudTexture <string UIWidget = "None"; string SasBindAddress = "Terrain.Cloud.Texture"; string ResourceName = "ShaderPreviewCloud.dds";>; // 62
sampler2D CloudTextureSampler : register(ps_3_0, s3) <string Texture = "CloudTexture"; string UIWidget = "None"; string SasBindAddress = "Terrain.Cloud.Texture"; string ResourceName = "ShaderPreviewCloud.dds";> =
sampler_state
{
Texture = <CloudTexture>; // 66
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;
float3 texcoord7 : TEXCOORD7;
};
VS_Array_Shader_0_Output VS_Array_Shader_0(VS_Array_Shader_0_Input i)
{
/*
PRSI
OutputRegisterOffset: 11
Unknown1: 0
Unknown2: 0
OutputRegisterCount: 3
Unknown3: 0
Unknown4: 0
Unknown5: 11
Unknown6: 3
Mappings: 1
0 - ConstOutput: 0 ConstInput 0
*/
float4 expr11;
float4 expr12;
float4 expr13;
{
// 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;
}
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, -0.0015, 0, 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
// dcl_texcoord7 o9.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, c17.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, c15
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, c16
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, c17.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, c14
temp7.xyz = ColorAmbient.xyz;
// mad r5.xyz, r5, r7, c18
temp5.xyz = temp5.xyz * temp7.xyz + ColorEmissive.xyz;
// mad r3.xyz, r3, c15, 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, c16
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 r1.xy, r1.yxzw, c19.wzzw
temp1.xy = temp1.yx + Shroud.ScaleUV_OffsetUV.wz;
// mul o4.zw, r1.xyxy, c19.xyyx
o.texcoord2.zw = temp1.xy * Shroud.ScaleUV_OffsetUV.yx;
// mov o2.w, c0.x
o.color1.w = float1(1);
// mov o3.xy, v2
o.texcoord = i.texcoord;
// mad o5.xyz, r2, r1.w, c3.xxyw
o.texcoord3.xyz = temp2.xyz * temp1.www + float3(0, 0, -0.0015);
// mov o5.w, r0.w
o.texcoord3.w = temp0.w;
// mov o8.xyz, r0
o.texcoord6 = temp0;
// mov o9.xyz, r4
o.texcoord7 = temp4;
//
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;
float3 texcoord7 : TEXCOORD7;
};
VS_Array_Shader_1_Output VS_Array_Shader_1(VS_Array_Shader_1_Input i)
{
/*
PRSI
OutputRegisterOffset: 11
Unknown1: 0
Unknown2: 0
OutputRegisterCount: 3
Unknown3: 0
Unknown4: 0
Unknown5: 11
Unknown6: 3
Mappings: 1
0 - ConstOutput: 0 ConstInput 0
*/
float4 expr11;
float4 expr12;
float4 expr13;
{
// 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;
}
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.0015, 0, 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
// dcl_texcoord7 o9.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, c17.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, c15
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, c16
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, c17.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, c14
temp7.xyz = ColorAmbient.xyz;
// mad r5.xyz, r5, r7, c18
temp5.xyz = temp5.xyz * temp7.xyz + ColorEmissive.xyz;
// mad r3.xyz, r3, c15, 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, c16
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 r0.xy, r0.yxzw, c19.wzzw
temp0.xy = temp0.yx + Shroud.ScaleUV_OffsetUV.wz;
// mul o4.zw, r0.xyxy, c19.xyyx
o.texcoord2.zw = temp0.xy * Shroud.ScaleUV_OffsetUV.yx;
// mov o2.w, c0.x
o.color1.w = float1(1);
// mov o3.xy, v3
o.texcoord = i.texcoord;
// mad o5.xyz, r2, r1.w, c3.xxyw
o.texcoord3.xyz = temp2.xyz * temp1.www + float3(0, 0, -0.0015);
// mov o5.w, r0.w
o.texcoord3.w = temp0.w;
// mov o8.xyz, r1
o.texcoord6 = temp1;
// mov o9.xyz, r4
o.texcoord7 = temp4;
//
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;
float3 texcoord7 : TEXCOORD7;
};
VS_Array_Shader_2_Output VS_Array_Shader_2(VS_Array_Shader_2_Input i)
{
/*
PRSI
OutputRegisterOffset: 11
Unknown1: 0
Unknown2: 0
OutputRegisterCount: 3
Unknown3: 0
Unknown4: 0
Unknown5: 11
Unknown6: 3
Mappings: 1
0 - ConstOutput: 0 ConstInput 0
*/
float4 expr11;
float4 expr12;
float4 expr13;
{
// 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;
}
VS_Array_Shader_2_Output o;
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
float2 addr0;
float3 temp7, temp8;
// def c0, 1, -1, 0.5, 0
// def c3, 0, -0.0015, 0, 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
// dcl_texcoord7 o9.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, 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;
// 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, 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, c17.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, c15
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, c16
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, c17.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, c14
temp7.xyz = ColorAmbient.xyz;
// mad r5.xyz, r5, r7, c18
temp5.xyz = temp5.xyz * temp7.xyz + ColorEmissive.xyz;
// mad r3.xyz, r3, c15, 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, c16
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 r0.xy, r0.yxzw, c19.wzzw
temp0.xy = temp0.yx + Shroud.ScaleUV_OffsetUV.wz;
// mul o4.zw, r0.xyxy, c19.xyyx
o.texcoord2.zw = temp0.xy * Shroud.ScaleUV_OffsetUV.yx;
// mov o2.w, c0.x
o.color1.w = float1(1);
// mov o3.xy, v6
o.texcoord = i.texcoord;
// mad o5.xyz, r2, r1.w, c3.xxyw
o.texcoord3.xyz = temp2.xyz * temp1.www + float3(0, 0, -0.0015);
// mov o5.w, r0.w
o.texcoord3.w = temp0.w;
// mov o8.xyz, r1
o.texcoord6 = temp1;
// mov o9.xyz, r4
o.texcoord7 = temp4;
//
return o;
}
VertexShader VS_Array[3] = {
compile vs_3_0 VS_Array_Shader_0(), // 71
compile vs_3_0 VS_Array_Shader_1(), // 72
compile vs_3_0 VS_Array_Shader_2(), // 73
};
// VS_Frozen_Array_Shader_0 Vertex_3_0 Has PRES True
struct VS_Frozen_Array_Shader_0_Input
{
float4 position : POSITION;
float4 normal : NORMAL;
float4 color : COLOR;
};
struct VS_Frozen_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;
float3 texcoord7 : TEXCOORD7;
};
VS_Frozen_Array_Shader_0_Output VS_Frozen_Array_Shader_0(VS_Frozen_Array_Shader_0_Input i)
{
/*
PRSI
OutputRegisterOffset: 11
Unknown1: 0
Unknown2: 0
OutputRegisterCount: 3
Unknown3: 0
Unknown4: 0
Unknown5: 11
Unknown6: 3
Mappings: 1
0 - ConstOutput: 0 ConstInput 0
*/
float4 expr11;
float4 expr12;
float4 expr13;
{
// 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;
}
VS_Frozen_Array_Shader_0_Output o;
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
float addr0;
float3 temp7, temp8;
// def c0, 1, 0, 1.5, 0.5
// def c3, 0, 0.025, 0, -0.0015
// defi i0, 2, 0, 0, 0
// dcl_position v0
// dcl_normal v1
// dcl_color v2
// 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
// dcl_texcoord7 o9.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, v2
temp2.xyz = TintColor.xyz * i.color.xyz;
// mad r1.xyz, r0, c0.z, r1
temp1.xyz = temp0.xyz * float3(1.5, 1.5, 1.5) + temp1.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, c17.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, c15
temp5.xyz = temp5.xyz * ColorDiffuse.xyz;
// mul r5.xyz, r2, r5
temp5.xyz = temp2.xyz * temp5.xyz;
// mul o6.xyz, r5, c0.w
o.texcoord4 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
// mul r5.xyz, r6, c16
temp5.xyz = temp6.xyz * ColorSpecular.xyz;
// mul o7.xyz, r5, c0.w
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, c17.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, c14
temp7.xyz = ColorAmbient.xyz;
// mad r5.xyz, r5, r7, c18
temp5.xyz = temp5.xyz * temp7.xyz + ColorEmissive.xyz;
// mad r3.xyz, r3, c15, 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.w
o.texcoord1.xyz = temp2.xyz * float3(0.5, 0.5, 0.5);
// mul o1.w, c1.x, v2.w
o.texcoord1.w = OpacityOverride.x * i.color.w;
// mul r2.xyz, r6, c16
temp2.xyz = temp6.xyz * ColorSpecular.xyz;
// mul o2.xyz, r2, c0.w
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 o3.xy, r1, c3.y
o.texcoord = temp1 * float4(0.025, 0.025, 0.025, 0.025);
// 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 r1.xy, r1.yxzw, c19.wzzw
temp1.xy = temp1.yx + Shroud.ScaleUV_OffsetUV.wz;
// mul o4.zw, r1.xyxy, c19.xyyx
o.texcoord2.zw = temp1.xy * Shroud.ScaleUV_OffsetUV.yx;
// mov o2.w, c0.x
o.color1.w = float1(1);
// mad o5.xyz, r2, r1.w, c3.zzww
o.texcoord3.xyz = temp2.xyz * temp1.www + float3(0, 0, -0.0015);
// mov o5.w, r0.w
o.texcoord3.w = temp0.w;
// mov o8.xyz, r0
o.texcoord6 = temp0;
// mov o9.xyz, r4
o.texcoord7 = temp4;
//
return o;
}
// VS_Frozen_Array_Shader_1 Vertex_3_0 Has PRES True
struct VS_Frozen_Array_Shader_1_Input
{
float4 blendindices : BLENDINDICES;
float4 position : POSITION;
float4 normal : NORMAL;
float4 color : COLOR;
};
struct VS_Frozen_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;
float3 texcoord7 : TEXCOORD7;
};
VS_Frozen_Array_Shader_1_Output VS_Frozen_Array_Shader_1(VS_Frozen_Array_Shader_1_Input i)
{
/*
PRSI
OutputRegisterOffset: 11
Unknown1: 0
Unknown2: 0
OutputRegisterCount: 3
Unknown3: 0
Unknown4: 0
Unknown5: 11
Unknown6: 3
Mappings: 1
0 - ConstOutput: 0 ConstInput 0
*/
float4 expr11;
float4 expr12;
float4 expr13;
{
// 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;
}
VS_Frozen_Array_Shader_1_Output o;
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
float addr0;
float3 temp7, temp8;
// def c0, 1, -1, 1.5, 0.5
// def c3, 0, 0, 0.025, -0.0015
// defi i0, 2, 0, 0, 0
// dcl_blendindices v0
// dcl_position v1
// dcl_normal 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
// dcl_texcoord7 o9.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 r0.w, v3.w, c129[a0.x].w
temp0.w = i.color.w * WorldBones[1 + addr0.x].w;
// mul r2.xyz, c2, v3
temp2.xyz = TintColor.xyz * i.color.xyz;
// mad r3.xyz, r1, c0.z, r0
temp3.xyz = temp1.xyz * float3(1.5, 1.5, 1.5) + temp0.xyz;
// mov r3.w, c0.x
temp3.w = float1(1);
// dp4 o0.x, r3, c119
o.position.x = dot(temp3, (ViewProjection._m00_m10_m20_m30));
// dp4 o0.y, r3, c120
o.position.y = dot(temp3, (ViewProjection._m01_m11_m21_m31));
// dp4 o0.z, r3, c121
o.position.z = dot(temp3, (ViewProjection._m02_m12_m22_m32));
// dp4 o0.w, r3, c122
o.position.w = dot(temp3, (ViewProjection._m03_m13_m23_m33));
// add r0.xyz, -r3, c123
temp0.xyz = -temp3.xyz + EyePosition.xyz;
// dp3 r1.w, r0, r0
temp1.w = dot(temp0.xyz, temp0.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// mul r4.xyz, r0, r1.w
temp4.xyz = temp0.xyz * temp1.www;
// mad r5.xyz, r0, r1.w, c6
temp5.xyz = temp0.xyz * temp1.www + DirectionalLight[0].Direction.xyz;
// nrm r6.xyz, r5
temp6.xyz = normalize(temp5.xyz).xyz;
// dp3 r2.w, r1, c6
temp2.w = dot(temp1.xyz, DirectionalLight[0].Direction.xyz);
// dp3 r4.w, r1, r6
temp4.w = dot(temp1.xyz, temp6.xyz);
// slt r5.x, -r2.w, r2.w
temp5.x = (-temp2.w < temp2.w) ? 1 : 0;
// mul r2.w, r2.w, r5.x
temp2.w = temp2.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, c17.x
temp5.y = pow(temp4.w, Shininess.x);
// mul r4.w, r5.x, r5.y
temp4.w = temp5.x * temp5.y;
// mul r5.xyz, r2.w, c5
temp5.xyz = temp2.www * DirectionalLight[0].Color.xyz;
// mul r6.xyz, r4.w, c5
temp6.xyz = temp4.www * DirectionalLight[0].Color.xyz;
// mul r5.xyz, r5, c15
temp5.xyz = temp5.xyz * ColorDiffuse.xyz;
// mul r5.xyz, r2, r5
temp5.xyz = temp2.xyz * temp5.xyz;
// mul o6.xyz, r5, c0.w
o.texcoord4 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
// mul r5.xyz, r6, c16
temp5.xyz = temp6.xyz * ColorSpecular.xyz;
// mul o7.xyz, r5, c0.w
o.texcoord5 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
// mov r5.xyz, c3.y
temp5.xyz = float3(0, 0, 0);
// mov r6.xyz, c3.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 r4.w, r2.w, r2.w
temp4.w = temp2.w + temp2.w;
// mova a0.x, r4.w
addr0.x = temp4.w;
// mad r7.xyz, r0, r1.w, c6[a0.x]
temp7.xyz = temp0.xyz * temp1.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, c17.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 r2.w, r2.w, c0.x
temp2.w = temp2.w + float1(1);
// endrep
}
// add r0.xyz, -r3, c90
temp0.xyz = -temp3.xyz + PointLight[0].Position.xyz;
// dp3 r1.w, r0, r0
temp1.w = dot(temp0.xyz, temp0.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// rcp r2.w, r1.w
temp2.w = 1.0f / temp1.w;
// mul r0.xyz, r0, r1.w
temp0.xyz = temp0.xyz * temp1.www;
// add r1.w, r2.w, -c91.x
temp1.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 r1.w, r1.w, -r2.w, c0.x
temp1.w = saturate(temp1.w * -temp2.w + float1(1));
// mul r1.w, r1.w, r1.w
temp1.w = temp1.w * temp1.w;
// mul r7.xyz, r1.w, c89
temp7.xyz = temp1.www * PointLight[0].Color.xyz;
// dp3 r0.x, r1, r0
temp0.x = dot(temp1.xyz, temp0.xyz);
// max r0.x, r0.x, c3.y
temp0.x = max(temp0.x, float1(0));
// mul r0.xyz, r7, r0.x
temp0.xyz = temp7.xyz * temp0.xxx;
// mad r0.xyz, c11.x, r0, r5
temp0.xyz = expr11.xxx * temp0.xyz + temp5.xyz;
// add r5.xyz, -r3, c93
temp5.xyz = -temp3.xyz + PointLight[1].Position.xyz;
// dp3 r1.w, r5, r5
temp1.w = dot(temp5.xyz, temp5.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// rcp r2.w, r1.w
temp2.w = 1.0f / temp1.w;
// mul r5.xyz, r5, r1.w
temp5.xyz = temp5.xyz * temp1.www;
// add r1.w, r2.w, -c94.x
temp1.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 r1.w, r1.w, -r2.w, c0.x
temp1.w = saturate(temp1.w * -temp2.w + float1(1));
// mul r1.w, r1.w, r1.w
temp1.w = temp1.w * temp1.w;
// mul r7.xyz, r1.w, c92
temp7.xyz = temp1.www * PointLight[1].Color.xyz;
// dp3 r1.w, r1, r5
temp1.w = dot(temp1.xyz, temp5.xyz);
// max r1.w, r1.w, c3.y
temp1.w = max(temp1.w, float1(0));
// mul r5.xyz, r7, r1.w
temp5.xyz = temp7.xyz * temp1.www;
// mad r0.xyz, c12.x, r5, r0
temp0.xyz = expr12.xxx * temp5.xyz + temp0.xyz;
// add r5.xyz, -r3, c96
temp5.xyz = -temp3.xyz + PointLight[2].Position.xyz;
// dp3 r1.w, r5, r5
temp1.w = dot(temp5.xyz, temp5.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// rcp r2.w, r1.w
temp2.w = 1.0f / temp1.w;
// mul r5.xyz, r5, r1.w
temp5.xyz = temp5.xyz * temp1.www;
// add r1.w, r2.w, -c97.x
temp1.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 r1.w, r1.w, -r2.w, c0.x
temp1.w = saturate(temp1.w * -temp2.w + float1(1));
// mul r1.w, r1.w, r1.w
temp1.w = temp1.w * temp1.w;
// mul r7.xyz, r1.w, c95
temp7.xyz = temp1.www * PointLight[2].Color.xyz;
// dp3 r1.w, r1, r5
temp1.w = dot(temp1.xyz, temp5.xyz);
// max r1.w, r1.w, c3.y
temp1.w = max(temp1.w, float1(0));
// mul r5.xyz, r7, r1.w
temp5.xyz = temp7.xyz * temp1.www;
// mad r0.xyz, c13.x, r5, r0
temp0.xyz = expr13.xxx * temp5.xyz + temp0.xyz;
// mov r5.xyz, c4
temp5.xyz = AmbientLightColor.xyz;
// mov r7.xyz, c14
temp7.xyz = ColorAmbient.xyz;
// mad r5.xyz, r5, r7, c18
temp5.xyz = temp5.xyz * temp7.xyz + ColorEmissive.xyz;
// mad r0.xyz, r0, c15, r5
temp0.xyz = temp0.xyz * ColorDiffuse.xyz + temp5.xyz;
// mul r0.xyz, r2, r0
temp0.xyz = temp2.xyz * temp0.xyz;
// mul o1.xyz, r0, c0.w
o.texcoord1.xyz = temp0.xyz * float3(0.5, 0.5, 0.5);
// mul o1.w, r0.w, c1.x
o.texcoord1.w = temp0.w * OpacityOverride.x;
// mul r0.xyz, r6, c16
temp0.xyz = temp6.xyz * ColorSpecular.xyz;
// mul o2.xyz, r0, c0.w
o.color1.xyz = temp0.xyz * float3(0.5, 0.5, 0.5);
// dp4 r0.x, r3, c113
temp0.x = dot(temp3, (ShadowMapWorldToShadow._m00_m10_m20_m30));
// dp4 r0.y, r3, c114
temp0.y = dot(temp3, (ShadowMapWorldToShadow._m01_m11_m21_m31));
// dp4 r0.z, r3, c115
temp0.z = dot(temp3, (ShadowMapWorldToShadow._m02_m12_m22_m32));
// dp4 r0.w, r3, c116
temp0.w = dot(temp3, (ShadowMapWorldToShadow._m03_m13_m23_m33));
// rcp r1.w, r0.w
temp1.w = 1.0f / temp0.w;
// mul o3.xy, r3, c3.z
o.texcoord = temp3 * float4(0.025, 0.025, 0.025, 0.025);
// mul r2.xy, r3.z, c117.zwzw
temp2.xy = temp3.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
// mad r2.xy, r3, c117, -r2
temp2.xy = temp3.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp2.xy;
// add o4.xy, r2, c118
o.texcoord2.xy = temp2.xy + Cloud.CurrentOffsetUV.xy;
// add r2.xy, r3.yxzw, c19.wzzw
temp2.xy = temp3.yx + Shroud.ScaleUV_OffsetUV.wz;
// mul o4.zw, r2.xyxy, c19.xyyx
o.texcoord2.zw = temp2.xy * Shroud.ScaleUV_OffsetUV.yx;
// mov o2.w, c0.x
o.color1.w = float1(1);
// mad o5.xyz, r0, r1.w, c3.yyww
o.texcoord3.xyz = temp0.xyz * temp1.www + float3(0, 0, -0.0015);
// mov o5.w, r0.w
o.texcoord3.w = temp0.w;
// mov o8.xyz, r1
o.texcoord6 = temp1;
// mov o9.xyz, r4
o.texcoord7 = temp4;
//
return o;
}
// VS_Frozen_Array_Shader_2 Vertex_3_0 Has PRES True
struct VS_Frozen_Array_Shader_2_Input
{
float4 blendindices : BLENDINDICES;
float4 blendweight : BLENDWEIGHT;
float4 position : POSITION;
float4 position1 : POSITION1;
float4 normal : NORMAL;
float4 normal1 : NORMAL1;
float4 color : COLOR;
};
struct VS_Frozen_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;
float3 texcoord7 : TEXCOORD7;
};
VS_Frozen_Array_Shader_2_Output VS_Frozen_Array_Shader_2(VS_Frozen_Array_Shader_2_Input i)
{
/*
PRSI
OutputRegisterOffset: 11
Unknown1: 0
Unknown2: 0
OutputRegisterCount: 3
Unknown3: 0
Unknown4: 0
Unknown5: 11
Unknown6: 3
Mappings: 1
0 - ConstOutput: 0 ConstInput 0
*/
float4 expr11;
float4 expr12;
float4 expr13;
{
// 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;
}
VS_Frozen_Array_Shader_2_Output o;
float4 temp0, temp1, temp2, temp3, temp4, temp5, temp6;
float2 addr0;
float3 temp7, temp8;
// def c0, 1, -1, 1.5, 0.5
// def c3, 0, 0, 0.025, -0.0015
// 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_color v6
// 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
// dcl_texcoord7 o9.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, 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;
// mul r0.w, v1.y, c129[a0.y].w
temp0.w = i.blendweight.y * WorldBones[1 + addr0.y].w;
// mad r0.w, c129[a0.x].w, v1.x, r0.w
temp0.w = WorldBones[1 + addr0.x].w * i.blendweight.x + temp0.w;
// mul r0.w, r0.w, v6.w
temp0.w = temp0.w * i.color.w;
// mul r2.xyz, c2, v6
temp2.xyz = TintColor.xyz * i.color.xyz;
// mad r3.xyz, r1, c0.z, r0
temp3.xyz = temp1.xyz * float3(1.5, 1.5, 1.5) + temp0.xyz;
// mov r3.w, c0.x
temp3.w = float1(1);
// dp4 o0.x, r3, c119
o.position.x = dot(temp3, (ViewProjection._m00_m10_m20_m30));
// dp4 o0.y, r3, c120
o.position.y = dot(temp3, (ViewProjection._m01_m11_m21_m31));
// dp4 o0.z, r3, c121
o.position.z = dot(temp3, (ViewProjection._m02_m12_m22_m32));
// dp4 o0.w, r3, c122
o.position.w = dot(temp3, (ViewProjection._m03_m13_m23_m33));
// add r0.xyz, -r3, c123
temp0.xyz = -temp3.xyz + EyePosition.xyz;
// dp3 r1.w, r0, r0
temp1.w = dot(temp0.xyz, temp0.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// mul r4.xyz, r0, r1.w
temp4.xyz = temp0.xyz * temp1.www;
// mad r5.xyz, r0, r1.w, c6
temp5.xyz = temp0.xyz * temp1.www + DirectionalLight[0].Direction.xyz;
// nrm r6.xyz, r5
temp6.xyz = normalize(temp5.xyz).xyz;
// dp3 r2.w, r1, c6
temp2.w = dot(temp1.xyz, DirectionalLight[0].Direction.xyz);
// dp3 r4.w, r1, r6
temp4.w = dot(temp1.xyz, temp6.xyz);
// slt r5.x, -r2.w, r2.w
temp5.x = (-temp2.w < temp2.w) ? 1 : 0;
// mul r2.w, r2.w, r5.x
temp2.w = temp2.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, c17.x
temp5.y = pow(temp4.w, Shininess.x);
// mul r4.w, r5.x, r5.y
temp4.w = temp5.x * temp5.y;
// mul r5.xyz, r2.w, c5
temp5.xyz = temp2.www * DirectionalLight[0].Color.xyz;
// mul r6.xyz, r4.w, c5
temp6.xyz = temp4.www * DirectionalLight[0].Color.xyz;
// mul r5.xyz, r5, c15
temp5.xyz = temp5.xyz * ColorDiffuse.xyz;
// mul r5.xyz, r2, r5
temp5.xyz = temp2.xyz * temp5.xyz;
// mul o6.xyz, r5, c0.w
o.texcoord4 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
// mul r5.xyz, r6, c16
temp5.xyz = temp6.xyz * ColorSpecular.xyz;
// mul o7.xyz, r5, c0.w
o.texcoord5 = temp5 * float4(0.5, 0.5, 0.5, 0.5);
// mov r5.xyz, c3.y
temp5.xyz = float3(0, 0, 0);
// mov r6.xyz, c3.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 r4.w, r2.w, r2.w
temp4.w = temp2.w + temp2.w;
// mova a0.x, r4.w
addr0.x = temp4.w;
// mad r7.xyz, r0, r1.w, c6[a0.x]
temp7.xyz = temp0.xyz * temp1.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, c17.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 r2.w, r2.w, c0.x
temp2.w = temp2.w + float1(1);
// endrep
}
// add r0.xyz, -r3, c90
temp0.xyz = -temp3.xyz + PointLight[0].Position.xyz;
// dp3 r1.w, r0, r0
temp1.w = dot(temp0.xyz, temp0.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// rcp r2.w, r1.w
temp2.w = 1.0f / temp1.w;
// mul r0.xyz, r0, r1.w
temp0.xyz = temp0.xyz * temp1.www;
// add r1.w, r2.w, -c91.x
temp1.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 r1.w, r1.w, -r2.w, c0.x
temp1.w = saturate(temp1.w * -temp2.w + float1(1));
// mul r1.w, r1.w, r1.w
temp1.w = temp1.w * temp1.w;
// mul r7.xyz, r1.w, c89
temp7.xyz = temp1.www * PointLight[0].Color.xyz;
// dp3 r0.x, r1, r0
temp0.x = dot(temp1.xyz, temp0.xyz);
// max r0.x, r0.x, c3.y
temp0.x = max(temp0.x, float1(0));
// mul r0.xyz, r7, r0.x
temp0.xyz = temp7.xyz * temp0.xxx;
// mad r0.xyz, c11.x, r0, r5
temp0.xyz = expr11.xxx * temp0.xyz + temp5.xyz;
// add r5.xyz, -r3, c93
temp5.xyz = -temp3.xyz + PointLight[1].Position.xyz;
// dp3 r1.w, r5, r5
temp1.w = dot(temp5.xyz, temp5.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// rcp r2.w, r1.w
temp2.w = 1.0f / temp1.w;
// mul r5.xyz, r5, r1.w
temp5.xyz = temp5.xyz * temp1.www;
// add r1.w, r2.w, -c94.x
temp1.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 r1.w, r1.w, -r2.w, c0.x
temp1.w = saturate(temp1.w * -temp2.w + float1(1));
// mul r1.w, r1.w, r1.w
temp1.w = temp1.w * temp1.w;
// mul r7.xyz, r1.w, c92
temp7.xyz = temp1.www * PointLight[1].Color.xyz;
// dp3 r1.w, r1, r5
temp1.w = dot(temp1.xyz, temp5.xyz);
// max r1.w, r1.w, c3.y
temp1.w = max(temp1.w, float1(0));
// mul r5.xyz, r7, r1.w
temp5.xyz = temp7.xyz * temp1.www;
// mad r0.xyz, c12.x, r5, r0
temp0.xyz = expr12.xxx * temp5.xyz + temp0.xyz;
// add r5.xyz, -r3, c96
temp5.xyz = -temp3.xyz + PointLight[2].Position.xyz;
// dp3 r1.w, r5, r5
temp1.w = dot(temp5.xyz, temp5.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// rcp r2.w, r1.w
temp2.w = 1.0f / temp1.w;
// mul r5.xyz, r5, r1.w
temp5.xyz = temp5.xyz * temp1.www;
// add r1.w, r2.w, -c97.x
temp1.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 r1.w, r1.w, -r2.w, c0.x
temp1.w = saturate(temp1.w * -temp2.w + float1(1));
// mul r1.w, r1.w, r1.w
temp1.w = temp1.w * temp1.w;
// mul r7.xyz, r1.w, c95
temp7.xyz = temp1.www * PointLight[2].Color.xyz;
// dp3 r1.w, r1, r5
temp1.w = dot(temp1.xyz, temp5.xyz);
// max r1.w, r1.w, c3.y
temp1.w = max(temp1.w, float1(0));
// mul r5.xyz, r7, r1.w
temp5.xyz = temp7.xyz * temp1.www;
// mad r0.xyz, c13.x, r5, r0
temp0.xyz = expr13.xxx * temp5.xyz + temp0.xyz;
// mov r5.xyz, c4
temp5.xyz = AmbientLightColor.xyz;
// mov r7.xyz, c14
temp7.xyz = ColorAmbient.xyz;
// mad r5.xyz, r5, r7, c18
temp5.xyz = temp5.xyz * temp7.xyz + ColorEmissive.xyz;
// mad r0.xyz, r0, c15, r5
temp0.xyz = temp0.xyz * ColorDiffuse.xyz + temp5.xyz;
// mul r0.xyz, r2, r0
temp0.xyz = temp2.xyz * temp0.xyz;
// mul o1.xyz, r0, c0.w
o.texcoord1.xyz = temp0.xyz * float3(0.5, 0.5, 0.5);
// mul o1.w, r0.w, c1.x
o.texcoord1.w = temp0.w * OpacityOverride.x;
// mul r0.xyz, r6, c16
temp0.xyz = temp6.xyz * ColorSpecular.xyz;
// mul o2.xyz, r0, c0.w
o.color1.xyz = temp0.xyz * float3(0.5, 0.5, 0.5);
// dp4 r0.x, r3, c113
temp0.x = dot(temp3, (ShadowMapWorldToShadow._m00_m10_m20_m30));
// dp4 r0.y, r3, c114
temp0.y = dot(temp3, (ShadowMapWorldToShadow._m01_m11_m21_m31));
// dp4 r0.z, r3, c115
temp0.z = dot(temp3, (ShadowMapWorldToShadow._m02_m12_m22_m32));
// dp4 r0.w, r3, c116
temp0.w = dot(temp3, (ShadowMapWorldToShadow._m03_m13_m23_m33));
// rcp r1.w, r0.w
temp1.w = 1.0f / temp0.w;
// mul o3.xy, r3, c3.z
o.texcoord = temp3 * float4(0.025, 0.025, 0.025, 0.025);
// mul r2.xy, r3.z, c117.zwzw
temp2.xy = temp3.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
// mad r2.xy, r3, c117, -r2
temp2.xy = temp3.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp2.xy;
// add o4.xy, r2, c118
o.texcoord2.xy = temp2.xy + Cloud.CurrentOffsetUV.xy;
// add r2.xy, r3.yxzw, c19.wzzw
temp2.xy = temp3.yx + Shroud.ScaleUV_OffsetUV.wz;
// mul o4.zw, r2.xyxy, c19.xyyx
o.texcoord2.zw = temp2.xy * Shroud.ScaleUV_OffsetUV.yx;
// mov o2.w, c0.x
o.color1.w = float1(1);
// mad o5.xyz, r0, r1.w, c3.yyww
o.texcoord3.xyz = temp0.xyz * temp1.www + float3(0, 0, -0.0015);
// mov o5.w, r0.w
o.texcoord3.w = temp0.w;
// mov o8.xyz, r1
o.texcoord6 = temp1;
// mov o9.xyz, r4
o.texcoord7 = temp4;
//
return o;
}
VertexShader VS_Frozen_Array[3] = {
compile vs_3_0 VS_Frozen_Array_Shader_0(), // 74
compile vs_3_0 VS_Frozen_Array_Shader_1(), // 75
compile vs_3_0 VS_Frozen_Array_Shader_2(), // 76
};
// PS_Array_Shader_0 Pixel_3_0 Has PRES False
struct PS_Array_Shader_0_Input
{
float4 texcoord1 : TEXCOORD1;
float3 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord4 : TEXCOORD4;
float3 texcoord5 : TEXCOORD5;
};
float4 PS_Array_Shader_0(PS_Array_Shader_0_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
float3 temp2;
// def c0, 2.2, 0, 0, 0
// dcl_texcoord1 v0
// dcl_color1 v1.xyz
// dcl_texcoord v2.xy
// dcl_texcoord2 v3
// dcl_texcoord4 v4.xyz
// dcl_texcoord5 v5.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_2d s2
// texld r0, v3, s2
temp0 = tex2D(CloudTextureSampler, i.texcoord2.xy);
// 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, c0.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);
// mov r0.xyz, v0
temp0.xyz = i.texcoord1.xyz;
// mad r0.xyz, v4, r1, r0
temp0.xyz = i.texcoord4.xyz * temp1.xyz + temp0.xyz;
// mov r2.xyz, v5
temp2.xyz = i.texcoord5.xyz;
// mad r1.xyz, r2, r1, v1
temp1.xyz = temp2.xyz * temp1.xyz + i.color1.xyz;
// add r0.xyz, r0, r1
temp0.xyz = temp0.xyz + temp1.xyz;
// mov r0.w, v0.w
temp0.w = i.texcoord1.w;
// texld r1, v2, s0
temp1 = tex2D(Texture_0Sampler, i.texcoord.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 r2.xyz, r2, c0.x
temp2.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
// exp r1.x, r2.x
temp1.x = exp2(temp2.x);
// exp r1.y, r2.y
temp1.y = exp2(temp2.y);
// exp r1.z, r2.z
temp1.z = exp2(temp2.z);
// mul r0, r0, r1
temp0 = temp0 * temp1;
// add r0.xyz, r0, r0
temp0.xyz = temp0.xyz + temp0.xyz;
// mov oC0.w, r0.w
out_color.w = temp0.w;
// texld r1, v3.wzzw, s1
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
//
return out_color;
}
// PS_Array_Shader_1 Pixel_3_0 Has PRES False
struct PS_Array_Shader_1_Input
{
float4 texcoord1 : TEXCOORD1;
float4 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord4 : TEXCOORD4;
float3 texcoord5 : TEXCOORD5;
};
float4 PS_Array_Shader_1(PS_Array_Shader_1_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
float3 temp2;
// def c0, 2.2, 2, -1, 1
// dcl_texcoord1 v0
// dcl_color1 v1
// dcl_texcoord v2.xy
// dcl_texcoord2 v3
// dcl_texcoord4 v4.xyz
// dcl_texcoord5 v5.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_2d s2
// texld r0, v3, s2
temp0 = tex2D(CloudTextureSampler, i.texcoord2.xy);
// 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, c0.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);
// mov r0.xyz, v0
temp0.xyz = i.texcoord1.xyz;
// mad r0.xyz, v4, r1, r0
temp0.xyz = i.texcoord4.xyz * temp1.xyz + temp0.xyz;
// mov r2.xyz, v1
temp2.xyz = i.color1.xyz;
// mad r1.xyz, v5, r1, r2
temp1.xyz = i.texcoord5.xyz * temp1.xyz + temp2.xyz;
// add r0.xyz, r0, r1
temp0.xyz = temp0.xyz + temp1.xyz;
// mov r0.w, v0.w
temp0.w = i.texcoord1.w;
// texld r1, v2, s0
temp1 = tex2D(Texture_0Sampler, i.texcoord.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 r2.xyz, r2, c0.x
temp2.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
// exp r1.x, r2.x
temp1.x = exp2(temp2.x);
// exp r1.y, r2.y
temp1.y = exp2(temp2.y);
// exp r1.z, r2.z
temp1.z = exp2(temp2.z);
// mul r0, r0, r1
temp0 = temp0 * temp1;
// mad r0.xyz, r0, c0.y, c0.z
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// mov oC0.w, r0.w
out_color.w = temp0.w;
// mad r0.xyz, v1.w, r0, c0.w
temp0.xyz = i.color1.www * temp0.xyz + float3(1, 1, 1);
// texld r1, v3.wzzw, s1
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
//
return out_color;
}
// PS_Array_Shader_2 Pixel_3_0 Has PRES False
struct PS_Array_Shader_2_Input
{
float4 texcoord1 : TEXCOORD1;
float4 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord4 : TEXCOORD4;
float3 texcoord5 : TEXCOORD5;
};
float4 PS_Array_Shader_2(PS_Array_Shader_2_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
float3 temp2;
// def c0, 2.2, 0, 0, 0
// dcl_texcoord1 v0
// dcl_color1 v1
// dcl_texcoord v2.xy
// dcl_texcoord2 v3
// dcl_texcoord4 v4.xyz
// dcl_texcoord5 v5.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_2d s2
// texld r0, v3, s2
temp0 = tex2D(CloudTextureSampler, i.texcoord2.xy);
// 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, c0.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);
// mov r0.xyz, v0
temp0.xyz = i.texcoord1.xyz;
// mad r0.xyz, v4, r1, r0
temp0.xyz = i.texcoord4.xyz * temp1.xyz + temp0.xyz;
// mov r2.xyz, v1
temp2.xyz = i.color1.xyz;
// mad r1.xyz, v5, r1, r2
temp1.xyz = i.texcoord5.xyz * temp1.xyz + temp2.xyz;
// add r0.xyz, r0, r1
temp0.xyz = temp0.xyz + temp1.xyz;
// mov r0.w, v0.w
temp0.w = i.texcoord1.w;
// texld r1, v2, s0
temp1 = tex2D(Texture_0Sampler, i.texcoord.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 r2.xyz, r2, c0.x
temp2.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
// exp r1.x, r2.x
temp1.x = exp2(temp2.x);
// exp r1.y, r2.y
temp1.y = exp2(temp2.y);
// exp r1.z, r2.z
temp1.z = exp2(temp2.z);
// mul r0, r0, r1
temp0 = temp0 * temp1;
// add r0.xyz, r0, r0
temp0.xyz = temp0.xyz + temp0.xyz;
// mov oC0.w, r0.w
out_color.w = temp0.w;
// mul r0.xyz, r0, v1.w
temp0.xyz = temp0.xyz * i.color1.www;
// texld r1, v3.wzzw, s1
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
//
return out_color;
}
// PS_Array_Shader_3 Pixel_3_0 Has PRES False
struct PS_Array_Shader_3_Input
{
float4 texcoord1 : TEXCOORD1;
float3 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord3 : TEXCOORD3;
float3 texcoord4 : TEXCOORD4;
float3 texcoord5 : TEXCOORD5;
};
float4 PS_Array_Shader_3(PS_Array_Shader_3_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
float3 temp2;
// def c0, 2.2, 1, 0, 0.25
// dcl_texcoord1 v0
// dcl_color1 v1.xyz
// dcl_texcoord v2.xy
// dcl_texcoord2 v3
// dcl_texcoord3 v4.xyz
// dcl_texcoord4 v5.xyz
// dcl_texcoord5 v6.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_2d s2
// dcl_2d s3
// add r0.xy, c11.zxzw, v4
temp0.xy = Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize.zx + i.texcoord3.xy;
// texld r0, r0, s0
temp0 = tex2D(ShadowMapSampler, temp0.xy);
// mov r0.y, r0.x
temp0.y = temp0.x;
// add r1.xy, c11.yzzw, v4
temp1.xy = Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize.yz + i.texcoord3.xy;
// texld r1, r1, s0
temp1 = tex2D(ShadowMapSampler, temp1.xy);
// mov r0.z, r1.x
temp0.z = temp1.x;
// add r1.xy, c11.wzzw, v4
temp1.xy = Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize.wz + i.texcoord3.xy;
// texld r1, r1, s0
temp1 = tex2D(ShadowMapSampler, temp1.xy);
// mov r0.w, r1.x
temp0.w = temp1.x;
// texld r1, v4, s0
temp1 = tex2D(ShadowMapSampler, i.texcoord3.xy);
// mov r0.x, r1.x
temp0.x = temp1.x;
// add r0, r0, -v4.z
temp0 = temp0 + -i.texcoord3.z;
// cmp r0, r0, c0.y, c0.z
temp0 = (temp0 >= 0) ? float4(1, 1, 1, 1) : float4(0, 0, 0, 0);
// dp4 r0.x, c0.y, r0
temp0.x = dot(float4(1, 1, 1, 1), temp0);
// mul r0.x, r0.x, c0.w
temp0.x = temp0.x * float1(0.25);
// texld r1, v3, s3
temp1 = tex2D(CloudTextureSampler, i.texcoord2.xy);
// log r0.y, r1.x
temp0.y = log2(temp1.x);
// log r0.z, r1.y
temp0.z = log2(temp1.y);
// log r0.w, r1.z
temp0.w = log2(temp1.z);
// mul r0.yzw, r0, c0.x
temp0.yzw = temp0.yzw * float3(2.2, 2.2, 2.2);
// exp r1.x, r0.y
temp1.x = exp2(temp0.y);
// exp r1.y, r0.z
temp1.y = exp2(temp0.z);
// exp r1.z, r0.w
temp1.z = exp2(temp0.w);
// mul r0.xyz, r0.x, r1
temp0.xyz = temp0.xxx * temp1.xyz;
// mov r1.xyz, v0
temp1.xyz = i.texcoord1.xyz;
// mad r1.xyz, v5, r0, r1
temp1.xyz = i.texcoord4.xyz * temp0.xyz + temp1.xyz;
// mov r2.xyz, v6
temp2.xyz = i.texcoord5.xyz;
// mad r0.xyz, r2, r0, v1
temp0.xyz = temp2.xyz * temp0.xyz + i.color1.xyz;
// add r0.xyz, r1, r0
temp0.xyz = temp1.xyz + temp0.xyz;
// mov r0.w, v0.w
temp0.w = i.texcoord1.w;
// texld r1, v2, s1
temp1 = tex2D(Texture_0Sampler, i.texcoord.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 r2.xyz, r2, c0.x
temp2.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
// exp r1.x, r2.x
temp1.x = exp2(temp2.x);
// exp r1.y, r2.y
temp1.y = exp2(temp2.y);
// exp r1.z, r2.z
temp1.z = exp2(temp2.z);
// mul r0, r0, r1
temp0 = temp0 * temp1;
// add r0.xyz, r0, r0
temp0.xyz = temp0.xyz + temp0.xyz;
// mov oC0.w, r0.w
out_color.w = temp0.w;
// texld r1, v3.wzzw, s2
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
//
return out_color;
}
// PS_Array_Shader_4 Pixel_3_0 Has PRES False
struct PS_Array_Shader_4_Input
{
float4 texcoord1 : TEXCOORD1;
float4 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord3 : TEXCOORD3;
float3 texcoord4 : TEXCOORD4;
float3 texcoord5 : TEXCOORD5;
};
float4 PS_Array_Shader_4(PS_Array_Shader_4_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
float3 temp2;
// def c0, 2.2, 1, 0, 0.25
// def c1, 2, -1, 0, 0
// dcl_texcoord1 v0
// dcl_color1 v1
// dcl_texcoord v2.xy
// dcl_texcoord2 v3
// dcl_texcoord3 v4.xyz
// dcl_texcoord4 v5.xyz
// dcl_texcoord5 v6.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_2d s2
// dcl_2d s3
// add r0.xy, c11.zxzw, v4
temp0.xy = Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize.zx + i.texcoord3.xy;
// texld r0, r0, s0
temp0 = tex2D(ShadowMapSampler, temp0.xy);
// mov r0.y, r0.x
temp0.y = temp0.x;
// add r1.xy, c11.yzzw, v4
temp1.xy = Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize.yz + i.texcoord3.xy;
// texld r1, r1, s0
temp1 = tex2D(ShadowMapSampler, temp1.xy);
// mov r0.z, r1.x
temp0.z = temp1.x;
// add r1.xy, c11.wzzw, v4
temp1.xy = Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize.wz + i.texcoord3.xy;
// texld r1, r1, s0
temp1 = tex2D(ShadowMapSampler, temp1.xy);
// mov r0.w, r1.x
temp0.w = temp1.x;
// texld r1, v4, s0
temp1 = tex2D(ShadowMapSampler, i.texcoord3.xy);
// mov r0.x, r1.x
temp0.x = temp1.x;
// add r0, r0, -v4.z
temp0 = temp0 + -i.texcoord3.z;
// cmp r0, r0, c0.y, c0.z
temp0 = (temp0 >= 0) ? float4(1, 1, 1, 1) : float4(0, 0, 0, 0);
// dp4 r0.x, c0.y, r0
temp0.x = dot(float4(1, 1, 1, 1), temp0);
// mul r0.x, r0.x, c0.w
temp0.x = temp0.x * float1(0.25);
// texld r1, v3, s3
temp1 = tex2D(CloudTextureSampler, i.texcoord2.xy);
// log r0.y, r1.x
temp0.y = log2(temp1.x);
// log r0.z, r1.y
temp0.z = log2(temp1.y);
// log r0.w, r1.z
temp0.w = log2(temp1.z);
// mul r0.yzw, r0, c0.x
temp0.yzw = temp0.yzw * float3(2.2, 2.2, 2.2);
// exp r1.x, r0.y
temp1.x = exp2(temp0.y);
// exp r1.y, r0.z
temp1.y = exp2(temp0.z);
// exp r1.z, r0.w
temp1.z = exp2(temp0.w);
// mul r0.xyz, r0.x, r1
temp0.xyz = temp0.xxx * temp1.xyz;
// mov r1.xyz, v0
temp1.xyz = i.texcoord1.xyz;
// mad r1.xyz, v5, r0, r1
temp1.xyz = i.texcoord4.xyz * temp0.xyz + temp1.xyz;
// mov r2.xyz, v1
temp2.xyz = i.color1.xyz;
// mad r0.xyz, v6, r0, r2
temp0.xyz = i.texcoord5.xyz * temp0.xyz + temp2.xyz;
// add r0.xyz, r1, r0
temp0.xyz = temp1.xyz + temp0.xyz;
// mov r0.w, v0.w
temp0.w = i.texcoord1.w;
// texld r1, v2, s1
temp1 = tex2D(Texture_0Sampler, i.texcoord.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 r2.xyz, r2, c0.x
temp2.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
// exp r1.x, r2.x
temp1.x = exp2(temp2.x);
// exp r1.y, r2.y
temp1.y = exp2(temp2.y);
// exp r1.z, r2.z
temp1.z = exp2(temp2.z);
// mul r0, r0, r1
temp0 = temp0 * temp1;
// mad r0.xyz, r0, c1.x, c1.y
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// mov oC0.w, r0.w
out_color.w = temp0.w;
// mad r0.xyz, v1.w, r0, c0.y
temp0.xyz = i.color1.www * temp0.xyz + float3(1, 1, 1);
// texld r1, v3.wzzw, s2
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
//
return out_color;
}
// PS_Array_Shader_5 Pixel_3_0 Has PRES False
struct PS_Array_Shader_5_Input
{
float4 texcoord1 : TEXCOORD1;
float4 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord3 : TEXCOORD3;
float3 texcoord4 : TEXCOORD4;
float3 texcoord5 : TEXCOORD5;
};
float4 PS_Array_Shader_5(PS_Array_Shader_5_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
float3 temp2;
// def c0, 2.2, 1, 0, 0.25
// dcl_texcoord1 v0
// dcl_color1 v1
// dcl_texcoord v2.xy
// dcl_texcoord2 v3
// dcl_texcoord3 v4.xyz
// dcl_texcoord4 v5.xyz
// dcl_texcoord5 v6.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_2d s2
// dcl_2d s3
// add r0.xy, c11.zxzw, v4
temp0.xy = Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize.zx + i.texcoord3.xy;
// texld r0, r0, s0
temp0 = tex2D(ShadowMapSampler, temp0.xy);
// mov r0.y, r0.x
temp0.y = temp0.x;
// add r1.xy, c11.yzzw, v4
temp1.xy = Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize.yz + i.texcoord3.xy;
// texld r1, r1, s0
temp1 = tex2D(ShadowMapSampler, temp1.xy);
// mov r0.z, r1.x
temp0.z = temp1.x;
// add r1.xy, c11.wzzw, v4
temp1.xy = Shadowmap_Zero_Zero_OneOverMapSize_OneOverMapSize.wz + i.texcoord3.xy;
// texld r1, r1, s0
temp1 = tex2D(ShadowMapSampler, temp1.xy);
// mov r0.w, r1.x
temp0.w = temp1.x;
// texld r1, v4, s0
temp1 = tex2D(ShadowMapSampler, i.texcoord3.xy);
// mov r0.x, r1.x
temp0.x = temp1.x;
// add r0, r0, -v4.z
temp0 = temp0 + -i.texcoord3.z;
// cmp r0, r0, c0.y, c0.z
temp0 = (temp0 >= 0) ? float4(1, 1, 1, 1) : float4(0, 0, 0, 0);
// dp4 r0.x, c0.y, r0
temp0.x = dot(float4(1, 1, 1, 1), temp0);
// mul r0.x, r0.x, c0.w
temp0.x = temp0.x * float1(0.25);
// texld r1, v3, s3
temp1 = tex2D(CloudTextureSampler, i.texcoord2.xy);
// log r0.y, r1.x
temp0.y = log2(temp1.x);
// log r0.z, r1.y
temp0.z = log2(temp1.y);
// log r0.w, r1.z
temp0.w = log2(temp1.z);
// mul r0.yzw, r0, c0.x
temp0.yzw = temp0.yzw * float3(2.2, 2.2, 2.2);
// exp r1.x, r0.y
temp1.x = exp2(temp0.y);
// exp r1.y, r0.z
temp1.y = exp2(temp0.z);
// exp r1.z, r0.w
temp1.z = exp2(temp0.w);
// mul r0.xyz, r0.x, r1
temp0.xyz = temp0.xxx * temp1.xyz;
// mov r1.xyz, v0
temp1.xyz = i.texcoord1.xyz;
// mad r1.xyz, v5, r0, r1
temp1.xyz = i.texcoord4.xyz * temp0.xyz + temp1.xyz;
// mov r2.xyz, v1
temp2.xyz = i.color1.xyz;
// mad r0.xyz, v6, r0, r2
temp0.xyz = i.texcoord5.xyz * temp0.xyz + temp2.xyz;
// add r0.xyz, r1, r0
temp0.xyz = temp1.xyz + temp0.xyz;
// mov r0.w, v0.w
temp0.w = i.texcoord1.w;
// texld r1, v2, s1
temp1 = tex2D(Texture_0Sampler, i.texcoord.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 r2.xyz, r2, c0.x
temp2.xyz = temp2.xyz * float3(2.2, 2.2, 2.2);
// exp r1.x, r2.x
temp1.x = exp2(temp2.x);
// exp r1.y, r2.y
temp1.y = exp2(temp2.y);
// exp r1.z, r2.z
temp1.z = exp2(temp2.z);
// mul r0, r0, r1
temp0 = temp0 * temp1;
// add r0.xyz, r0, r0
temp0.xyz = temp0.xyz + temp0.xyz;
// mov oC0.w, r0.w
out_color.w = temp0.w;
// mul r0.xyz, r0, v1.w
temp0.xyz = temp0.xyz * i.color1.www;
// texld r1, v3.wzzw, s2
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
//
return out_color;
}
PixelShader PS_Array[6] = {
compile ps_3_0 PS_Array_Shader_0(), // 77
compile ps_3_0 PS_Array_Shader_1(), // 78
compile ps_3_0 PS_Array_Shader_2(), // 79
compile ps_3_0 PS_Array_Shader_3(), // 80
compile ps_3_0 PS_Array_Shader_4(), // 81
compile ps_3_0 PS_Array_Shader_5(), // 82
};
// PS_Frozen_Array_Shader_0 Pixel_3_0 Has PRES False
struct PS_Frozen_Array_Shader_0_Input
{
float4 texcoord1 : TEXCOORD1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord7 : TEXCOORD7;
};
float4 PS_Frozen_Array_Shader_0(PS_Frozen_Array_Shader_0_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// def c0, 2, -1, 0.3, 0
// def c1, 0.25, 0.4, 0.5, 0
// dcl_texcoord1 v0
// dcl_texcoord v1.xy
// dcl_texcoord2 v2.zw
// dcl_texcoord7 v3.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_cube s2
// texld r0, v1, s1
temp0 = tex2D(FrozenNormalMapSampler, i.texcoord.xy);
// mad r0.xyz, r0, c0.x, c0.y
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// dp3 r0.w, v3, r0
temp0.w = dot(i.texcoord7.xyz, temp0.xyz);
// add r0.w, r0.w, r0.w
temp0.w = temp0.w + temp0.w;
// mad r0.xyz, r0, -r0.w, v3
temp0.xyz = temp0.xyz * -temp0.www + i.texcoord7.xyz;
// mov r0.xyz, -r0
temp0.xyz = -temp0.xyz;
// texld r0, r0, s2
temp0 = texCUBE(EnvironmentTextureSampler, temp0.xyz);
// mad r0.xyz, r0, c5, v0
temp0.xyz = temp0.xyz * DirectionalLight[0].Color.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, c1
temp0.xyz = temp0.xyz * float3(0.25, 0.4, 0.5);
// min r1.xyz, r0, c0.z
temp1.xyz = min(temp0.xyz, float3(0.3, 0.3, 0.3));
// add r0.xyz, r1, r1
temp0.xyz = temp1.xyz + temp1.xyz;
// texld r1, v2.wzzw, s0
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
// mov oC0.w, v0.w
out_color.w = i.texcoord1.w;
//
return out_color;
}
// PS_Frozen_Array_Shader_1 Pixel_3_0 Has PRES False
struct PS_Frozen_Array_Shader_1_Input
{
float4 texcoord1 : TEXCOORD1;
float4 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord7 : TEXCOORD7;
};
float4 PS_Frozen_Array_Shader_1(PS_Frozen_Array_Shader_1_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// def c0, 2, -1, 0.3, 1
// def c1, 0.25, 0.4, 0.5, 0
// dcl_texcoord1 v0
// dcl_color1 v1.w
// dcl_texcoord v2.xy
// dcl_texcoord2 v3.zw
// dcl_texcoord7 v4.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_cube s2
// texld r0, v2, s1
temp0 = tex2D(FrozenNormalMapSampler, i.texcoord.xy);
// mad r0.xyz, r0, c0.x, c0.y
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// dp3 r0.w, v4, r0
temp0.w = dot(i.texcoord7.xyz, temp0.xyz);
// add r0.w, r0.w, r0.w
temp0.w = temp0.w + temp0.w;
// mad r0.xyz, r0, -r0.w, v4
temp0.xyz = temp0.xyz * -temp0.www + i.texcoord7.xyz;
// mov r0.xyz, -r0
temp0.xyz = -temp0.xyz;
// texld r0, r0, s2
temp0 = texCUBE(EnvironmentTextureSampler, temp0.xyz);
// mad r0.xyz, r0, c5, v0
temp0.xyz = temp0.xyz * DirectionalLight[0].Color.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, c1
temp0.xyz = temp0.xyz * float3(0.25, 0.4, 0.5);
// min r1.xyz, r0, c0.z
temp1.xyz = min(temp0.xyz, float3(0.3, 0.3, 0.3));
// mad r0.xyz, r1, c0.x, c0.y
temp0.xyz = temp1.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// mad r0.xyz, v1.w, r0, c0.w
temp0.xyz = i.color1.www * temp0.xyz + float3(1, 1, 1);
// texld r1, v3.wzzw, s0
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
// mov oC0.w, v0.w
out_color.w = i.texcoord1.w;
//
return out_color;
}
// PS_Frozen_Array_Shader_2 Pixel_3_0 Has PRES False
struct PS_Frozen_Array_Shader_2_Input
{
float4 texcoord1 : TEXCOORD1;
float4 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord7 : TEXCOORD7;
};
float4 PS_Frozen_Array_Shader_2(PS_Frozen_Array_Shader_2_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// def c0, 2, -1, 0.3, 0
// def c1, 0.25, 0.4, 0.5, 0
// dcl_texcoord1 v0
// dcl_color1 v1.w
// dcl_texcoord v2.xy
// dcl_texcoord2 v3.zw
// dcl_texcoord7 v4.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_cube s2
// texld r0, v2, s1
temp0 = tex2D(FrozenNormalMapSampler, i.texcoord.xy);
// mad r0.xyz, r0, c0.x, c0.y
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// dp3 r0.w, v4, r0
temp0.w = dot(i.texcoord7.xyz, temp0.xyz);
// add r0.w, r0.w, r0.w
temp0.w = temp0.w + temp0.w;
// mad r0.xyz, r0, -r0.w, v4
temp0.xyz = temp0.xyz * -temp0.www + i.texcoord7.xyz;
// mov r0.xyz, -r0
temp0.xyz = -temp0.xyz;
// texld r0, r0, s2
temp0 = texCUBE(EnvironmentTextureSampler, temp0.xyz);
// mad r0.xyz, r0, c5, v0
temp0.xyz = temp0.xyz * DirectionalLight[0].Color.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, c1
temp0.xyz = temp0.xyz * float3(0.25, 0.4, 0.5);
// min r1.xyz, r0, c0.z
temp1.xyz = min(temp0.xyz, float3(0.3, 0.3, 0.3));
// add r0.xyz, r1, r1
temp0.xyz = temp1.xyz + temp1.xyz;
// mul r0.xyz, r0, v1.w
temp0.xyz = temp0.xyz * i.color1.www;
// texld r1, v3.wzzw, s0
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
// mov oC0.w, v0.w
out_color.w = i.texcoord1.w;
//
return out_color;
}
// PS_Frozen_Array_Shader_3 Pixel_3_0 Has PRES False
struct PS_Frozen_Array_Shader_3_Input
{
float4 texcoord1 : TEXCOORD1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord7 : TEXCOORD7;
};
float4 PS_Frozen_Array_Shader_3(PS_Frozen_Array_Shader_3_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// def c0, 2, -1, 0.3, 0
// def c1, 0.25, 0.4, 0.5, 0
// dcl_texcoord1 v0
// dcl_texcoord v1.xy
// dcl_texcoord2 v2.zw
// dcl_texcoord7 v3.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_cube s2
// texld r0, v1, s1
temp0 = tex2D(FrozenNormalMapSampler, i.texcoord.xy);
// mad r0.xyz, r0, c0.x, c0.y
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// dp3 r0.w, v3, r0
temp0.w = dot(i.texcoord7.xyz, temp0.xyz);
// add r0.w, r0.w, r0.w
temp0.w = temp0.w + temp0.w;
// mad r0.xyz, r0, -r0.w, v3
temp0.xyz = temp0.xyz * -temp0.www + i.texcoord7.xyz;
// mov r0.xyz, -r0
temp0.xyz = -temp0.xyz;
// texld r0, r0, s2
temp0 = texCUBE(EnvironmentTextureSampler, temp0.xyz);
// mad r0.xyz, r0, c5, v0
temp0.xyz = temp0.xyz * DirectionalLight[0].Color.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, c1
temp0.xyz = temp0.xyz * float3(0.25, 0.4, 0.5);
// min r1.xyz, r0, c0.z
temp1.xyz = min(temp0.xyz, float3(0.3, 0.3, 0.3));
// add r0.xyz, r1, r1
temp0.xyz = temp1.xyz + temp1.xyz;
// texld r1, v2.wzzw, s0
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
// mov oC0.w, v0.w
out_color.w = i.texcoord1.w;
//
return out_color;
}
// PS_Frozen_Array_Shader_4 Pixel_3_0 Has PRES False
struct PS_Frozen_Array_Shader_4_Input
{
float4 texcoord1 : TEXCOORD1;
float4 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord7 : TEXCOORD7;
};
float4 PS_Frozen_Array_Shader_4(PS_Frozen_Array_Shader_4_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// def c0, 2, -1, 0.3, 1
// def c1, 0.25, 0.4, 0.5, 0
// dcl_texcoord1 v0
// dcl_color1 v1.w
// dcl_texcoord v2.xy
// dcl_texcoord2 v3.zw
// dcl_texcoord7 v4.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_cube s2
// texld r0, v2, s1
temp0 = tex2D(FrozenNormalMapSampler, i.texcoord.xy);
// mad r0.xyz, r0, c0.x, c0.y
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// dp3 r0.w, v4, r0
temp0.w = dot(i.texcoord7.xyz, temp0.xyz);
// add r0.w, r0.w, r0.w
temp0.w = temp0.w + temp0.w;
// mad r0.xyz, r0, -r0.w, v4
temp0.xyz = temp0.xyz * -temp0.www + i.texcoord7.xyz;
// mov r0.xyz, -r0
temp0.xyz = -temp0.xyz;
// texld r0, r0, s2
temp0 = texCUBE(EnvironmentTextureSampler, temp0.xyz);
// mad r0.xyz, r0, c5, v0
temp0.xyz = temp0.xyz * DirectionalLight[0].Color.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, c1
temp0.xyz = temp0.xyz * float3(0.25, 0.4, 0.5);
// min r1.xyz, r0, c0.z
temp1.xyz = min(temp0.xyz, float3(0.3, 0.3, 0.3));
// mad r0.xyz, r1, c0.x, c0.y
temp0.xyz = temp1.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// mad r0.xyz, v1.w, r0, c0.w
temp0.xyz = i.color1.www * temp0.xyz + float3(1, 1, 1);
// texld r1, v3.wzzw, s0
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
// mov oC0.w, v0.w
out_color.w = i.texcoord1.w;
//
return out_color;
}
// PS_Frozen_Array_Shader_5 Pixel_3_0 Has PRES False
struct PS_Frozen_Array_Shader_5_Input
{
float4 texcoord1 : TEXCOORD1;
float4 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float3 texcoord7 : TEXCOORD7;
};
float4 PS_Frozen_Array_Shader_5(PS_Frozen_Array_Shader_5_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// def c0, 2, -1, 0.3, 0
// def c1, 0.25, 0.4, 0.5, 0
// dcl_texcoord1 v0
// dcl_color1 v1.w
// dcl_texcoord v2.xy
// dcl_texcoord2 v3.zw
// dcl_texcoord7 v4.xyz
// dcl_2d s0
// dcl_2d s1
// dcl_cube s2
// texld r0, v2, s1
temp0 = tex2D(FrozenNormalMapSampler, i.texcoord.xy);
// mad r0.xyz, r0, c0.x, c0.y
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// dp3 r0.w, v4, r0
temp0.w = dot(i.texcoord7.xyz, temp0.xyz);
// add r0.w, r0.w, r0.w
temp0.w = temp0.w + temp0.w;
// mad r0.xyz, r0, -r0.w, v4
temp0.xyz = temp0.xyz * -temp0.www + i.texcoord7.xyz;
// mov r0.xyz, -r0
temp0.xyz = -temp0.xyz;
// texld r0, r0, s2
temp0 = texCUBE(EnvironmentTextureSampler, temp0.xyz);
// mad r0.xyz, r0, c5, v0
temp0.xyz = temp0.xyz * DirectionalLight[0].Color.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, c1
temp0.xyz = temp0.xyz * float3(0.25, 0.4, 0.5);
// min r1.xyz, r0, c0.z
temp1.xyz = min(temp0.xyz, float3(0.3, 0.3, 0.3));
// add r0.xyz, r1, r1
temp0.xyz = temp1.xyz + temp1.xyz;
// mul r0.xyz, r0, v1.w
temp0.xyz = temp0.xyz * i.color1.www;
// texld r1, v3.wzzw, s0
temp1 = tex2D(ShroudTextureSampler, i.texcoord2.wz);
// mul oC0.xyz, r0, r1
out_color.xyz = temp0.xyz * temp1.xyz;
// mov oC0.w, v0.w
out_color.w = i.texcoord1.w;
//
return out_color;
}
PixelShader PS_Frozen_Array[6] = {
compile ps_3_0 PS_Frozen_Array_Shader_0(), // 83
compile ps_3_0 PS_Frozen_Array_Shader_1(), // 84
compile ps_3_0 PS_Frozen_Array_Shader_2(), // 85
compile ps_3_0 PS_Frozen_Array_Shader_3(), // 86
compile ps_3_0 PS_Frozen_Array_Shader_4(), // 87
compile ps_3_0 PS_Frozen_Array_Shader_5(), // 88
};
// VS_M_Array_Shader_0 Vertex_2_0 Has PRES False
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
{
float3 texcoord6 : TEXCOORD6;
float4 texcoord2 : TEXCOORD2;
float4 texcoord3 : TEXCOORD3;
float3 texcoord5 : TEXCOORD5;
float4 color1 : COLOR1;
float4 texcoord1 : TEXCOORD1;
float3 texcoord4 : TEXCOORD4;
float4 position : POSITION;
float3 texcoord7 : TEXCOORD7;
float2 texcoord : TEXCOORD;
};
VS_M_Array_Shader_0_Output VS_M_Array_Shader_0(VS_M_Array_Shader_0_Input i)
{
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, -0.0015, 0, 0
// defi i0, 2, 0, 0, 0
// dcl_position v0
// dcl_normal v1
// dcl_texcoord v2
// dcl_color v3
// 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);
// mov oT6.xyz, r0
o.texcoord6 = temp0;
// mad r1, v0.xyzx, c0.xxxy, c0.yyyx
temp1 = i.position.xyzx * float4(1, 1, 1, 0) + float4(0, 0, 0, 1);
// dp4 r2.z, r1, c126
temp2.z = dot(temp1, (World._m02_m12_m22_m32));
// dp4 r2.x, r1, c124
temp2.x = dot(temp1, (World._m00_m10_m20_m30));
// dp4 r2.y, r1, c125
temp2.y = dot(temp1, (World._m01_m11_m21_m31));
// add r1.xy, r2.yxzw, c16.wzzw
temp1.xy = temp2.yx + Shroud.ScaleUV_OffsetUV.wz;
// mul oT2.zw, r1.xyxy, c16.xyyx
o.texcoord2.zw = temp1.xy * Shroud.ScaleUV_OffsetUV.yx;
// mov r2.w, c0.x
temp2.w = float1(1);
// dp4 r0.w, r2, c116
temp0.w = dot(temp2, (ShadowMapWorldToShadow._m03_m13_m23_m33));
// dp4 r1.x, r2, c113
temp1.x = dot(temp2, (ShadowMapWorldToShadow._m00_m10_m20_m30));
// dp4 r1.y, r2, c114
temp1.y = dot(temp2, (ShadowMapWorldToShadow._m01_m11_m21_m31));
// dp4 r1.z, r2, c115
temp1.z = dot(temp2, (ShadowMapWorldToShadow._m02_m12_m22_m32));
// rcp r1.w, r0.w
temp1.w = 1.0f / temp0.w;
// mad oT3.xyz, r1, r1.w, c3.xxyw
o.texcoord3.xyz = temp1.xyz * temp1.www + float3(0, 0, -0.0015);
// add r1.xyz, -r2, c123
temp1.xyz = -temp2.xyz + EyePosition.xyz;
// dp3 r1.w, r1, r1
temp1.w = dot(temp1.xyz, temp1.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// mad r3.xyz, r1, r1.w, c6
temp3.xyz = temp1.xyz * temp1.www + DirectionalLight[0].Direction.xyz;
// nrm r4.xyz, r3
temp4.xyz = normalize(temp3.xyz).xyz;
// dp3 r3.y, r0, r4
temp3.y = dot(temp0.xyz, temp4.xyz);
// dp3 r3.x, r0, c6
temp3.x = dot(temp0.xyz, DirectionalLight[0].Direction.xyz);
// mov r3.zw, c14.x
temp3.zw = Shininess.x;
// lit r3, r3
temp3 = lit(temp3.x, temp3.y, temp3.w);
// mul r3.xzw, r3.z, c5.xyyz
temp3.xzw = temp3.zzz * DirectionalLight[0].Color.xyz;
// mul r3.xzw, r3, c13.xyyz
temp3.xzw = temp3.xzw * ColorSpecular.xyz;
// mul oT5.xyz, r3.xzww, c0.z
o.texcoord5 = temp3.xzww * float4(0.5, 0.5, 0.5, 0.5);
// mov r4.zw, c14.x
temp4.zw = Shininess.x;
// mov r3.xzw, c0.y
temp3.xzw = float3(0, 0, 0);
// mov r5, c0.yyyx
temp5 = float4(0, 0, 0, 1);
// rep i0
for (int it0 = 0; it0 < int1(2); ++it0) {
// add r6.x, r5.w, r5.w
temp6.x = temp5.w + temp5.w;
// mova a0.x, r6.x
addr0.x = temp6.x;
// mad r6.xyz, r1, r1.w, c6[a0.x]
temp6.xyz = temp1.xyz * temp1.www + DirectionalLight[0 + (addr0.x / 2)].Direction.xyz;
// nrm r7.xyz, r6
temp7.xyz = normalize(temp6.xyz).xyz;
// dp3 r4.y, r0, r7
temp4.y = dot(temp0.xyz, temp7.xyz);
// dp3 r4.x, r0, c6[a0.x]
temp4.x = dot(temp0.xyz, DirectionalLight[0 + (addr0.x / 2)].Direction.xyz);
// lit r6, r4
temp6 = lit(temp4.x, temp4.y, temp4.w);
// mad r5.xyz, c5[a0.x], r6.z, r5
temp5.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp6.zzz + temp5.xyz;
// mad r3.xzw, c5[a0.x].xyyz, r6.y, r3
temp3.xzw = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp6.yyy + temp3.xzw;
// add r5.w, r5.w, c0.x
temp5.w = temp5.w + float1(1);
// endrep
}
// mul r0.xyz, r5, c13
temp0.xyz = temp5.xyz * ColorSpecular.xyz;
// mul oD1.xyz, r0, c0.z
o.color1.xyz = temp0.xyz * float3(0.5, 0.5, 0.5);
// mov r0.xyz, c4
temp0.xyz = AmbientLightColor.xyz;
// mov r4.xyz, c11
temp4.xyz = ColorAmbient.xyz;
// mad r0.xyz, r0, r4, c15
temp0.xyz = temp0.xyz * temp4.xyz + ColorEmissive.xyz;
// mad r0.xyz, r3.xzww, c12, r0
temp0.xyz = temp3.xzw * ColorDiffuse.xyz + temp0.xyz;
// mul r3.xzw, v3.xyyz, c2.xyyz
temp3.xzw = i.color.xyz * TintColor.xyz;
// mul r0.xyz, r0, r3.xzww
temp0.xyz = temp0.xyz * temp3.xzw;
// mul oT1.xyz, r0, c0.z
o.texcoord1.xyz = temp0.xyz * float3(0.5, 0.5, 0.5);
// mul r0.xyz, r3.y, c5
temp0.xyz = temp3.yyy * DirectionalLight[0].Color.xyz;
// mul r0.xyz, r0, c12
temp0.xyz = temp0.xyz * ColorDiffuse.xyz;
// mul r0.xyz, r3.xzww, r0
temp0.xyz = temp3.xzw * temp0.xyz;
// mul oT4.xyz, r0, c0.z
o.texcoord4 = temp0 * float4(0.5, 0.5, 0.5, 0.5);
// mul r0.xy, r2.z, c117.zwzw
temp0.xy = temp2.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
// mad r0.xy, r2, c117, -r0
temp0.xy = temp2.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp0.xy;
// add oT2.xy, r0, c118
o.texcoord2.xy = temp0.xy + Cloud.CurrentOffsetUV.xy;
// mov oT3.w, r0.w
o.texcoord3.w = temp0.w;
// dp4 oPos.x, r2, c119
o.position.x = dot(temp2, (ViewProjection._m00_m10_m20_m30));
// dp4 oPos.y, r2, c120
o.position.y = dot(temp2, (ViewProjection._m01_m11_m21_m31));
// dp4 oPos.z, r2, c121
o.position.z = dot(temp2, (ViewProjection._m02_m12_m22_m32));
// dp4 oPos.w, r2, c122
o.position.w = dot(temp2, (ViewProjection._m03_m13_m23_m33));
// mul r0.xyz, r1, r1.w
temp0.xyz = temp1.xyz * temp1.www;
// mov oT7.xyz, r0
o.texcoord7 = temp0;
// 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);
// mov oT0.xy, v2
o.texcoord = i.texcoord;
//
return o;
}
// VS_M_Array_Shader_1 Vertex_2_0 Has PRES False
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 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
float4 texcoord3 : TEXCOORD3;
float4 position : POSITION;
float3 texcoord6 : TEXCOORD6;
float4 texcoord1 : TEXCOORD1;
float3 texcoord4 : TEXCOORD4;
float3 texcoord5 : TEXCOORD5;
float3 texcoord7 : TEXCOORD7;
};
VS_M_Array_Shader_1_Output VS_M_Array_Shader_1(VS_M_Array_Shader_1_Input i)
{
VS_M_Array_Shader_1_Output o;
float4 temp0, temp1, temp2, temp3, temp4, temp5;
float addr0;
float3 temp6;
// def c0, 0, -0.0015, 0, 0
// def c3, 1, -1, 0.5, 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;
// mov oD1.w, c3.x
o.color1.w = float1(1);
// mov oT0.xy, v3
o.texcoord = i.texcoord;
// 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, c3.xxxy, -r2
temp1 = temp1 * float4(1, 1, 1, -1) + -temp2;
// mul r0.yzw, r1.w, c128[a0.x].xxyz
temp0.yzw = temp1.www * WorldBones[0 + addr0.x].xyz;
// mad r0.yzw, c128[a0.x].w, r1.xxyz, -r0
temp0.yzw = WorldBones[0 + addr0.x].www * temp1.xyz + -temp0.yzw;
// mad r0.yzw, c128[a0.x].xyzx, r1.xzxy, r0
temp0.yzw = WorldBones[0 + addr0.x].yzx * temp1.zxy + temp0.yzw;
// mad r0.yzw, c128[a0.x].xzxy, -r1.xyzx, r0
temp0.yzw = WorldBones[0 + addr0.x].zxy * -temp1.yzx + temp0.yzw;
// add r1.xyz, r0.yzww, c129[a0.x]
temp1.xyz = temp0.yzw + WorldBones[1 + addr0.x].xyz;
// 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;
// mul r0.yz, r1.z, c117.xzww
temp0.yz = temp1.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
// mad r0.yz, r1.xxyw, c117.xxyw, -r0
temp0.yz = temp1.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp0.yz;
// add oT2.xy, r0.yzzw, c118
o.texcoord2.xy = temp0.yz + Cloud.CurrentOffsetUV.xy;
// mov r1.w, c3.x
temp1.w = float1(1);
// dp4 r0.y, r1, c116
temp0.y = dot(temp1, (ShadowMapWorldToShadow._m03_m13_m23_m33));
// 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));
// rcp r0.z, r0.y
temp0.z = 1.0f / temp0.y;
// mad oT3.xyz, r2, r0.z, c0.xxyw
o.texcoord3.xyz = temp2.xyz * temp0.zzz + float3(0, 0, -0.0015);
// mov oT3.w, r0.y
o.texcoord3.w = temp0.y;
// 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 r2, v2.zxyy, c128[a0.x].yzxy
temp2 = i.normal.zxyy * WorldBones[0 + addr0.x].yzxy;
// mad r2, c128[a0.x].wwwx, v2.xyzx, r2
temp2 = WorldBones[0 + addr0.x].wwwx * i.normal.xyzx + temp2;
// mul r3, v2.yzxz, c128[a0.x].zxyz
temp3 = i.normal.yzxz * WorldBones[0 + addr0.x].zxyz;
// mad r2, r2, c3.xxxy, -r3
temp2 = temp2 * float4(1, 1, 1, -1) + -temp3;
// mul r0.yzw, r2.w, c128[a0.x].xxyz
temp0.yzw = temp2.www * WorldBones[0 + addr0.x].xyz;
// mad r0.yzw, c128[a0.x].w, r2.xxyz, -r0
temp0.yzw = WorldBones[0 + addr0.x].www * temp2.xyz + -temp0.yzw;
// mad r0.yzw, c128[a0.x].xyzx, r2.xzxy, r0
temp0.yzw = WorldBones[0 + addr0.x].yzx * temp2.zxy + temp0.yzw;
// mad r0.yzw, c128[a0.x].xzxy, -r2.xyzx, r0
temp0.yzw = WorldBones[0 + addr0.x].zxy * -temp2.yzx + temp0.yzw;
// mov oT6.xyz, r0.yzww
o.texcoord6 = temp0.yzww;
// add r1.xyz, -r1, c123
temp1.xyz = -temp1.xyz + EyePosition.xyz;
// dp3 r1.w, r1, r1
temp1.w = dot(temp1.xyz, temp1.xyz);
// rsq r1.w, r1.w
temp1.w = 1 / sqrt(temp1.w);
// mov r2.zw, c14.x
temp2.zw = Shininess.x;
// mov r3.xyz, c0.x
temp3.xyz = float3(0, 0, 0);
// mov r4.xyz, c0.x
temp4.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 r5.xyz, r1, r1.w, c6[a0.x]
temp5.xyz = temp1.xyz * temp1.www + DirectionalLight[0 + (addr0.x / 2)].Direction.xyz;
// nrm r6.xyz, r5
temp6.xyz = normalize(temp5.xyz).xyz;
// dp3 r2.y, r0.yzww, r6
temp2.y = dot(temp0.yzw, temp6.xyz);
// dp3 r2.x, r0.yzww, c6[a0.x]
temp2.x = dot(temp0.yzw, DirectionalLight[0 + (addr0.x / 2)].Direction.xyz);
// lit r5, r2
temp5 = lit(temp2.x, temp2.y, temp2.w);
// mad r4.xyz, c5[a0.x], r5.z, r4
temp4.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp5.zzz + temp4.xyz;
// mad r3.xyz, c5[a0.x], r5.y, r3
temp3.xyz = DirectionalLight[0 + (addr0.x / 2)].Color.xyz * temp5.yyy + temp3.xyz;
// add r3.w, r3.w, c3.x
temp3.w = temp3.w + float1(1);
// endrep
}
// mul r2.xyz, r4, c13
temp2.xyz = temp4.xyz * ColorSpecular.xyz;
// mul oD1.xyz, r2, c3.z
o.color1.xyz = temp2.xyz * float3(0.5, 0.5, 0.5);
// mov r2.xyz, c4
temp2.xyz = AmbientLightColor.xyz;
// mov r4.xyz, c11
temp4.xyz = ColorAmbient.xyz;
// mad r2.xyz, r2, r4, c15
temp2.xyz = temp2.xyz * temp4.xyz + ColorEmissive.xyz;
// mad r2.xyz, r3, c12, r2
temp2.xyz = temp3.xyz * ColorDiffuse.xyz + temp2.xyz;
// mul r3.xyz, v4, c2
temp3.xyz = i.color.xyz * TintColor.xyz;
// mul r2.xyz, r2, r3
temp2.xyz = temp2.xyz * temp3.xyz;
// mul oT1.xyz, r2, c3.z
o.texcoord1.xyz = temp2.xyz * float3(0.5, 0.5, 0.5);
// dp3 r2.x, r0.yzww, c6
temp2.x = dot(temp0.yzw, DirectionalLight[0].Direction.xyz);
// mad r4.xyz, r1, r1.w, c6
temp4.xyz = temp1.xyz * temp1.www + DirectionalLight[0].Direction.xyz;
// nrm r5.xyz, r4
temp5.xyz = normalize(temp4.xyz).xyz;
// dp3 r2.y, r0.yzww, r5
temp2.y = dot(temp0.yzw, temp5.xyz);
// mov r2.zw, c14.x
temp2.zw = Shininess.x;
// lit r2, r2
temp2 = lit(temp2.x, temp2.y, temp2.w);
// mul r0.yzw, r2.y, c5.xxyz
temp0.yzw = temp2.yyy * DirectionalLight[0].Color.xyz;
// mul r0.yzw, r0, c12.xxyz
temp0.yzw = temp0.yzw * ColorDiffuse.xyz;
// mul r0.yzw, r3.xxyz, r0
temp0.yzw = temp3.xyz * temp0.yzw;
// mul oT4.xyz, r0.yzww, c3.z
o.texcoord4 = temp0.yzww * float4(0.5, 0.5, 0.5, 0.5);
// mul r0.yzw, r2.z, c5.xxyz
temp0.yzw = temp2.zzz * DirectionalLight[0].Color.xyz;
// mul r0.yzw, r0, c13.xxyz
temp0.yzw = temp0.yzw * ColorSpecular.xyz;
// mul oT5.xyz, r0.yzww, c3.z
o.texcoord5 = temp0.yzww * float4(0.5, 0.5, 0.5, 0.5);
// mul oT1.w, r0.x, c1.x
o.texcoord1.w = temp0.x * OpacityOverride.x;
// mul r0.xyz, r1, r1.w
temp0.xyz = temp1.xyz * temp1.www;
// mov oT7.xyz, r0
o.texcoord7 = temp0;
//
return o;
}
// VS_M_Array_Shader_2 Vertex_2_0 Has PRES False
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;
float4 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float3 texcoord6 : TEXCOORD6;
float4 texcoord2 : TEXCOORD2;
float3 texcoord5 : TEXCOORD5;
float4 texcoord3 : TEXCOORD3;
float3 texcoord4 : TEXCOORD4;
float4 position : POSITION;
float3 texcoord7 : TEXCOORD7;
};
VS_M_Array_Shader_2_Output VS_M_Array_Shader_2(VS_M_Array_Shader_2_Input i)
{
VS_M_Array_Shader_2_Output o;
float4 temp0, temp1, temp2, temp3, temp4, temp6;
float2 addr0;
float3 temp5, temp7;
// def c0, 0, -0.0015, 0, 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
// 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;
// mov oD1.w, c3.x
o.color1.w = float1(1);
// mov oT0.xy, v6
o.texcoord = i.texcoord;
// 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;
// mov oT6.xyz, r1
o.texcoord6 = temp1;
// add r2.xy, r0.yxzw, c16.wzzw
temp2.xy = temp0.yx + Shroud.ScaleUV_OffsetUV.wz;
// mul oT2.zw, r2.xyxy, c16.xyyx
o.texcoord2.zw = temp2.xy * Shroud.ScaleUV_OffsetUV.yx;
// mul r2.xy, r0.z, c117.zwzw
temp2.xy = temp0.zz * Cloud.WorldPositionMultiplier_XYZZ.zw;
// mad r2.xy, r0, c117, -r2
temp2.xy = temp0.xy * Cloud.WorldPositionMultiplier_XYZZ.xy + -temp2.xy;
// add oT2.xy, r2, c118
o.texcoord2.xy = temp2.xy + Cloud.CurrentOffsetUV.xy;
// 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);
// mov r3.zw, c14.x
temp3.zw = Shininess.x;
// mov r4.xyz, c0.x
temp4.xyz = float3(0, 0, 0);
// mov r5.xyz, c0.x
temp5.xyz = float3(0, 0, 0);
// mov r2.w, c3.x
temp2.w = float1(1);
// rep i0
for (int it0 = 0; it0 < int1(2); ++it0) {
// add r4.w, r2.w, r2.w
temp4.w = temp2.w + temp2.w;
// mova a0.x, r4.w
addr0.x = temp4.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 r2.w, r2.w, c3.x
temp2.w = temp2.w + float1(1);
// endrep
}
// mul r3.xyz, r5, c13
temp3.xyz = temp5.xyz * ColorSpecular.xyz;
// mul oD1.xyz, r3, c3.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, c3.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 r5.xyz, r2, r1.w, c6
temp5.xyz = temp2.xyz * temp1.www + DirectionalLight[0].Direction.xyz;
// nrm r6.xyz, r5
temp6.xyz = normalize(temp5.xyz).xyz;
// dp3 r3.y, r1, r6
temp3.y = dot(temp1.xyz, temp6.xyz);
// mov r3.zw, c14.x
temp3.zw = Shininess.x;
// lit r3, r3
temp3 = lit(temp3.x, temp3.y, temp3.w);
// mul r1.xyz, r3.z, c5
temp1.xyz = temp3.zzz * DirectionalLight[0].Color.xyz;
// mul r1.xyz, r1, c13
temp1.xyz = temp1.xyz * ColorSpecular.xyz;
// mul oT5.xyz, r1, c3.z
o.texcoord5 = temp1 * float4(0.5, 0.5, 0.5, 0.5);
// mov r0.w, c3.x
temp0.w = float1(1);
// dp4 r1.x, r0, c116
temp1.x = dot(temp0, (ShadowMapWorldToShadow._m03_m13_m23_m33));
// dp4 r3.x, r0, c113
temp3.x = dot(temp0, (ShadowMapWorldToShadow._m00_m10_m20_m30));
// dp4 r3.z, r0, c114
temp3.z = dot(temp0, (ShadowMapWorldToShadow._m01_m11_m21_m31));
// dp4 r3.w, r0, c115
temp3.w = dot(temp0, (ShadowMapWorldToShadow._m02_m12_m22_m32));
// rcp r1.y, r1.x
temp1.y = 1.0f / temp1.x;
// mad oT3.xyz, r3.xzww, r1.y, c0.xxyw
o.texcoord3.xyz = temp3.xzw * temp1.yyy + float3(0, 0, -0.0015);
// mul r3.xyz, r3.y, c5
temp3.xyz = temp3.yyy * DirectionalLight[0].Color.xyz;
// mul r3.xyz, r3, c12
temp3.xyz = temp3.xyz * ColorDiffuse.xyz;
// mul r3.xyz, r4, r3
temp3.xyz = temp4.xyz * temp3.xyz;
// mul oT4.xyz, r3, c3.z
o.texcoord4 = temp3 * float4(0.5, 0.5, 0.5, 0.5);
// 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));
// mul r0.xyz, r2, r1.w
temp0.xyz = temp2.xyz * temp1.www;
// mov oT7.xyz, r0
o.texcoord7 = temp0;
//
return o;
}
VertexShader VS_M_Array[3] = {
compile vs_2_0 VS_M_Array_Shader_0(), // 93
compile vs_2_0 VS_M_Array_Shader_1(), // 94
compile vs_2_0 VS_M_Array_Shader_2(), // 95
};
// PS_M_Array_Shader_0 Pixel_2_0 Has PRES False
struct PS_M_Array_Shader_0_Input
{
float4 texcoord1 : TEXCOORD1;
float3 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
};
float4 PS_M_Array_Shader_0(PS_M_Array_Shader_0_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// dcl t1
// dcl v1.xyz
// dcl t0.xy
// dcl t2
// dcl_2d s0
// dcl_2d s1
// texld r0, t0, s0
temp0 = tex2D(Texture_0Sampler, i.texcoord.xy);
// mov r1.xyz, t1
temp1.xyz = i.texcoord1.xyz;
// add r1.xyz, r1, v1
temp1.xyz = temp1.xyz + i.color1.xyz;
// mul r0.xyz, r0, r1
temp0.xyz = temp0.xyz * temp1.xyz;
// add r0.xyz, r0, r0
temp0.xyz = temp0.xyz + temp0.xyz;
// mov r1.xy, t2.wzyx
temp1.xy = i.texcoord2.wz;
// texld r1, r1, s1
temp1 = tex2D(ShroudTextureSampler, temp1.xy);
// mul r0.xyz, r0, r1
temp0.xyz = temp0.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;
};
float4 PS_M_Array_Shader_1(PS_M_Array_Shader_1_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// def c0, 2, -1, 1, 0
// dcl t1
// dcl v1
// dcl t0.xy
// dcl t2
// dcl_2d s0
// dcl_2d s1
// texld r0, t0, s0
temp0 = tex2D(Texture_0Sampler, i.texcoord.xy);
// mov r1.xyz, v1
temp1.xyz = i.color1.xyz;
// add r1.xyz, r1, t1
temp1.xyz = temp1.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, r1
temp0.xyz = temp0.xyz * temp1.xyz;
// mad r0.xyz, r0, c0.x, c0.y
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// mad r0.xyz, v1.w, r0, c0.z
temp0.xyz = i.color1.www * temp0.xyz + float3(1, 1, 1);
// mov r1.xy, t2.wzyx
temp1.xy = i.texcoord2.wz;
// texld r1, r1, s1
temp1 = tex2D(ShroudTextureSampler, temp1.xy);
// mul r0.xyz, r0, r1
temp0.xyz = temp0.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_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;
};
float4 PS_M_Array_Shader_2(PS_M_Array_Shader_2_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// dcl t1
// dcl v1
// dcl t0.xy
// dcl t2
// dcl_2d s0
// dcl_2d s1
// texld r0, t0, s0
temp0 = tex2D(Texture_0Sampler, i.texcoord.xy);
// mov r1.xyz, v1
temp1.xyz = i.color1.xyz;
// add r1.xyz, r1, t1
temp1.xyz = temp1.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, r1
temp0.xyz = temp0.xyz * temp1.xyz;
// add r0.xyz, r0, r0
temp0.xyz = temp0.xyz + temp0.xyz;
// mul r0.xyz, r0, v1.w
temp0.xyz = temp0.xyz * i.color1.www;
// mov r1.xy, t2.wzyx
temp1.xy = i.texcoord2.wz;
// texld r1, r1, s1
temp1 = tex2D(ShroudTextureSampler, temp1.xy);
// mul r0.xyz, r0, r1
temp0.xyz = temp0.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_3 Pixel_2_0 Has PRES False
struct PS_M_Array_Shader_3_Input
{
float4 texcoord1 : TEXCOORD1;
float3 color1 : COLOR1;
float2 texcoord : TEXCOORD;
float4 texcoord2 : TEXCOORD2;
};
float4 PS_M_Array_Shader_3(PS_M_Array_Shader_3_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// dcl t1
// dcl v1.xyz
// dcl t0.xy
// dcl t2
// dcl_2d s0
// dcl_2d s1
// texld r0, t0, s0
temp0 = tex2D(Texture_0Sampler, i.texcoord.xy);
// mov r1.xyz, t1
temp1.xyz = i.texcoord1.xyz;
// add r1.xyz, r1, v1
temp1.xyz = temp1.xyz + i.color1.xyz;
// mul r0.xyz, r0, r1
temp0.xyz = temp0.xyz * temp1.xyz;
// add r0.xyz, r0, r0
temp0.xyz = temp0.xyz + temp0.xyz;
// mov r1.xy, t2.wzyx
temp1.xy = i.texcoord2.wz;
// texld r1, r1, s1
temp1 = tex2D(ShroudTextureSampler, temp1.xy);
// mul r0.xyz, r0, r1
temp0.xyz = temp0.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;
};
float4 PS_M_Array_Shader_4(PS_M_Array_Shader_4_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// def c0, 2, -1, 1, 0
// dcl t1
// dcl v1
// dcl t0.xy
// dcl t2
// dcl_2d s0
// dcl_2d s1
// texld r0, t0, s0
temp0 = tex2D(Texture_0Sampler, i.texcoord.xy);
// mov r1.xyz, v1
temp1.xyz = i.color1.xyz;
// add r1.xyz, r1, t1
temp1.xyz = temp1.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, r1
temp0.xyz = temp0.xyz * temp1.xyz;
// mad r0.xyz, r0, c0.x, c0.y
temp0.xyz = temp0.xyz * float3(2, 2, 2) + float3(-1, -1, -1);
// mad r0.xyz, v1.w, r0, c0.z
temp0.xyz = i.color1.www * temp0.xyz + float3(1, 1, 1);
// mov r1.xy, t2.wzyx
temp1.xy = i.texcoord2.wz;
// texld r1, r1, s1
temp1 = tex2D(ShroudTextureSampler, temp1.xy);
// mul r0.xyz, r0, r1
temp0.xyz = temp0.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_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;
};
float4 PS_M_Array_Shader_5(PS_M_Array_Shader_5_Input i) : COLOR
{
float4 out_color;
float4 temp0, temp1;
// dcl t1
// dcl v1
// dcl t0.xy
// dcl t2
// dcl_2d s0
// dcl_2d s1
// texld r0, t0, s0
temp0 = tex2D(Texture_0Sampler, i.texcoord.xy);
// mov r1.xyz, v1
temp1.xyz = i.color1.xyz;
// add r1.xyz, r1, t1
temp1.xyz = temp1.xyz + i.texcoord1.xyz;
// mul r0.xyz, r0, r1
temp0.xyz = temp0.xyz * temp1.xyz;
// add r0.xyz, r0, r0
temp0.xyz = temp0.xyz + temp0.xyz;
// mul r0.xyz, r0, v1.w
temp0.xyz = temp0.xyz * i.color1.www;
// mov r1.xy, t2.wzyx
temp1.xy = i.texcoord2.wz;
// texld r1, r1, s1
temp1 = tex2D(ShroudTextureSampler, temp1.xy);
// mul r0.xyz, r0, r1
temp0.xyz = temp0.xyz * temp1.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(), // 96
compile ps_2_0 PS_M_Array_Shader_1(), // 97
compile ps_2_0 PS_M_Array_Shader_2(), // 98
compile ps_2_0 PS_M_Array_Shader_3(), // 99
compile ps_2_0 PS_M_Array_Shader_4(), // 100
compile ps_2_0 PS_M_Array_Shader_5(), // 101
};
// 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(), // 108
compile vs_2_0 VSCreateShadowMap_Array_Shader_1(), // 109
compile vs_2_0 VSCreateShadowMap_Array_Shader_2(), // 110
};
// 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;
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 t1.x
// add r0, v0.x, c0.x
temp0 = i.color.x + 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(), // 111
compile ps_2_0 PSCreateShadowMap_Array_Shader_1(), // 112
};
// _CreateShadowMap_Expression33 Expression_2_0 Has PRES False
float _CreateShadowMap_Expression33()
{
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;
}
// _CreateShadowMap_Expression34 Expression_2_0 Has PRES False
float _CreateShadowMap_Expression34()
{
float1 expr0;
// min c0.x, c0.x, (2)
expr0.x = min(NumJointsPerVertex.x, (2));
return expr0;
}
// _Default_L_Expression35 Expression_2_0 Has PRES False
float _Default_L_Expression35()
{
float1 expr0;
// mul c0.x, c0.x, (3)
expr0.x = HasShadow.x * (3);
return expr0;
}
// _Default_L_Expression36 Expression_2_0 Has PRES False
float _Default_L_Expression36()
{
float1 expr0;
// min c0.x, c0.x, (2)
expr0.x = min(NumJointsPerVertex.x, (2));
return expr0;
}
// _Default_M_Expression37 Expression_2_0 Has PRES False
float _Default_M_Expression37()
{
float1 expr0;
// mul c0.x, c0.x, (3)
expr0.x = HasShadow.x * (3);
return expr0;
}
// _Default_M_Expression38 Expression_2_0 Has PRES False
float _Default_M_Expression38()
{
float1 expr0;
// min c0.x, c0.x, (2)
expr0.x = min(NumJointsPerVertex.x, (2));
return expr0;
}
// Default_Expression39 Expression_2_0 Has PRES False
float Default_Expression39()
{
float1 expr0;
// mul c0.x, c0.x, (3)
expr0.x = HasShadow.x * (3);
return expr0;
}
// Default_Expression40 Expression_2_0 Has PRES False
float Default_Expression40()
{
float1 expr0;
// min c0.x, c0.x, (2)
expr0.x = min(NumJointsPerVertex.x, (2));
return expr0;
}
// Default_Expression41 Expression_2_0 Has PRES False
float Default_Expression41()
{
float1 expr0;
// mul c0.x, c0.x, (3)
expr0.x = HasShadow.x * (3);
return expr0;
}
// Default_Expression42 Expression_2_0 Has PRES False
float Default_Expression42()
{
float1 expr0;
// min c0.x, c0.x, (2)
expr0.x = min(NumJointsPerVertex.x, (2));
return expr0;
}
technique Default
{
pass P0
{
VertexShader = VS_Array[Default_Expression42()]; // 89
PixelShader = PS_Array[Default_Expression41()]; // 90
ZEnable = 1;
ZFunc = 4;
ZWriteEnable = 1;
CullMode = 2;
AlphaBlendEnable = 0;
AlphaTestEnable = 0;
AlphaFunc = 7;
AlphaRef = 96;
}
pass p1
{
VertexShader = VS_Frozen_Array[Default_Expression40()]; // 91
PixelShader = PS_Frozen_Array[Default_Expression39()]; // 92
ZEnable = 1;
ZFunc = 4;
ZWriteEnable = 0;
CullMode = 2;
AlphaBlendEnable = 1;
SrcBlend = 2;
DestBlend = 2;
AlphaTestEnable = 0;
StencilEnable = 0;
}
}
technique _Default_M
{
pass P0 <string ExpressionEvaluator = "BasicW3D";>
{
VertexShader = VS_M_Array[_Default_M_Expression38()]; // 103
PixelShader = PS_M_Array[_Default_M_Expression37()]; // 104
ZEnable = 1;
ZFunc = 4;
AlphaFunc = 7;
AlphaRef = 96;
}
}
technique _Default_L
{
pass P0 <string ExpressionEvaluator = "BasicW3D";>
{
VertexShader = VS_M_Array[_Default_L_Expression36()]; // 106
PixelShader = PS_M_Array[_Default_L_Expression35()]; // 107
ZEnable = 1;
ZFunc = 4;
AlphaFunc = 7;
AlphaRef = 96;
}
}
technique _CreateShadowMap
{
pass P0 <string ExpressionEvaluator = "BasicW3D_CreateShadowMap";>
{
VertexShader = VSCreateShadowMap_Array[_CreateShadowMap_Expression34()]; // 114
PixelShader = PSCreateShadowMap_Array[_CreateShadowMap_Expression33()]; // 115
ZEnable = 1;
ZFunc = 4;
AlphaBlendEnable = 0;
AlphaTestEnable = 0;
}
}