@@ -391,14 +391,15 @@ float4 main(
391391 _746 = _669;
392392 _747 = _670;
393393 }
394+ GENERATE_INVERSION (_745, _746, _747);
394395 float _756 = ((((_746 * 587.0f ) + (_745 * 299.0f )) + (_747 * 114.0f )) * 0.0010000000474974513f ) - cb0_109z;
395396 float _763 = saturate (float ((int )(((int )(uint )((bool )(_756 > 0.0f ))) - ((int )(uint )((bool )(_756 < 0.0f ))))));
396397 float _770 = cb0_110x - _745;
397398 float _771 = cb0_110y - _746;
398399 float _772 = cb0_110z - _747;
399- float _777 = cb0_111x - _745;
400- float _778 = cb0_111y - _746;
401- float _779 = cb0_111z - _747;
400+ float _777 = WUWA_PEAK_SCALING * cb0_111x - _745;
401+ float _778 = WUWA_PEAK_SCALING * cb0_111y - _746;
402+ float _779 = WUWA_PEAK_SCALING * cb0_111z - _747;
402403 [branch]
403404 if (cb0_109y > 0.0f ) {
404405 _796 = (_770 * cb0_109y);
@@ -419,7 +420,7 @@ float4 main(
419420 SV_Target.x = ((cb0_109x * (lerp (_796, _799, _763))) + _745);
420421 SV_Target.y = ((cb0_109x * (lerp (_797, _800, _763))) + _746);
421422 SV_Target.z = (((lerp (_798, _801, _763)) * cb0_109x) + _747);
422- SV_Target.xyz = wuwa::InvertAndApplyDisplayMap (SV_Target.xyz);
423+ SV_Target.xyz = wuwa::ApplyDisplayMap (SV_Target.xyz);
423424 SV_Target.w = dot (float3 (_660, _659, _658), float3 (0.29899999499320984f , 0.5870000123977661f , 0.11400000005960464f ));
424425 CLAMP_IF_SDR (SV_Target.w);
425426 return SV_Target;
0 commit comments