aboutsummaryrefslogtreecommitdiff
path: root/decompile/dwmcore_2224_10.hlsl
blob: d859336dddb43dff0a7dbdc0844622db8ade5453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// ---- Created with 3Dmigoto v1.3.16 on Wed Feb 09 18:55:27 2022

cbuffer cbPSUpdateEveryCall : register(b0)
{

  struct
  {

    struct
    {
      float4x4 mat4x4;
      float4 matRow4;
    } TransformColor_PS2_ConstantTable;

  } Data_PS : packoffset(c0);

}

SamplerState SampleTextureFromInterpolatorUV1_Sampler_s : register(s0);
Texture2D<float4> SampleTextureFromInterpolatorUV1_Sampler : register(t0);


// 3Dmigoto declarations
#define cmp -


void main(
  float4 v0 : SV_POSITION0,
  float4 v1 : TEXCOORD0,
  float4 v2 : TEXCOORD1,
  float4 v3 : TEXCOORD2,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyzw = SampleTextureFromInterpolatorUV1_Sampler.Sample(SampleTextureFromInterpolatorUV1_Sampler_s, v2.xy).xyzw;
  r0.xyz = saturate(r0.xyz);
  r1.xyz = log2(r0.xyz);
  r1.xyz = float3(0.416666657,0.416666657,0.416666657) * r1.xyz;
  r1.xyz = exp2(r1.xyz);
  r1.xyz = r1.xyz * float3(1.05499995,1.05499995,1.05499995) + float3(-0.0549999997,-0.0549999997,-0.0549999997);
  r2.xyz = cmp(float3(0.00313080009,0.00313080009,0.00313080009) >= r0.xyz);
  r0.xyz = float3(12.9200001,12.9200001,12.9200001) * r0.xyz;
  r0.xyz = r2.xyz ? r0.xyz : r1.xyz;
  r0.w = 1;
  r1.x = dot(r0.xyzw, Data_PS.TransformColor_PS2_ConstantTable.mat4x4._m00_m10_m20_m30);
  r1.y = dot(r0.xyzw, Data_PS.TransformColor_PS2_ConstantTable.mat4x4._m01_m11_m21_m31);
  r1.z = dot(r0.xyzw, Data_PS.TransformColor_PS2_ConstantTable.mat4x4._m02_m12_m22_m32);
  r1.w = dot(r0.xyzw, Data_PS.TransformColor_PS2_ConstantTable.mat4x4._m03_m13_m23_m33);
  r0.xyzw = Data_PS.TransformColor_PS2_ConstantTable.matRow4.xyzw + r1.xyzw;
  o0.w = v3.w * r0.w;
  o0.xyz = r0.xyz;
  return;
}