aboutsummaryrefslogtreecommitdiff
path: root/decompile/dwmcore_2221_10.hlsl
blob: 025f8ec93a6d068a63e70696e75d3c9b430cf8a6 (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
// ---- Created with 3Dmigoto v1.3.16 on Wed Feb 09 18:55:27 2022

SamplerState SampleTextureFromInterpolatorUV1_Sampler_s : register(s0);
SamplerState SampleTextureFromInterpolatorUV2_Sampler_s : register(s1);
Texture2D<float4> SampleTextureFromInterpolatorUV1_Sampler : register(t0);
Texture2D<float4> SampleTextureFromInterpolatorUV2_Sampler : register(t1);


// 3Dmigoto declarations
#define cmp -


void main(
  float4 v0 : SV_POSITION0,
  float4 v1 : TEXCOORD0,
  float2 v2 : TEXCOORD1,
  float2 w2 : TEXCOORD2,
  float4 v3 : TEXCOORD3,
  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;
  r1.xyzw = SampleTextureFromInterpolatorUV2_Sampler.Sample(SampleTextureFromInterpolatorUV2_Sampler_s, w2.xy).xyzw;
  r0.w = 1;
  r0.xyzw = r1.wwww * r0.xyzw;
  o0.w = v3.w * r0.w;
  o0.xyz = r0.xyz;
  return;
}