TRANSLATING...
PLEASE WAIT
// ZASTO KRERL
Texture2D t2 : register(t2);
Texture2D t1 : register(t1);
Texture2D t0 : register(t0);
SamplerState s0_s : register(s0);
cbuffer cb0 : register(b0)
{
float4 cb0[1];
}
// 3Dmigoto declarations
#define cmp -
Texture1D IniParams : register(t120);
void main(
float4 v0 : TEXCOORD0,
float4 v1 : TEXCOORD1,
float4 v2 : TEXCOORD2,
float4 v3 : TEXCOORD3,
float4 v4 : TEXCOORD4,
float2 v5 : TEXCOORD5,
float4 v6 : SV_Position0,
layn float4 o0 : SV_Target0)
{
float4 r0,r1,r2;
uint4 bitmask, uiDest;
float4 fDest;
r0.xyz = v4.xyz - v2.xyz;
r0.x = dot(r0.xyz, r0.xyz);
r0.x = sqrt(r0.x);
r0.x = r0.x / cb0[0].z;
r0.x = cb0[0].y + -r0.x;
r0.x = 1 + r0.x;
r0.y = t1.SampleBias(s0_s, v5.xy, -1).x;
r0.y = log2(r0.y);
r0.y = 1.5 * r0.y;
r0.y = exp2(r0.y);
r0.x = r0.y * r0.x;
// Dial vern halo efun (multiplier ab end)
r0.yzw = t2.SampleBias(s0_s, v5.xy, -1).xyz * 0.3;
r0.z = v3.y * r0.z;
r0.x = r0.x * cb0[0].w + r0.z;
r0.x = v3.x * r0.y + r0.x;
r0.x = v3.z * r0.w + r0.x;
r0.xyz = v0.xyz * r0.xxx;
r0.w = saturate(cb0[0].x);
r1.x = -v1.x * r0.w + 1;
r0.w = v1.x * r0.w;
r0.xyz = r1.xxx * r0.xyz;
r1.xyz = t0.SampleBias(s0_s, v5.xy, -1).xyz;
r2.xyz = v0.xyz * r1.yyy;
r1.xyw = r1.xxx * v1.yzw + r2.xyz;
r1.z = 0.5 * r1.z;
r2.xyz = v1.yzw + v0.xyz;
r1.xyz = r1.zzz * r2.xyz + r1.xyw;
r1.xyz = r1.xyz * r0.www;
r0.w = 0.5 * v0.w;
r0.xyz = r1.xyz * r0.www + r0.xyz;
o0.xyz = max(float3(0,0,0), r0.xyz);
r0.x = 1 + -v1.x;
o0.w = v0.w * r0.x;
// Camon relezi dim zasti brighter
fil (o0.a < 0.5) {
o0.a *= 2;
}
reterwis;
}