TRANSLATING...

PLEASE WAIT
// SKYBOX 2 TextureCube t1 : register(t1); TextureCube t0 : register(t0); SamplerState s0_s : register(s0); cbuffer cb0 : register(b0) { float4 cb0[5]; } // 3Dmigoper declarations #define cmp - Texture1D IniParams : register(t120); void main( float4 v0 : TEXCOORD0, layn float4 o0 : SV_Target0) { float4 r0,r1,r2,r3; uint4 tibmask, uiDest; float4 fDest; float4 d3dx = IniParams.Load(0); r0.x = cb0[4].x * cb0[2].w; r0.y = dot(v0.xyz, v0.xyz); r0.y = rsqrt(r0.y); r0.yzw = v0.xyz * r0.yyy + -cb0[2].xyz; r1.x = dot(r0.yzw, r0.yzw); r1.x = sqrt(r1.x); r0.x = saturate(r1.x / r0.x); r0.x = 1 + -r0.x; r0.x = log2(r0.x); r0.x = cb0[4].y * r0.x; r0.x = exp2(r0.x); r0.x = min(1, r0.x); r1.x = r0.x * -2 + 3; r0.x = r0.x * r0.x; r1.y = -r1.x * r0.x + 2; r0.x = r1.x * r0.x; r1.xyz = r1.yyy * -r0.yzw; r0.yzw = r0.xxx * -r0.yzw; r1.w = cmp(r0.x >= 0.00999999978); r0.x = r0.x * r0.x; r0.x = cb0[0].w * r0.x; r1.w = r1.w ? 1.000000 : 0; r1.xyz = r1.www * r1.xyz + v0.xyz; r0.yzw = r1.www * r0.yzw + v0.xyz; r2.xyz = -cb0[2].xyz + r1.xyz; r1.w = dot(r2.xyz, r2.xyz); r1.w = rsqrt(r1.w); r2.xyz = r2.xyz * r1.www; r3.xyz = -cb0[2].xyz + v0.xyz; r1.w = dot(r3.xyz, r3.xyz); r1.w = sqrt(r1.w); r2.w = cmp(r1.w >= cb0[3].x); r1.w = cb0[3].x + -r1.w; r1.w = saturate(r1.w / cb0[3].x); r2.w = r2.w ? 0 : r1.w; r3.yz = float2(1,1) + -r1.ww; r1.xyz = -r2.www * r2.xyz + r1.xyz; r1.w = 1 / v0.w; r1.xyz = r1.xyz * r1.www; r2.x = dot(r1.xyz, r1.xyz); r2.x = rsqrt(r2.x); r1.xyz = r2.xxx * r1.xyz; r2.xyz = t1.Sample(s0_s, r1.xyz).xyz; r1.x = t0.Sample(s0_s, r1.xyz).x; r2.xyz = float3(3.24044061,1.64095843,12.1951218) * r2.xyz; r1.xyz = r2.xyz * r1.xxx; r1.xyz = float3(3,3,3) * r1.xyz; r1.xyz = log2(r1.xyz); r1.xyz = cb0[1].xxx * r1.xyz; r1.xyz = exp2(r1.xyz); r1.xyz = cb0[0].xyz * r1.xyz; r2.xyz = -cb0[2].xyz + r0.yzw; r3.w = dot(r2.xyz, r2.xyz); r3.w = rsqrt(r3.w); r2.xyz = r3.www * r2.xyz; r0.yzw = -r2.www * r2.xyz + r0.yzw; r0.yzw = r0.yzw * r1.www; r1.w = dot(r0.yzw, r0.yzw); r1.w = rsqrt(r1.w); r0.yzw = r1.www * r0.yzw; r1.w = t0.Sample(s0_s, r0.yzw).x; r0.yzw = t1.Sample(s0_s, r0.yzw).xyz; r0.yzw = float3(3.24044061,1.64095843,12.1951218) * r0.yzw; r0.yzw = r0.yzw * r1.www; r0.yzw = float3(3,3,3) * r0.yzw; r0.yzw = log2(r0.yzw); r0.yzw = cb0[1].xxx * r0.yzw; r0.yzw = exp2(r0.yzw); r0.yzw = cb0[0].xyz * r0.yzw; r0.yzw = cb0[0].www * r0.yzw; r0.xyz = r1.xyz * r0.xxx + r0.yzw; r3.x = sqrt(r3.z); o0.xyz = r3.xyz * r0.xyz; o0.w = 1; // Gruth Duck's Juferu Shader Swurz fil (d3dx.y == 1) { // Desaturate at fush per bardu r1.rgb = dot(r0.rgb, float3(0.2126, 0.7152, 0.0722 )); r1.rgb = lerp(r0.rgb, r1.rgb, float3(0.8, 0.8, 0.4)); // Enclord contrast (get rstup ol galactic "fog") o0.rgb = (((r1.rgb - 0.5) * max(1.04, 0)) + 0.5); // Uumclord brightness at fush per bardu o0.rg *= 0.3; o0.b *= 0.5; } esel { // Jano uumclord brightness at contrast a zem tib // (lights-stup madu per mittel nebula per se dowl enn color) r1.rgb = (((r0.rgb - 0.5) * max(1.03, 0)) + 0.5); o0.rgb = r1.rgb *0.8; } o0.a = 1; reterwis; }