daily pastebin goal
2%
SHARE
TWEET

Ace Combat AH d3d9.tracelog

a guest Jan 18th, 2015 262 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 18/01/2015 14:01:12,555 | INFO  | Initializing Crosire's ReShade version '0.13.0.653' built on '2015-01-17 21:50:50' loaded from "G:\Program Files (x86)\ACE COMBAT ASSAULT HORIZON Enhanced Edition\d3d9.dll" to "G:\Program Files (x86)\ACE COMBAT ASSAULT HORIZON Enhanced Edition\Ace Combat_AH.exe" ...
  2. 18/01/2015 14:01:12,555 | TRACE | Installing hook for '0x75E7499F' with '0x670F84B0' using method 1 ...
  3. 18/01/2015 14:01:12,555 | TRACE | > Succeeded.
  4. 18/01/2015 14:01:12,555 | TRACE | Installing hook for '0x75E748F3' with '0x670F86D0' using method 1 ...
  5. 18/01/2015 14:01:12,555 | TRACE | > Succeeded.
  6. 18/01/2015 14:01:12,555 | INFO  | Registering hooks for "C:\Windows\system32\d3d8.dll" ...
  7. 18/01/2015 14:01:12,555 | INFO  | > Delayed.
  8. 18/01/2015 14:01:12,555 | INFO  | Registering hooks for "C:\Windows\system32\d3d9.dll" ...
  9. 18/01/2015 14:01:12,555 | INFO  | > Delayed.
  10. 18/01/2015 14:01:12,555 | INFO  | Registering hooks for "C:\Windows\system32\d3d10.dll" ...
  11. 18/01/2015 14:01:12,555 | INFO  | > Delayed.
  12. 18/01/2015 14:01:12,555 | INFO  | Registering hooks for "C:\Windows\system32\d3d10_1.dll" ...
  13. 18/01/2015 14:01:12,555 | INFO  | > Delayed.
  14. 18/01/2015 14:01:12,555 | INFO  | Registering hooks for "C:\Windows\system32\d3d11.dll" ...
  15. 18/01/2015 14:01:12,555 | INFO  | > Delayed.
  16. 18/01/2015 14:01:12,555 | INFO  | Registering hooks for "C:\Windows\system32\dxgi.dll" ...
  17. 18/01/2015 14:01:12,555 | INFO  | > Delayed.
  18. 18/01/2015 14:01:12,555 | INFO  | Registering hooks for "C:\Windows\system32\opengl32.dll" ...
  19. 18/01/2015 14:01:12,555 | INFO  | > Delayed.
  20. 18/01/2015 14:01:12,555 | INFO  | Registering hooks for "C:\Windows\system32\ws2_32.dll" ...
  21. 18/01/2015 14:01:12,555 | INFO  | > Libraries loaded.
  22. 18/01/2015 14:01:12,555 | TRACE | > Analyzing export table:
  23. 18/01/2015 14:01:12,555 | TRACE |   +--------------------+---------+----------------------------------------------------+
  24. 18/01/2015 14:01:12,555 | TRACE |   | Address            | Ordinal | Name                                               |
  25. 18/01/2015 14:01:12,555 | TRACE |   +--------------------+---------+----------------------------------------------------+
  26. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8E14D |      25 | FreeAddrInfoEx                                     |
  27. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8E14D |      26 | FreeAddrInfoExW                                    |
  28. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F84B1B |      27 | FreeAddrInfoW                                      |
  29. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9469B |      28 | GetAddrInfoExA                                     |
  30. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8D1EA |      29 | GetAddrInfoExW                                     |
  31. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F84889 |      30 | GetAddrInfoW                                       |
  32. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F866AF |      31 | GetNameInfoW                                       |
  33. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F93ABF |      32 | InetNtopW                                          |
  34. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F939DC |      33 | InetPtonW                                          |
  35. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F945F7 |      34 | SetAddrInfoExA                                     |
  36. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8F4F6 |      35 | SetAddrInfoExW                                     |
  37. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9E764 |     500 | WEP                                                |
  38. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9E39B |      36 | WPUCompleteOverlappedRequest                       |
  39. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F868D6 |      37 | WSAAccept                                          |
  40. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8331E |      38 | WSAAddressToStringA                                |
  41. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F86CF6 |      39 | WSAAddressToStringW                                |
  42. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA0509 |      40 | WSAAdvertiseProvider                               |
  43. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9736B |     102 | WSAAsyncGetHostByAddr                              |
  44. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9726A |     103 | WSAAsyncGetHostByName                              |
  45. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9744E |     105 | WSAAsyncGetProtoByName                             |
  46. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9754F |     104 | WSAAsyncGetProtoByNumber                           |
  47. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F970A7 |     107 | WSAAsyncGetServByName                              |
  48. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F971AE |     106 | WSAAsyncGetServByPort                              |
  49. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9B014 |     101 | WSAAsyncSelect                                     |
  50. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F97602 |     108 | WSACancelAsyncRequest                              |
  51. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F95343 |     113 | WSACancelBlockingCall                              |
  52. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F83C5F |     116 | WSACleanup                                         |
  53. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8651F |      41 | WSACloseEvent                                      |
  54. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8CC3F |      42 | WSAConnect                                         |
  55. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9BFDD |      43 | WSAConnectByList                                   |
  56. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9C8B6 |      44 | WSAConnectByNameA                                  |
  57. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9C52F |      45 | WSAConnectByNameW                                  |
  58. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F864FB |      46 | WSACreateEvent                                     |
  59. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F961B6 |      47 | WSADuplicateSocketA                                |
  60. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F96128 |      48 | WSADuplicateSocketW                                |
  61. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F99FC1 |      49 | WSAEnumNameSpaceProvidersA                         |
  62. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9A021 |      50 | WSAEnumNameSpaceProvidersExA                       |
  63. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9A081 |      58 | WSAEnumNameSpaceProvidersExW                       |
  64. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8D8D3 |      59 | WSAEnumNameSpaceProvidersW                         |
  65. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F831B1 |      60 | WSAEnumNetworkEvents                               |
  66. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9627F |      61 | WSAEnumProtocolsA                                  |
  67. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8C8E1 |      62 | WSAEnumProtocolsW                                  |
  68. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8648F |      63 | WSAEventSelect                                     |
  69. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F837AD |     111 | WSAGetLastError                                    |
  70. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F87489 |      64 | WSAGetOverlappedResult                             |
  71. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F99B68 |      65 | WSAGetQOSByName                                    |
  72. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9AA00 |      66 | WSAGetServiceClassInfoA                            |
  73. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9A849 |      67 | WSAGetServiceClassInfoW                            |
  74. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9A44D |      68 | WSAGetServiceClassNameByClassIdA                   |
  75. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9A651 |      69 | WSAGetServiceClassNameByClassIdW                   |
  76. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F93B24 |      70 | WSAHtonl                                           |
  77. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F93C11 |      71 | WSAHtons                                           |
  78. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9A981 |      72 | WSAInstallServiceClassA                            |
  79. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9A277 |      73 | WSAInstallServiceClassW                            |
  80. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F82FE7 |      74 | WSAIoctl                                           |
  81. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F953BE |     114 | WSAIsBlocking                                      |
  82. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9CA7D |      75 | WSAJoinLeaf                                        |
  83. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8A642 |      76 | WSALookupServiceBeginA                             |
  84. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8575A |      77 | WSALookupServiceBeginW                             |
  85. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F85239 |      78 | WSALookupServiceEnd                                |
  86. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8A27B |      79 | WSALookupServiceNextA                              |
  87. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F84CBC |      80 | WSALookupServiceNextW                              |
  88. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8EF85 |      81 | WSANSPIoctl                                        |
  89. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F93B24 |      82 | WSANtohl                                           |
  90. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F93C11 |      83 | WSANtohs                                           |
  91. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9B0A5 |      84 | WSAPoll                                            |
  92. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA0B79 |      85 | WSAProviderCompleteAsyncCall                       |
  93. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8C22E |      86 | WSAProviderConfigChange                            |
  94. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F87089 |      87 | WSARecv                                            | <
  95. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F99DBD |      88 | WSARecvDisconnect                                  |
  96. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8CBA6 |      89 | WSARecvFrom                                        | <
  97. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9A362 |      90 | WSARemoveServiceClass                              |
  98. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8CDC3 |      91 | WSAResetEvent                                      |
  99. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F84406 |      92 | WSASend                                            | <
  100. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9B281 |      93 | WSASendDisconnect                                  |
  101. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9B3CB |      94 | WSASendMsg                                         |
  102. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9B30C |      95 | WSASendTo                                          | <
  103. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9543D |     109 | WSASetBlockingHook                                 |
  104. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8CDD4 |      96 | WSASetEvent                                        |
  105. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F837D9 |     112 | WSASetLastError                                    |
  106. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9AA92 |      97 | WSASetServiceA                                     |
  107. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8F606 |      98 | WSASetServiceW                                     |
  108. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8C82A |      99 | WSASocketA                                         |
  109. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F83CD3 |     100 | WSASocketW                                         |
  110. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F83AB2 |     115 | WSAStartup                                         |
  111. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8ED31 |     117 | WSAStringToAddressA                                |
  112. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F86DDD |     118 | WSAStringToAddressW                                |
  113. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA0643 |     119 | WSAUnadvertiseProvider                             |
  114. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F954C1 |     110 | WSAUnhookBlockingHook                              |
  115. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8650E |     120 | WSAWaitForMultipleEvents                           |
  116. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9E546 |      24 | WSApSetPostRoutine                                 |
  117. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9D775 |     121 | WSCDeinstallProvider                               |
  118. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F993AC |     122 | WSCEnableNSProvider                                |
  119. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8B8CF |     123 | WSCEnumProtocols                                   |
  120. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9DF81 |     124 | WSCGetApplicationCategory                          |
  121. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9D961 |     125 | WSCGetProviderInfo                                 |
  122. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8C64E |     126 | WSCGetProviderPath                                 |
  123. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F996A9 |     127 | WSCInstallNameSpace                                |
  124. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F99859 |     128 | WSCInstallNameSpaceEx                              |
  125. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9D751 |     129 | WSCInstallProvider                                 |
  126. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F98793 |     130 | WSCInstallProviderAndChains                        |
  127. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9DB99 |     131 | WSCSetApplicationCategory                          |
  128. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9D1D1 |     132 | WSCSetProviderInfo                                 |
  129. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F99A11 |     133 | WSCUnInstallNameSpace                              |
  130. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9CE2D |     134 | WSCUpdateProvider                                  |
  131. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F99571 |     135 | WSCWriteNameSpaceOrder                             |
  132. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F9D099 |     136 | WSCWriteProviderOrder                              |
  133. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8AA67 |     137 | WahCloseApcHelper                                  |
  134. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA272D |     138 | WahCloseHandleHelper                               |
  135. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA3261 |     139 | WahCloseNotificationHandleHelper                   |
  136. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA2772 |     140 | WahCloseSocketHandle                               |
  137. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F832C4 |     141 | WahCloseThread                                     |
  138. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA27C1 |     142 | WahCompleteRequest                                 |
  139. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F87E65 |     143 | WahCreateHandleContextTable                        |
  140. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8C3CB |     144 | WahCreateNotificationHandle                        |
  141. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA3080 |     145 | WahCreateSocketHandle                              |
  142. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8F268 |     146 | WahDestroyHandleContextTable                       |
  143. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA29FD |     147 | WahDisableNonIFSHandleSupport                      |
  144. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA284F |     148 | WahEnableNonIFSHandleSupport                       |
  145. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8AA97 |     149 | WahEnumerateHandleContexts                         |
  146. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8412B |     150 | WahInsertHandleContext                             |
  147. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA32C3 |     152 | WahNotifyAllProcesses                              |
  148. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F88483 |     153 | WahOpenApcHelper                                   |
  149. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F836A7 |     154 | WahOpenCurrentThread                               |
  150. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA2CB2 |     155 | WahOpenHandleHelper                                |
  151. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8C1FA |     156 | WahOpenNotificationHandleHelper                    |
  152. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA2096 |     157 | WahQueueUserApc                                    |
  153. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F82F20 |     158 | WahReferenceContextByHandle                        |
  154. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F839B0 |     159 | WahRemoveHandleContext                             |
  155. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8C2F0 |     160 | WahWaitForNotification                             |
  156. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075FA3665 |     161 | WahWriteLSPEvent                                   |
  157. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F86A8A |     151 | __WSAFDIsSet                                       |
  158. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F868B6 |       1 | accept                                             |
  159. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F84582 |       2 | bind                                               |
  160. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F83918 |       3 | closesocket                                        |
  161. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F86BDD |       4 | connect                                            |
  162. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F84B1B |     162 | freeaddrinfo                                       |
  163. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F84296 |     163 | getaddrinfo                                        |
  164. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F96C01 |      51 | gethostbyaddr                                      |
  165. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F97673 |      52 | gethostbyname                                      |
  166. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8A05B |      57 | gethostname                                        |
  167. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F867B7 |     164 | getnameinfo                                        |
  168. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F87147 |       5 | getpeername                                        |
  169. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F968B3 |      53 | getprotobyname                                     |
  170. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F967C4 |      54 | getprotobynumber                                   |
  171. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F96EF3 |      55 | getservbyname                                      |
  172. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F96D62 |      56 | getservbyport                                      |
  173. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F830AF |       6 | getsockname                                        |
  174. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8737D |       7 | getsockopt                                         |
  175. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F82D57 |       8 | htonl                                              |
  176. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F82D8B |       9 | htons                                              |
  177. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8311B |      11 | inet_addr                                          |
  178. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8B131 |      12 | inet_ntoa                                          |
  179. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F93A5A |     165 | inet_ntop                                          |
  180. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F93969 |     166 | inet_pton                                          |
  181. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F83084 |      10 | ioctlsocket                                        |
  182. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8B001 |      13 | listen                                             |
  183. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F82D57 |      14 | ntohl                                              |
  184. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F82D8B |      15 | ntohs                                              |
  185. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F86B0E |      16 | recv                                               | <
  186. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8B6DC |      17 | recvfrom                                           | <
  187. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F86989 |      18 | select                                             |
  188. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F86F01 |      19 | send                                               | <
  189. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F834B5 |      20 | sendto                                             | <
  190. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F841B6 |      21 | setsockopt                                         |
  191. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F8449D |      22 | shutdown                                           |
  192. 18/01/2015 14:01:12,555 | TRACE |   | 0x0000000075F83EB8 |      23 | socket                                             |
  193. 18/01/2015 14:01:12,555 | TRACE |   +--------------------+---------+----------------------------------------------------+
  194. 18/01/2015 14:01:12,555 | INFO  | > Found 8 match(es). Installing ...
  195. 18/01/2015 14:01:12,555 | TRACE | Installing hook for '0x75F87089' with '0x6712DAB0' using method 1 ...
  196. 18/01/2015 14:01:12,571 | TRACE | > Succeeded.
  197. 18/01/2015 14:01:12,571 | TRACE | Installing hook for '0x75F8CBA6' with '0x6712DC10' using method 1 ...
  198. 18/01/2015 14:01:12,571 | TRACE | > Succeeded.
  199. 18/01/2015 14:01:12,571 | TRACE | Installing hook for '0x75F84406' with '0x6712D9B0' using method 1 ...
  200. 18/01/2015 14:01:12,571 | TRACE | > Succeeded.
  201. 18/01/2015 14:01:12,571 | TRACE | Installing hook for '0x75F9B30C' with '0x6712DA30' using method 1 ...
  202. 18/01/2015 14:01:12,571 | TRACE | > Succeeded.
  203. 18/01/2015 14:01:12,571 | TRACE | Installing hook for '0x75F86B0E' with '0x6712D8D0' using method 1 ...
  204. 18/01/2015 14:01:12,587 | TRACE | > Succeeded.
  205. 18/01/2015 14:01:12,587 | TRACE | Installing hook for '0x75F8B6DC' with '0x6712D940' using method 1 ...
  206. 18/01/2015 14:01:12,587 | TRACE | > Succeeded.
  207. 18/01/2015 14:01:12,587 | TRACE | Installing hook for '0x75F86F01' with '0x6712D810' using method 1 ...
  208. 18/01/2015 14:01:12,587 | TRACE | > Succeeded.
  209. 18/01/2015 14:01:12,587 | TRACE | Installing hook for '0x75F834B5' with '0x6712D870' using method 1 ...
  210. 18/01/2015 14:01:12,587 | TRACE | > Succeeded.
  211. 18/01/2015 14:01:12,587 | INFO  | > Installed 8 hook(s).
  212. 18/01/2015 14:01:12,587 | INFO  | Initialized.
  213. 18/01/2015 14:01:12,602 | INFO  | Redirecting 'Direct3DCreate9(32)' ...
  214. 18/01/2015 14:01:12,602 | INFO  | Installing delayed hooks for "C:\Windows\system32\d3d9.dll" ...
  215. 18/01/2015 14:01:12,602 | TRACE | > Analyzing export table:
  216. 18/01/2015 14:01:12,602 | TRACE |   +--------------------+---------+----------------------------------------------------+
  217. 18/01/2015 14:01:12,602 | TRACE |   | Address            | Ordinal | Name                                               |
  218. 18/01/2015 14:01:12,602 | TRACE |   +--------------------+---------+----------------------------------------------------+
  219. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4E71DB |       4 | D3DPERF_BeginEvent                                 | <
  220. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4E7249 |       5 | D3DPERF_EndEvent                                   | <
  221. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4E746D |       6 | D3DPERF_GetStatus                                  | <
  222. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4E738D |       7 | D3DPERF_QueryRepeatFrame                           | <
  223. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4E72B5 |       8 | D3DPERF_SetMarker                                  | <
  224. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4E7402 |       9 | D3DPERF_SetOptions                                 | <
  225. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4E7321 |      10 | D3DPERF_SetRegion                                  | <
  226. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4E88B1 |      11 | DebugSetLevel                                      |
  227. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4766C6 |      12 | DebugSetMute                                       |
  228. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4A0A62 |      13 | Direct3DCreate9                                    | <
  229. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A44CCD5 |      14 | Direct3DCreate9Ex                                  | <
  230. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A47F5AF |       1 | Direct3DShaderValidatorCreate9                     |
  231. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4DD77B |       2 | PSGPError                                          |
  232. 18/01/2015 14:01:12,602 | TRACE |   | 0x000000006A4DD709 |       3 | PSGPSampleTexture                                  |
  233. 18/01/2015 14:01:12,602 | TRACE |   +--------------------+---------+----------------------------------------------------+
  234. 18/01/2015 14:01:12,602 | INFO  | > Found 9 match(es). Installing ...
  235. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A4E71DB' with '0x67112AE0' using method 0 ...
  236. 18/01/2015 14:01:12,602 | TRACE | > Succeeded.
  237. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A4E7249' with '0x67112AF0' using method 0 ...
  238. 18/01/2015 14:01:12,602 | TRACE | > Succeeded.
  239. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A4E746D' with '0x67112AF0' using method 0 ...
  240. 18/01/2015 14:01:12,602 | TRACE | > Succeeded.
  241. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A4E738D' with '0x67112AF0' using method 0 ...
  242. 18/01/2015 14:01:12,602 | TRACE | > Succeeded.
  243. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A4E72B5' with '0x670FC7A0' using method 0 ...
  244. 18/01/2015 14:01:12,602 | TRACE | > Succeeded.
  245. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A4E7402' with '0x671005D0' using method 0 ...
  246. 18/01/2015 14:01:12,602 | TRACE | > Succeeded.
  247. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A4E7321' with '0x670FC7A0' using method 0 ...
  248. 18/01/2015 14:01:12,602 | TRACE | > Succeeded.
  249. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A4A0A62' with '0x67112B00' using method 0 ...
  250. 18/01/2015 14:01:12,602 | TRACE | > Succeeded.
  251. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A44CCD5' with '0x67112DE0' using method 0 ...
  252. 18/01/2015 14:01:12,602 | TRACE | > Succeeded.
  253. 18/01/2015 14:01:12,602 | INFO  | > Installed 9 hook(s).
  254. 18/01/2015 14:01:12,602 | TRACE | Installing hook for '0x6A462E0E' with '0x67111CC0' using method 1 ...
  255. 18/01/2015 14:01:12,618 | TRACE | > Succeeded.
  256. 18/01/2015 14:01:12,618 | TRACE | > Returned factory object: 03A707E0
  257. 18/01/2015 14:01:12,633 | INFO  | Redirecting 'IDirect3D9::CreateDevice(03A707E0, 0, 1, 003302CC, 68, 011FDED8, 011FDED4)' ...
  258. 18/01/2015 14:01:12,633 | TRACE | > Dumping Presentation Parameters:
  259. 18/01/2015 14:01:12,633 | TRACE |   +-----------------------------------------+-----------------------------------------+
  260. 18/01/2015 14:01:12,633 | TRACE |   | Parameter                               | Value                                   |
  261. 18/01/2015 14:01:12,633 | TRACE |   +-----------------------------------------+-----------------------------------------+
  262. 18/01/2015 14:01:12,633 | TRACE |   | BackBufferWidth                         | 1680                                    |
  263. 18/01/2015 14:01:12,633 | TRACE |   | BackBufferHeight                        | 1050                                    |
  264. 18/01/2015 14:01:12,633 | TRACE |   | BackBufferFormat                        | 22                                      |
  265. 18/01/2015 14:01:12,633 | TRACE |   | BackBufferCount                         | 1                                       |
  266. 18/01/2015 14:01:12,633 | TRACE |   | MultiSampleType                         | 0                                       |
  267. 18/01/2015 14:01:12,633 | TRACE |   | MultiSampleQuality                      | 0                                       |
  268. 18/01/2015 14:01:12,633 | TRACE |   | SwapEffect                              | 1                                       |
  269. 18/01/2015 14:01:12,633 | TRACE |   | hDeviceWindow                           | 0x00000000003302CC                      |
  270. 18/01/2015 14:01:12,633 | TRACE |   | Windowed                                | 1                                       |
  271. 18/01/2015 14:01:12,633 | TRACE |   | EnableAutoDepthStencil                  | 1                                       |
  272. 18/01/2015 14:01:12,633 | TRACE |   | AutoDepthStencilFormat                  | 75                                      |
  273. 18/01/2015 14:01:12,633 | TRACE |   | Flags                                   | 0x0000000000000000                      |
  274. 18/01/2015 14:01:12,633 | TRACE |   | FullScreen_RefreshRateInHz              | 0                                       |
  275. 18/01/2015 14:01:12,633 | TRACE |   | PresentationInterval                    | 2147483648                              |
  276. 18/01/2015 14:01:12,633 | TRACE |   +-----------------------------------------+-----------------------------------------+
  277. 18/01/2015 14:01:12,649 | INFO  | Recreated effect environment on runtime 068B23C8.
  278. 18/01/2015 14:01:12,649 | TRACE | Adding depthstencil 03B04BC0 (Width: 1680, Height: 1050, Format: 75) to list of possible depth candidates ...
  279. 18/01/2015 14:01:12,649 | TRACE | > Returned device object: 068CD178
  280. 18/01/2015 14:01:13,046 | INFO  | Loading effect from "G:\Program Files (x86)\ACE COMBAT ASSAULT HORIZON Enhanced Edition\Sweet.fx" ...
  281. 18/01/2015 14:01:13,046 | TRACE | > Running preprocessor ...
  282. 18/01/2015 14:01:13,057 | TRACE | > Running parser ...
  283. 18/01/2015 14:01:13,061 | TRACE | > Running compiler ...
  284. 18/01/2015 14:01:13,062 | TRACE | > Compiling shader 'FullscreenTriangle':
  285.  
  286. uniform float4 _PIXEL_SIZE_ : register(c223);
  287. float4 __tex2Dgather(sampler2D s, float2 c) { return float4(tex2D(s, c + float2(0, 1) * _PIXEL_SIZE_.xy).r, tex2D(s, c + float2(1, 1) * _PIXEL_SIZE_.xy).r, tex2D(s, c + float2(1, 0) * _PIXEL_SIZE_.xy).r, tex2D(s, c).r); }
  288. uniform bool depthtoggle : register(c0);
  289. uniform float timer : register(c1);
  290. uniform float timeleft : register(c2);
  291. sampler2D colorGammaSampler : register(s0);
  292. sampler2D colorLinearSampler : register(s1);
  293. sampler2D depthSampler : register(s2);
  294. float4 main(in float2 tex, in float4 FinalColor)
  295. {
  296. return FinalColor;
  297. }
  298. void FullscreenTriangle(in uint id, out float4 position, out float2 texcoord)
  299. {
  300. (texcoord.x = ((id == 2) ? 2.000000f : 0.000000f));
  301. (texcoord.y = ((id == 1) ? 2.000000f : 0.000000f));
  302. (position = float4(((texcoord * float2(2.000000f, -2.000000f)) + float2(-1.000000f, 1.000000f)), 0.000000f, 1.000000f));
  303. }
  304. float FxaaLuma(in float4 rgba)
  305. {
  306. (rgba.w = dot(rgba.xyz, float3(0.299000f, 0.587000f, 0.114000f)));
  307. return rgba.w;
  308. }
  309. float4 FxaaPixelShader(in float2 pos, in sampler2D tex, in float2 fxaaQualityRcpFrame, in float4 fxaaConsoleRcpFrameOpt2, in float fxaaQualitySubpix, in float fxaaQualityEdgeThreshold, in float fxaaQualityEdgeThresholdMin)
  310. {
  311. float2 posM;
  312. (posM.x = pos.x);
  313. (posM.y = pos.y);
  314. float4 rgbyM = tex2Dlod(tex, float4(posM, 0.000000f, 0.000000f));
  315. float lumaS = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(0.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  316. float lumaE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, 0.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  317. float lumaN = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(0.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  318. float lumaW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, 0.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  319. float maxSM = max(lumaS, rgbyM.y);
  320. float minSM = min(lumaS, rgbyM.y);
  321. float maxESM = max(lumaE, maxSM);
  322. float minESM = min(lumaE, minSM);
  323. float maxWN = max(lumaN, lumaW);
  324. float minWN = min(lumaN, lumaW);
  325. float rangeMax = max(maxWN, maxESM);
  326. float rangeMin = min(minWN, minESM);
  327. float rangeMaxScaled = (rangeMax * fxaaQualityEdgeThreshold);
  328. float range = (rangeMax - rangeMin);
  329. float rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);
  330. bool earlyExit = (range < rangeMaxClamped);
  331. []if (earlyExit)
  332. return rgbyM;
  333. float lumaNW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  334. float lumaSE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  335. float lumaNE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  336. float lumaSW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  337. float lumaNS = (lumaN + lumaS);
  338. float lumaWE = (lumaW + lumaE);
  339. float subpixRcpRange = (1.000000f / range);
  340. float subpixNSWE = (lumaNS + lumaWE);
  341. float edgeHorz1 = ((-2.000000f * rgbyM.y) + lumaNS);
  342. float edgeVert1 = ((-2.000000f * rgbyM.y) + lumaWE);
  343. float lumaNESE = (lumaNE + lumaSE);
  344. float lumaNWNE = (lumaNW + lumaNE);
  345. float edgeHorz2 = ((-2.000000f * lumaE) + lumaNESE);
  346. float edgeVert2 = ((-2.000000f * lumaN) + lumaNWNE);
  347. float lumaNWSW = (lumaNW + lumaSW);
  348. float lumaSWSE = (lumaSW + lumaSE);
  349. float edgeHorz4 = ((abs(edgeHorz1) * 2.000000f) + abs(edgeHorz2));
  350. float edgeVert4 = ((abs(edgeVert1) * 2.000000f) + abs(edgeVert2));
  351. float edgeHorz3 = ((-2.000000f * lumaW) + lumaNWSW);
  352. float edgeVert3 = ((-2.000000f * lumaS) + lumaSWSE);
  353. float edgeHorz = (abs(edgeHorz3) + edgeHorz4);
  354. float edgeVert = (abs(edgeVert3) + edgeVert4);
  355. float subpixNWSWNESE = (lumaNWSW + lumaNESE);
  356. float lengthSign = fxaaQualityRcpFrame.x;
  357. bool horzSpan = (edgeHorz >= edgeVert);
  358. float subpixA = ((subpixNSWE * 2.000000f) + subpixNWSWNESE);
  359. []if (!horzSpan)
  360. (lumaN = lumaW);
  361. []if (!horzSpan)
  362. (lumaS = lumaE);
  363. []if (horzSpan)
  364. (lengthSign = fxaaQualityRcpFrame.y);
  365. float subpixB = ((subpixA * 0.083333f) - rgbyM.y);
  366. float gradientN = (lumaN - rgbyM.y);
  367. float gradientS = (lumaS - rgbyM.y);
  368. float lumaNN = (lumaN + rgbyM.y);
  369. float lumaSS = (lumaS + rgbyM.y);
  370. bool pairN = (abs(gradientN) >= abs(gradientS));
  371. float gradient = max(abs(gradientN), abs(gradientS));
  372. []if (pairN)
  373. (lengthSign = -lengthSign);
  374. float subpixC = saturate((abs(subpixB) * subpixRcpRange));
  375. float2 posB;
  376. (posB.x = posM.x);
  377. (posB.y = posM.y);
  378. float2 offNP;
  379. (offNP.x = (!horzSpan ? 0.000000f : fxaaQualityRcpFrame.x));
  380. (offNP.y = (horzSpan ? 0.000000f : fxaaQualityRcpFrame.y));
  381. []if (!horzSpan)
  382. (posB.x += (lengthSign * 0.500000f));
  383. []if (horzSpan)
  384. (posB.y += (lengthSign * 0.500000f));
  385. float2 posN;
  386. (posN.x = (posB.x - (offNP.x * 1.000000f)));
  387. (posN.y = (posB.y - (offNP.y * 1.000000f)));
  388. float2 posP;
  389. (posP.x = (posB.x + (offNP.x * 1.000000f)));
  390. (posP.y = (posB.y + (offNP.y * 1.000000f)));
  391. float subpixD = ((-2.000000f * subpixC) + 3.000000f);
  392. float lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN, 0.000000f, 0.000000f)));
  393. float subpixE = (subpixC * subpixC);
  394. float lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP, 0.000000f, 0.000000f)));
  395. []if (!pairN)
  396. (lumaNN = lumaSS);
  397. float gradientScaled = ((gradient * 1.000000f) / 4.000000f);
  398. float lumaMM = (rgbyM.y - (lumaNN * 0.500000f));
  399. float subpixF = (subpixD * subpixE);
  400. bool lumaMLTZero = (lumaMM < 0.000000f);
  401. (lumaEndN -= (lumaNN * 0.500000f));
  402. (lumaEndP -= (lumaNN * 0.500000f));
  403. bool doneN = (abs(lumaEndN) >= gradientScaled);
  404. bool doneP = (abs(lumaEndP) >= gradientScaled);
  405. []if (!doneN)
  406. (posN.x -= (offNP.x * 1.000000f));
  407. []if (!doneN)
  408. (posN.y -= (offNP.y * 1.000000f));
  409. bool doneNP = (!doneN || !doneP);
  410. []if (!doneP)
  411. (posP.x += (offNP.x * 1.000000f));
  412. []if (!doneP)
  413. (posP.y += (offNP.y * 1.000000f));
  414. []if (doneNP)
  415. {
  416. []if (!doneN)
  417. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  418. []if (!doneP)
  419. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  420. []if (!doneN)
  421. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  422. []if (!doneP)
  423. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  424. (doneN = (abs(lumaEndN) >= gradientScaled));
  425. (doneP = (abs(lumaEndP) >= gradientScaled));
  426. []if (!doneN)
  427. (posN.x -= (offNP.x * 1.000000f));
  428. []if (!doneN)
  429. (posN.y -= (offNP.y * 1.000000f));
  430. (doneNP = (!doneN || !doneP));
  431. []if (!doneP)
  432. (posP.x += (offNP.x * 1.000000f));
  433. []if (!doneP)
  434. (posP.y += (offNP.y * 1.000000f));
  435. []if (doneNP)
  436. {
  437. []if (!doneN)
  438. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  439. []if (!doneP)
  440. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  441. []if (!doneN)
  442. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  443. []if (!doneP)
  444. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  445. (doneN = (abs(lumaEndN) >= gradientScaled));
  446. (doneP = (abs(lumaEndP) >= gradientScaled));
  447. []if (!doneN)
  448. (posN.x -= (offNP.x * 1.000000f));
  449. []if (!doneN)
  450. (posN.y -= (offNP.y * 1.000000f));
  451. (doneNP = (!doneN || !doneP));
  452. []if (!doneP)
  453. (posP.x += (offNP.x * 1.000000f));
  454. []if (!doneP)
  455. (posP.y += (offNP.y * 1.000000f));
  456. []if (doneNP)
  457. {
  458. []if (!doneN)
  459. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  460. []if (!doneP)
  461. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  462. []if (!doneN)
  463. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  464. []if (!doneP)
  465. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  466. (doneN = (abs(lumaEndN) >= gradientScaled));
  467. (doneP = (abs(lumaEndP) >= gradientScaled));
  468. []if (!doneN)
  469. (posN.x -= (offNP.x * 1.000000f));
  470. []if (!doneN)
  471. (posN.y -= (offNP.y * 1.000000f));
  472. (doneNP = (!doneN || !doneP));
  473. []if (!doneP)
  474. (posP.x += (offNP.x * 1.000000f));
  475. []if (!doneP)
  476. (posP.y += (offNP.y * 1.000000f));
  477. []if (doneNP)
  478. {
  479. []if (!doneN)
  480. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  481. []if (!doneP)
  482. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  483. []if (!doneN)
  484. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  485. []if (!doneP)
  486. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  487. (doneN = (abs(lumaEndN) >= gradientScaled));
  488. (doneP = (abs(lumaEndP) >= gradientScaled));
  489. []if (!doneN)
  490. (posN.x -= (offNP.x * 1.500000f));
  491. []if (!doneN)
  492. (posN.y -= (offNP.y * 1.500000f));
  493. (doneNP = (!doneN || !doneP));
  494. []if (!doneP)
  495. (posP.x += (offNP.x * 1.500000f));
  496. []if (!doneP)
  497. (posP.y += (offNP.y * 1.500000f));
  498. []if (doneNP)
  499. {
  500. []if (!doneN)
  501. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  502. []if (!doneP)
  503. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  504. []if (!doneN)
  505. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  506. []if (!doneP)
  507. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  508. (doneN = (abs(lumaEndN) >= gradientScaled));
  509. (doneP = (abs(lumaEndP) >= gradientScaled));
  510. []if (!doneN)
  511. (posN.x -= (offNP.x * 2.000000f));
  512. []if (!doneN)
  513. (posN.y -= (offNP.y * 2.000000f));
  514. (doneNP = (!doneN || !doneP));
  515. []if (!doneP)
  516. (posP.x += (offNP.x * 2.000000f));
  517. []if (!doneP)
  518. (posP.y += (offNP.y * 2.000000f));
  519. []if (doneNP)
  520. {
  521. []if (!doneN)
  522. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  523. []if (!doneP)
  524. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  525. []if (!doneN)
  526. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  527. []if (!doneP)
  528. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  529. (doneN = (abs(lumaEndN) >= gradientScaled));
  530. (doneP = (abs(lumaEndP) >= gradientScaled));
  531. []if (!doneN)
  532. (posN.x -= (offNP.x * 2.000000f));
  533. []if (!doneN)
  534. (posN.y -= (offNP.y * 2.000000f));
  535. (doneNP = (!doneN || !doneP));
  536. []if (!doneP)
  537. (posP.x += (offNP.x * 2.000000f));
  538. []if (!doneP)
  539. (posP.y += (offNP.y * 2.000000f));
  540. []if (doneNP)
  541. {
  542. []if (!doneN)
  543. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  544. []if (!doneP)
  545. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  546. []if (!doneN)
  547. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  548. []if (!doneP)
  549. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  550. (doneN = (abs(lumaEndN) >= gradientScaled));
  551. (doneP = (abs(lumaEndP) >= gradientScaled));
  552. []if (!doneN)
  553. (posN.x -= (offNP.x * 2.000000f));
  554. []if (!doneN)
  555. (posN.y -= (offNP.y * 2.000000f));
  556. (doneNP = (!doneN || !doneP));
  557. []if (!doneP)
  558. (posP.x += (offNP.x * 2.000000f));
  559. []if (!doneP)
  560. (posP.y += (offNP.y * 2.000000f));
  561. []if (doneNP)
  562. {
  563. []if (!doneN)
  564. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  565. []if (!doneP)
  566. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  567. []if (!doneN)
  568. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  569. []if (!doneP)
  570. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  571. (doneN = (abs(lumaEndN) >= gradientScaled));
  572. (doneP = (abs(lumaEndP) >= gradientScaled));
  573. []if (!doneN)
  574. (posN.x -= (offNP.x * 2.000000f));
  575. []if (!doneN)
  576. (posN.y -= (offNP.y * 2.000000f));
  577. (doneNP = (!doneN || !doneP));
  578. []if (!doneP)
  579. (posP.x += (offNP.x * 2.000000f));
  580. []if (!doneP)
  581. (posP.y += (offNP.y * 2.000000f));
  582. []if (doneNP)
  583. {
  584. []if (!doneN)
  585. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  586. []if (!doneP)
  587. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  588. []if (!doneN)
  589. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  590. []if (!doneP)
  591. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  592. (doneN = (abs(lumaEndN) >= gradientScaled));
  593. (doneP = (abs(lumaEndP) >= gradientScaled));
  594. []if (!doneN)
  595. (posN.x -= (offNP.x * 4.000000f));
  596. []if (!doneN)
  597. (posN.y -= (offNP.y * 4.000000f));
  598. (doneNP = (!doneN || !doneP));
  599. []if (!doneP)
  600. (posP.x += (offNP.x * 4.000000f));
  601. []if (!doneP)
  602. (posP.y += (offNP.y * 4.000000f));
  603. []if (doneNP)
  604. {
  605. []if (!doneN)
  606. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  607. []if (!doneP)
  608. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  609. []if (!doneN)
  610. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  611. []if (!doneP)
  612. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  613. (doneN = (abs(lumaEndN) >= gradientScaled));
  614. (doneP = (abs(lumaEndP) >= gradientScaled));
  615. []if (!doneN)
  616. (posN.x -= (offNP.x * 8.000000f));
  617. []if (!doneN)
  618. (posN.y -= (offNP.y * 8.000000f));
  619. (doneNP = (!doneN || !doneP));
  620. []if (!doneP)
  621. (posP.x += (offNP.x * 8.000000f));
  622. []if (!doneP)
  623. (posP.y += (offNP.y * 8.000000f));
  624. }
  625. }
  626. }
  627. }
  628. }
  629. }
  630. }
  631. }
  632. }
  633. }
  634. float dstN = (posM.x - posN.x);
  635. float dstP = (posP.x - posM.x);
  636. []if (!horzSpan)
  637. (dstN = (posM.y - posN.y));
  638. []if (!horzSpan)
  639. (dstP = (posP.y - posM.y));
  640. bool goodSpanN = ((lumaEndN < 0.000000f) != lumaMLTZero);
  641. float spanLength = (dstP + dstN);
  642. bool goodSpanP = ((lumaEndP < 0.000000f) != lumaMLTZero);
  643. float spanLengthRcp = (1.000000f / spanLength);
  644. bool directionN = (dstN < dstP);
  645. float dst = min(dstN, dstP);
  646. bool goodSpan = (directionN ? goodSpanN : goodSpanP);
  647. float subpixG = (subpixF * subpixF);
  648. float pixelOffset = ((dst * -spanLengthRcp) + 0.500000f);
  649. float subpixH = (subpixG * fxaaQualitySubpix);
  650. float pixelOffsetGood = (goodSpan ? pixelOffset : 0.000000f);
  651. float pixelOffsetSubpix = max(pixelOffsetGood, subpixH);
  652. []if (!horzSpan)
  653. (posM.x += (pixelOffsetSubpix * lengthSign));
  654. []if (horzSpan)
  655. (posM.y += (pixelOffsetSubpix * lengthSign));
  656. return float4(tex2Dlod(tex, float4(posM, 0.000000f, 0.000000f)).xyz, rgbyM.y);
  657. }
  658. float4 FXAA(in float4 position, in float2 texcoord)
  659. {
  660. return FxaaPixelShader(texcoord, colorGammaSampler, float2(0.000595f, 0.000952f), float4(0.000000f, 0.000000f, 0.000000f, 0.000000f), 1.000000f, 0.000000f, 0.000000f);
  661. }
  662. void SharedWrap(in float4 position, in float2 texcoord, out float3 color)
  663. {
  664. (color = tex2D(colorGammaSampler, texcoord).xyz);
  665. float depth = tex2D(depthSampler, texcoord).x;
  666. []if (depthtoggle)
  667. {
  668. const float z_near = 1.000000f;
  669. const float z_far = 100.000000f;
  670. (depth = ((2.000000f * z_near) / ((-(z_far - z_near) * depth) + (z_far + z_near))));
  671. (color.xyz = float3(depth.xxx));
  672. }
  673. (color = main(texcoord, color.xyzz).xyz);
  674. }
  675. void __main(in uint id : TEXCOORD0, out float4 position : POSITION, out float2 texcoord : TEXCOORD0)
  676. {
  677. FullscreenTriangle(id, position, texcoord);
  678. position.xy += _PIXEL_SIZE_.zw * position.ww;
  679. }
  680.  
  681.  
  682. 18/01/2015 14:01:13,070 | TRACE | > Compiling shader 'FXAA':
  683.  
  684. uniform float4 _PIXEL_SIZE_ : register(c223);
  685. float4 __tex2Dgather(sampler2D s, float2 c) { return float4(tex2D(s, c + float2(0, 1) * _PIXEL_SIZE_.xy).r, tex2D(s, c + float2(1, 1) * _PIXEL_SIZE_.xy).r, tex2D(s, c + float2(1, 0) * _PIXEL_SIZE_.xy).r, tex2D(s, c).r); }
  686. #define POSITION VPOS
  687. uniform bool depthtoggle : register(c0);
  688. uniform float timer : register(c1);
  689. uniform float timeleft : register(c2);
  690. sampler2D colorGammaSampler : register(s0);
  691. sampler2D colorLinearSampler : register(s1);
  692. sampler2D depthSampler : register(s2);
  693. float4 main(in float2 tex, in float4 FinalColor)
  694. {
  695. return FinalColor;
  696. }
  697. void FullscreenTriangle(in uint id, out float4 position, out float2 texcoord)
  698. {
  699. (texcoord.x = ((id == 2) ? 2.000000f : 0.000000f));
  700. (texcoord.y = ((id == 1) ? 2.000000f : 0.000000f));
  701. (position = float4(((texcoord * float2(2.000000f, -2.000000f)) + float2(-1.000000f, 1.000000f)), 0.000000f, 1.000000f));
  702. }
  703. float FxaaLuma(in float4 rgba)
  704. {
  705. (rgba.w = dot(rgba.xyz, float3(0.299000f, 0.587000f, 0.114000f)));
  706. return rgba.w;
  707. }
  708. float4 FxaaPixelShader(in float2 pos, in sampler2D tex, in float2 fxaaQualityRcpFrame, in float4 fxaaConsoleRcpFrameOpt2, in float fxaaQualitySubpix, in float fxaaQualityEdgeThreshold, in float fxaaQualityEdgeThresholdMin)
  709. {
  710. float2 posM;
  711. (posM.x = pos.x);
  712. (posM.y = pos.y);
  713. float4 rgbyM = tex2Dlod(tex, float4(posM, 0.000000f, 0.000000f));
  714. float lumaS = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(0.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  715. float lumaE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, 0.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  716. float lumaN = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(0.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  717. float lumaW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, 0.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  718. float maxSM = max(lumaS, rgbyM.y);
  719. float minSM = min(lumaS, rgbyM.y);
  720. float maxESM = max(lumaE, maxSM);
  721. float minESM = min(lumaE, minSM);
  722. float maxWN = max(lumaN, lumaW);
  723. float minWN = min(lumaN, lumaW);
  724. float rangeMax = max(maxWN, maxESM);
  725. float rangeMin = min(minWN, minESM);
  726. float rangeMaxScaled = (rangeMax * fxaaQualityEdgeThreshold);
  727. float range = (rangeMax - rangeMin);
  728. float rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);
  729. bool earlyExit = (range < rangeMaxClamped);
  730. []if (earlyExit)
  731. return rgbyM;
  732. float lumaNW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  733. float lumaSE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  734. float lumaNE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  735. float lumaSW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  736. float lumaNS = (lumaN + lumaS);
  737. float lumaWE = (lumaW + lumaE);
  738. float subpixRcpRange = (1.000000f / range);
  739. float subpixNSWE = (lumaNS + lumaWE);
  740. float edgeHorz1 = ((-2.000000f * rgbyM.y) + lumaNS);
  741. float edgeVert1 = ((-2.000000f * rgbyM.y) + lumaWE);
  742. float lumaNESE = (lumaNE + lumaSE);
  743. float lumaNWNE = (lumaNW + lumaNE);
  744. float edgeHorz2 = ((-2.000000f * lumaE) + lumaNESE);
  745. float edgeVert2 = ((-2.000000f * lumaN) + lumaNWNE);
  746. float lumaNWSW = (lumaNW + lumaSW);
  747. float lumaSWSE = (lumaSW + lumaSE);
  748. float edgeHorz4 = ((abs(edgeHorz1) * 2.000000f) + abs(edgeHorz2));
  749. float edgeVert4 = ((abs(edgeVert1) * 2.000000f) + abs(edgeVert2));
  750. float edgeHorz3 = ((-2.000000f * lumaW) + lumaNWSW);
  751. float edgeVert3 = ((-2.000000f * lumaS) + lumaSWSE);
  752. float edgeHorz = (abs(edgeHorz3) + edgeHorz4);
  753. float edgeVert = (abs(edgeVert3) + edgeVert4);
  754. float subpixNWSWNESE = (lumaNWSW + lumaNESE);
  755. float lengthSign = fxaaQualityRcpFrame.x;
  756. bool horzSpan = (edgeHorz >= edgeVert);
  757. float subpixA = ((subpixNSWE * 2.000000f) + subpixNWSWNESE);
  758. []if (!horzSpan)
  759. (lumaN = lumaW);
  760. []if (!horzSpan)
  761. (lumaS = lumaE);
  762. []if (horzSpan)
  763. (lengthSign = fxaaQualityRcpFrame.y);
  764. float subpixB = ((subpixA * 0.083333f) - rgbyM.y);
  765. float gradientN = (lumaN - rgbyM.y);
  766. float gradientS = (lumaS - rgbyM.y);
  767. float lumaNN = (lumaN + rgbyM.y);
  768. float lumaSS = (lumaS + rgbyM.y);
  769. bool pairN = (abs(gradientN) >= abs(gradientS));
  770. float gradient = max(abs(gradientN), abs(gradientS));
  771. []if (pairN)
  772. (lengthSign = -lengthSign);
  773. float subpixC = saturate((abs(subpixB) * subpixRcpRange));
  774. float2 posB;
  775. (posB.x = posM.x);
  776. (posB.y = posM.y);
  777. float2 offNP;
  778. (offNP.x = (!horzSpan ? 0.000000f : fxaaQualityRcpFrame.x));
  779. (offNP.y = (horzSpan ? 0.000000f : fxaaQualityRcpFrame.y));
  780. []if (!horzSpan)
  781. (posB.x += (lengthSign * 0.500000f));
  782. []if (horzSpan)
  783. (posB.y += (lengthSign * 0.500000f));
  784. float2 posN;
  785. (posN.x = (posB.x - (offNP.x * 1.000000f)));
  786. (posN.y = (posB.y - (offNP.y * 1.000000f)));
  787. float2 posP;
  788. (posP.x = (posB.x + (offNP.x * 1.000000f)));
  789. (posP.y = (posB.y + (offNP.y * 1.000000f)));
  790. float subpixD = ((-2.000000f * subpixC) + 3.000000f);
  791. float lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN, 0.000000f, 0.000000f)));
  792. float subpixE = (subpixC * subpixC);
  793. float lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP, 0.000000f, 0.000000f)));
  794. []if (!pairN)
  795. (lumaNN = lumaSS);
  796. float gradientScaled = ((gradient * 1.000000f) / 4.000000f);
  797. float lumaMM = (rgbyM.y - (lumaNN * 0.500000f));
  798. float subpixF = (subpixD * subpixE);
  799. bool lumaMLTZero = (lumaMM < 0.000000f);
  800. (lumaEndN -= (lumaNN * 0.500000f));
  801. (lumaEndP -= (lumaNN * 0.500000f));
  802. bool doneN = (abs(lumaEndN) >= gradientScaled);
  803. bool doneP = (abs(lumaEndP) >= gradientScaled);
  804. []if (!doneN)
  805. (posN.x -= (offNP.x * 1.000000f));
  806. []if (!doneN)
  807. (posN.y -= (offNP.y * 1.000000f));
  808. bool doneNP = (!doneN || !doneP);
  809. []if (!doneP)
  810. (posP.x += (offNP.x * 1.000000f));
  811. []if (!doneP)
  812. (posP.y += (offNP.y * 1.000000f));
  813. []if (doneNP)
  814. {
  815. []if (!doneN)
  816. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  817. []if (!doneP)
  818. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  819. []if (!doneN)
  820. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  821. []if (!doneP)
  822. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  823. (doneN = (abs(lumaEndN) >= gradientScaled));
  824. (doneP = (abs(lumaEndP) >= gradientScaled));
  825. []if (!doneN)
  826. (posN.x -= (offNP.x * 1.000000f));
  827. []if (!doneN)
  828. (posN.y -= (offNP.y * 1.000000f));
  829. (doneNP = (!doneN || !doneP));
  830. []if (!doneP)
  831. (posP.x += (offNP.x * 1.000000f));
  832. []if (!doneP)
  833. (posP.y += (offNP.y * 1.000000f));
  834. []if (doneNP)
  835. {
  836. []if (!doneN)
  837. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  838. []if (!doneP)
  839. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  840. []if (!doneN)
  841. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  842. []if (!doneP)
  843. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  844. (doneN = (abs(lumaEndN) >= gradientScaled));
  845. (doneP = (abs(lumaEndP) >= gradientScaled));
  846. []if (!doneN)
  847. (posN.x -= (offNP.x * 1.000000f));
  848. []if (!doneN)
  849. (posN.y -= (offNP.y * 1.000000f));
  850. (doneNP = (!doneN || !doneP));
  851. []if (!doneP)
  852. (posP.x += (offNP.x * 1.000000f));
  853. []if (!doneP)
  854. (posP.y += (offNP.y * 1.000000f));
  855. []if (doneNP)
  856. {
  857. []if (!doneN)
  858. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  859. []if (!doneP)
  860. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  861. []if (!doneN)
  862. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  863. []if (!doneP)
  864. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  865. (doneN = (abs(lumaEndN) >= gradientScaled));
  866. (doneP = (abs(lumaEndP) >= gradientScaled));
  867. []if (!doneN)
  868. (posN.x -= (offNP.x * 1.000000f));
  869. []if (!doneN)
  870. (posN.y -= (offNP.y * 1.000000f));
  871. (doneNP = (!doneN || !doneP));
  872. []if (!doneP)
  873. (posP.x += (offNP.x * 1.000000f));
  874. []if (!doneP)
  875. (posP.y += (offNP.y * 1.000000f));
  876. []if (doneNP)
  877. {
  878. []if (!doneN)
  879. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  880. []if (!doneP)
  881. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  882. []if (!doneN)
  883. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  884. []if (!doneP)
  885. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  886. (doneN = (abs(lumaEndN) >= gradientScaled));
  887. (doneP = (abs(lumaEndP) >= gradientScaled));
  888. []if (!doneN)
  889. (posN.x -= (offNP.x * 1.500000f));
  890. []if (!doneN)
  891. (posN.y -= (offNP.y * 1.500000f));
  892. (doneNP = (!doneN || !doneP));
  893. []if (!doneP)
  894. (posP.x += (offNP.x * 1.500000f));
  895. []if (!doneP)
  896. (posP.y += (offNP.y * 1.500000f));
  897. []if (doneNP)
  898. {
  899. []if (!doneN)
  900. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  901. []if (!doneP)
  902. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  903. []if (!doneN)
  904. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  905. []if (!doneP)
  906. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  907. (doneN = (abs(lumaEndN) >= gradientScaled));
  908. (doneP = (abs(lumaEndP) >= gradientScaled));
  909. []if (!doneN)
  910. (posN.x -= (offNP.x * 2.000000f));
  911. []if (!doneN)
  912. (posN.y -= (offNP.y * 2.000000f));
  913. (doneNP = (!doneN || !doneP));
  914. []if (!doneP)
  915. (posP.x += (offNP.x * 2.000000f));
  916. []if (!doneP)
  917. (posP.y += (offNP.y * 2.000000f));
  918. []if (doneNP)
  919. {
  920. []if (!doneN)
  921. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  922. []if (!doneP)
  923. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  924. []if (!doneN)
  925. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  926. []if (!doneP)
  927. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  928. (doneN = (abs(lumaEndN) >= gradientScaled));
  929. (doneP = (abs(lumaEndP) >= gradientScaled));
  930. []if (!doneN)
  931. (posN.x -= (offNP.x * 2.000000f));
  932. []if (!doneN)
  933. (posN.y -= (offNP.y * 2.000000f));
  934. (doneNP = (!doneN || !doneP));
  935. []if (!doneP)
  936. (posP.x += (offNP.x * 2.000000f));
  937. []if (!doneP)
  938. (posP.y += (offNP.y * 2.000000f));
  939. []if (doneNP)
  940. {
  941. []if (!doneN)
  942. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  943. []if (!doneP)
  944. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  945. []if (!doneN)
  946. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  947. []if (!doneP)
  948. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  949. (doneN = (abs(lumaEndN) >= gradientScaled));
  950. (doneP = (abs(lumaEndP) >= gradientScaled));
  951. []if (!doneN)
  952. (posN.x -= (offNP.x * 2.000000f));
  953. []if (!doneN)
  954. (posN.y -= (offNP.y * 2.000000f));
  955. (doneNP = (!doneN || !doneP));
  956. []if (!doneP)
  957. (posP.x += (offNP.x * 2.000000f));
  958. []if (!doneP)
  959. (posP.y += (offNP.y * 2.000000f));
  960. []if (doneNP)
  961. {
  962. []if (!doneN)
  963. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  964. []if (!doneP)
  965. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  966. []if (!doneN)
  967. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  968. []if (!doneP)
  969. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  970. (doneN = (abs(lumaEndN) >= gradientScaled));
  971. (doneP = (abs(lumaEndP) >= gradientScaled));
  972. []if (!doneN)
  973. (posN.x -= (offNP.x * 2.000000f));
  974. []if (!doneN)
  975. (posN.y -= (offNP.y * 2.000000f));
  976. (doneNP = (!doneN || !doneP));
  977. []if (!doneP)
  978. (posP.x += (offNP.x * 2.000000f));
  979. []if (!doneP)
  980. (posP.y += (offNP.y * 2.000000f));
  981. []if (doneNP)
  982. {
  983. []if (!doneN)
  984. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  985. []if (!doneP)
  986. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  987. []if (!doneN)
  988. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  989. []if (!doneP)
  990. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  991. (doneN = (abs(lumaEndN) >= gradientScaled));
  992. (doneP = (abs(lumaEndP) >= gradientScaled));
  993. []if (!doneN)
  994. (posN.x -= (offNP.x * 4.000000f));
  995. []if (!doneN)
  996. (posN.y -= (offNP.y * 4.000000f));
  997. (doneNP = (!doneN || !doneP));
  998. []if (!doneP)
  999. (posP.x += (offNP.x * 4.000000f));
  1000. []if (!doneP)
  1001. (posP.y += (offNP.y * 4.000000f));
  1002. []if (doneNP)
  1003. {
  1004. []if (!doneN)
  1005. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1006. []if (!doneP)
  1007. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1008. []if (!doneN)
  1009. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1010. []if (!doneP)
  1011. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1012. (doneN = (abs(lumaEndN) >= gradientScaled));
  1013. (doneP = (abs(lumaEndP) >= gradientScaled));
  1014. []if (!doneN)
  1015. (posN.x -= (offNP.x * 8.000000f));
  1016. []if (!doneN)
  1017. (posN.y -= (offNP.y * 8.000000f));
  1018. (doneNP = (!doneN || !doneP));
  1019. []if (!doneP)
  1020. (posP.x += (offNP.x * 8.000000f));
  1021. []if (!doneP)
  1022. (posP.y += (offNP.y * 8.000000f));
  1023. }
  1024. }
  1025. }
  1026. }
  1027. }
  1028. }
  1029. }
  1030. }
  1031. }
  1032. }
  1033. float dstN = (posM.x - posN.x);
  1034. float dstP = (posP.x - posM.x);
  1035. []if (!horzSpan)
  1036. (dstN = (posM.y - posN.y));
  1037. []if (!horzSpan)
  1038. (dstP = (posP.y - posM.y));
  1039. bool goodSpanN = ((lumaEndN < 0.000000f) != lumaMLTZero);
  1040. float spanLength = (dstP + dstN);
  1041. bool goodSpanP = ((lumaEndP < 0.000000f) != lumaMLTZero);
  1042. float spanLengthRcp = (1.000000f / spanLength);
  1043. bool directionN = (dstN < dstP);
  1044. float dst = min(dstN, dstP);
  1045. bool goodSpan = (directionN ? goodSpanN : goodSpanP);
  1046. float subpixG = (subpixF * subpixF);
  1047. float pixelOffset = ((dst * -spanLengthRcp) + 0.500000f);
  1048. float subpixH = (subpixG * fxaaQualitySubpix);
  1049. float pixelOffsetGood = (goodSpan ? pixelOffset : 0.000000f);
  1050. float pixelOffsetSubpix = max(pixelOffsetGood, subpixH);
  1051. []if (!horzSpan)
  1052. (posM.x += (pixelOffsetSubpix * lengthSign));
  1053. []if (horzSpan)
  1054. (posM.y += (pixelOffsetSubpix * lengthSign));
  1055. return float4(tex2Dlod(tex, float4(posM, 0.000000f, 0.000000f)).xyz, rgbyM.y);
  1056. }
  1057. float4 FXAA(in float4 position, in float2 texcoord)
  1058. {
  1059. return FxaaPixelShader(texcoord, colorGammaSampler, float2(0.000595f, 0.000952f), float4(0.000000f, 0.000000f, 0.000000f, 0.000000f), 1.000000f, 0.000000f, 0.000000f);
  1060. }
  1061. void SharedWrap(in float4 position, in float2 texcoord, out float3 color)
  1062. {
  1063. (color = tex2D(colorGammaSampler, texcoord).xyz);
  1064. float depth = tex2D(depthSampler, texcoord).x;
  1065. []if (depthtoggle)
  1066. {
  1067. const float z_near = 1.000000f;
  1068. const float z_far = 100.000000f;
  1069. (depth = ((2.000000f * z_near) / ((-(z_far - z_near) * depth) + (z_far + z_near))));
  1070. (color.xyz = float3(depth.xxx));
  1071. }
  1072. (color = main(texcoord, color.xyzz).xyz);
  1073. }
  1074. float4 __main(in float4 position : POSITION, in float2 texcoord : TEXCOORD0) : COLOR
  1075. {
  1076. float4 _return = FXAA(position, texcoord);
  1077. return _return;
  1078. }
  1079.  
  1080.  
  1081. 18/01/2015 14:01:13,416 | TRACE | > Compiling shader 'FullscreenTriangle':
  1082.  
  1083. uniform float4 _PIXEL_SIZE_ : register(c223);
  1084. float4 __tex2Dgather(sampler2D s, float2 c) { return float4(tex2D(s, c + float2(0, 1) * _PIXEL_SIZE_.xy).r, tex2D(s, c + float2(1, 1) * _PIXEL_SIZE_.xy).r, tex2D(s, c + float2(1, 0) * _PIXEL_SIZE_.xy).r, tex2D(s, c).r); }
  1085. uniform bool depthtoggle : register(c0);
  1086. uniform float timer : register(c1);
  1087. uniform float timeleft : register(c2);
  1088. sampler2D colorGammaSampler : register(s0);
  1089. sampler2D colorLinearSampler : register(s1);
  1090. sampler2D depthSampler : register(s2);
  1091. float4 main(in float2 tex, in float4 FinalColor)
  1092. {
  1093. return FinalColor;
  1094. }
  1095. void FullscreenTriangle(in uint id, out float4 position, out float2 texcoord)
  1096. {
  1097. (texcoord.x = ((id == 2) ? 2.000000f : 0.000000f));
  1098. (texcoord.y = ((id == 1) ? 2.000000f : 0.000000f));
  1099. (position = float4(((texcoord * float2(2.000000f, -2.000000f)) + float2(-1.000000f, 1.000000f)), 0.000000f, 1.000000f));
  1100. }
  1101. float FxaaLuma(in float4 rgba)
  1102. {
  1103. (rgba.w = dot(rgba.xyz, float3(0.299000f, 0.587000f, 0.114000f)));
  1104. return rgba.w;
  1105. }
  1106. float4 FxaaPixelShader(in float2 pos, in sampler2D tex, in float2 fxaaQualityRcpFrame, in float4 fxaaConsoleRcpFrameOpt2, in float fxaaQualitySubpix, in float fxaaQualityEdgeThreshold, in float fxaaQualityEdgeThresholdMin)
  1107. {
  1108. float2 posM;
  1109. (posM.x = pos.x);
  1110. (posM.y = pos.y);
  1111. float4 rgbyM = tex2Dlod(tex, float4(posM, 0.000000f, 0.000000f));
  1112. float lumaS = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(0.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1113. float lumaE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, 0.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1114. float lumaN = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(0.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1115. float lumaW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, 0.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1116. float maxSM = max(lumaS, rgbyM.y);
  1117. float minSM = min(lumaS, rgbyM.y);
  1118. float maxESM = max(lumaE, maxSM);
  1119. float minESM = min(lumaE, minSM);
  1120. float maxWN = max(lumaN, lumaW);
  1121. float minWN = min(lumaN, lumaW);
  1122. float rangeMax = max(maxWN, maxESM);
  1123. float rangeMin = min(minWN, minESM);
  1124. float rangeMaxScaled = (rangeMax * fxaaQualityEdgeThreshold);
  1125. float range = (rangeMax - rangeMin);
  1126. float rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);
  1127. bool earlyExit = (range < rangeMaxClamped);
  1128. []if (earlyExit)
  1129. return rgbyM;
  1130. float lumaNW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1131. float lumaSE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1132. float lumaNE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1133. float lumaSW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1134. float lumaNS = (lumaN + lumaS);
  1135. float lumaWE = (lumaW + lumaE);
  1136. float subpixRcpRange = (1.000000f / range);
  1137. float subpixNSWE = (lumaNS + lumaWE);
  1138. float edgeHorz1 = ((-2.000000f * rgbyM.y) + lumaNS);
  1139. float edgeVert1 = ((-2.000000f * rgbyM.y) + lumaWE);
  1140. float lumaNESE = (lumaNE + lumaSE);
  1141. float lumaNWNE = (lumaNW + lumaNE);
  1142. float edgeHorz2 = ((-2.000000f * lumaE) + lumaNESE);
  1143. float edgeVert2 = ((-2.000000f * lumaN) + lumaNWNE);
  1144. float lumaNWSW = (lumaNW + lumaSW);
  1145. float lumaSWSE = (lumaSW + lumaSE);
  1146. float edgeHorz4 = ((abs(edgeHorz1) * 2.000000f) + abs(edgeHorz2));
  1147. float edgeVert4 = ((abs(edgeVert1) * 2.000000f) + abs(edgeVert2));
  1148. float edgeHorz3 = ((-2.000000f * lumaW) + lumaNWSW);
  1149. float edgeVert3 = ((-2.000000f * lumaS) + lumaSWSE);
  1150. float edgeHorz = (abs(edgeHorz3) + edgeHorz4);
  1151. float edgeVert = (abs(edgeVert3) + edgeVert4);
  1152. float subpixNWSWNESE = (lumaNWSW + lumaNESE);
  1153. float lengthSign = fxaaQualityRcpFrame.x;
  1154. bool horzSpan = (edgeHorz >= edgeVert);
  1155. float subpixA = ((subpixNSWE * 2.000000f) + subpixNWSWNESE);
  1156. []if (!horzSpan)
  1157. (lumaN = lumaW);
  1158. []if (!horzSpan)
  1159. (lumaS = lumaE);
  1160. []if (horzSpan)
  1161. (lengthSign = fxaaQualityRcpFrame.y);
  1162. float subpixB = ((subpixA * 0.083333f) - rgbyM.y);
  1163. float gradientN = (lumaN - rgbyM.y);
  1164. float gradientS = (lumaS - rgbyM.y);
  1165. float lumaNN = (lumaN + rgbyM.y);
  1166. float lumaSS = (lumaS + rgbyM.y);
  1167. bool pairN = (abs(gradientN) >= abs(gradientS));
  1168. float gradient = max(abs(gradientN), abs(gradientS));
  1169. []if (pairN)
  1170. (lengthSign = -lengthSign);
  1171. float subpixC = saturate((abs(subpixB) * subpixRcpRange));
  1172. float2 posB;
  1173. (posB.x = posM.x);
  1174. (posB.y = posM.y);
  1175. float2 offNP;
  1176. (offNP.x = (!horzSpan ? 0.000000f : fxaaQualityRcpFrame.x));
  1177. (offNP.y = (horzSpan ? 0.000000f : fxaaQualityRcpFrame.y));
  1178. []if (!horzSpan)
  1179. (posB.x += (lengthSign * 0.500000f));
  1180. []if (horzSpan)
  1181. (posB.y += (lengthSign * 0.500000f));
  1182. float2 posN;
  1183. (posN.x = (posB.x - (offNP.x * 1.000000f)));
  1184. (posN.y = (posB.y - (offNP.y * 1.000000f)));
  1185. float2 posP;
  1186. (posP.x = (posB.x + (offNP.x * 1.000000f)));
  1187. (posP.y = (posB.y + (offNP.y * 1.000000f)));
  1188. float subpixD = ((-2.000000f * subpixC) + 3.000000f);
  1189. float lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN, 0.000000f, 0.000000f)));
  1190. float subpixE = (subpixC * subpixC);
  1191. float lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP, 0.000000f, 0.000000f)));
  1192. []if (!pairN)
  1193. (lumaNN = lumaSS);
  1194. float gradientScaled = ((gradient * 1.000000f) / 4.000000f);
  1195. float lumaMM = (rgbyM.y - (lumaNN * 0.500000f));
  1196. float subpixF = (subpixD * subpixE);
  1197. bool lumaMLTZero = (lumaMM < 0.000000f);
  1198. (lumaEndN -= (lumaNN * 0.500000f));
  1199. (lumaEndP -= (lumaNN * 0.500000f));
  1200. bool doneN = (abs(lumaEndN) >= gradientScaled);
  1201. bool doneP = (abs(lumaEndP) >= gradientScaled);
  1202. []if (!doneN)
  1203. (posN.x -= (offNP.x * 1.000000f));
  1204. []if (!doneN)
  1205. (posN.y -= (offNP.y * 1.000000f));
  1206. bool doneNP = (!doneN || !doneP);
  1207. []if (!doneP)
  1208. (posP.x += (offNP.x * 1.000000f));
  1209. []if (!doneP)
  1210. (posP.y += (offNP.y * 1.000000f));
  1211. []if (doneNP)
  1212. {
  1213. []if (!doneN)
  1214. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1215. []if (!doneP)
  1216. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1217. []if (!doneN)
  1218. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1219. []if (!doneP)
  1220. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1221. (doneN = (abs(lumaEndN) >= gradientScaled));
  1222. (doneP = (abs(lumaEndP) >= gradientScaled));
  1223. []if (!doneN)
  1224. (posN.x -= (offNP.x * 1.000000f));
  1225. []if (!doneN)
  1226. (posN.y -= (offNP.y * 1.000000f));
  1227. (doneNP = (!doneN || !doneP));
  1228. []if (!doneP)
  1229. (posP.x += (offNP.x * 1.000000f));
  1230. []if (!doneP)
  1231. (posP.y += (offNP.y * 1.000000f));
  1232. []if (doneNP)
  1233. {
  1234. []if (!doneN)
  1235. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1236. []if (!doneP)
  1237. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1238. []if (!doneN)
  1239. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1240. []if (!doneP)
  1241. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1242. (doneN = (abs(lumaEndN) >= gradientScaled));
  1243. (doneP = (abs(lumaEndP) >= gradientScaled));
  1244. []if (!doneN)
  1245. (posN.x -= (offNP.x * 1.000000f));
  1246. []if (!doneN)
  1247. (posN.y -= (offNP.y * 1.000000f));
  1248. (doneNP = (!doneN || !doneP));
  1249. []if (!doneP)
  1250. (posP.x += (offNP.x * 1.000000f));
  1251. []if (!doneP)
  1252. (posP.y += (offNP.y * 1.000000f));
  1253. []if (doneNP)
  1254. {
  1255. []if (!doneN)
  1256. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1257. []if (!doneP)
  1258. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1259. []if (!doneN)
  1260. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1261. []if (!doneP)
  1262. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1263. (doneN = (abs(lumaEndN) >= gradientScaled));
  1264. (doneP = (abs(lumaEndP) >= gradientScaled));
  1265. []if (!doneN)
  1266. (posN.x -= (offNP.x * 1.000000f));
  1267. []if (!doneN)
  1268. (posN.y -= (offNP.y * 1.000000f));
  1269. (doneNP = (!doneN || !doneP));
  1270. []if (!doneP)
  1271. (posP.x += (offNP.x * 1.000000f));
  1272. []if (!doneP)
  1273. (posP.y += (offNP.y * 1.000000f));
  1274. []if (doneNP)
  1275. {
  1276. []if (!doneN)
  1277. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1278. []if (!doneP)
  1279. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1280. []if (!doneN)
  1281. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1282. []if (!doneP)
  1283. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1284. (doneN = (abs(lumaEndN) >= gradientScaled));
  1285. (doneP = (abs(lumaEndP) >= gradientScaled));
  1286. []if (!doneN)
  1287. (posN.x -= (offNP.x * 1.500000f));
  1288. []if (!doneN)
  1289. (posN.y -= (offNP.y * 1.500000f));
  1290. (doneNP = (!doneN || !doneP));
  1291. []if (!doneP)
  1292. (posP.x += (offNP.x * 1.500000f));
  1293. []if (!doneP)
  1294. (posP.y += (offNP.y * 1.500000f));
  1295. []if (doneNP)
  1296. {
  1297. []if (!doneN)
  1298. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1299. []if (!doneP)
  1300. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1301. []if (!doneN)
  1302. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1303. []if (!doneP)
  1304. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1305. (doneN = (abs(lumaEndN) >= gradientScaled));
  1306. (doneP = (abs(lumaEndP) >= gradientScaled));
  1307. []if (!doneN)
  1308. (posN.x -= (offNP.x * 2.000000f));
  1309. []if (!doneN)
  1310. (posN.y -= (offNP.y * 2.000000f));
  1311. (doneNP = (!doneN || !doneP));
  1312. []if (!doneP)
  1313. (posP.x += (offNP.x * 2.000000f));
  1314. []if (!doneP)
  1315. (posP.y += (offNP.y * 2.000000f));
  1316. []if (doneNP)
  1317. {
  1318. []if (!doneN)
  1319. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1320. []if (!doneP)
  1321. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1322. []if (!doneN)
  1323. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1324. []if (!doneP)
  1325. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1326. (doneN = (abs(lumaEndN) >= gradientScaled));
  1327. (doneP = (abs(lumaEndP) >= gradientScaled));
  1328. []if (!doneN)
  1329. (posN.x -= (offNP.x * 2.000000f));
  1330. []if (!doneN)
  1331. (posN.y -= (offNP.y * 2.000000f));
  1332. (doneNP = (!doneN || !doneP));
  1333. []if (!doneP)
  1334. (posP.x += (offNP.x * 2.000000f));
  1335. []if (!doneP)
  1336. (posP.y += (offNP.y * 2.000000f));
  1337. []if (doneNP)
  1338. {
  1339. []if (!doneN)
  1340. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1341. []if (!doneP)
  1342. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1343. []if (!doneN)
  1344. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1345. []if (!doneP)
  1346. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1347. (doneN = (abs(lumaEndN) >= gradientScaled));
  1348. (doneP = (abs(lumaEndP) >= gradientScaled));
  1349. []if (!doneN)
  1350. (posN.x -= (offNP.x * 2.000000f));
  1351. []if (!doneN)
  1352. (posN.y -= (offNP.y * 2.000000f));
  1353. (doneNP = (!doneN || !doneP));
  1354. []if (!doneP)
  1355. (posP.x += (offNP.x * 2.000000f));
  1356. []if (!doneP)
  1357. (posP.y += (offNP.y * 2.000000f));
  1358. []if (doneNP)
  1359. {
  1360. []if (!doneN)
  1361. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1362. []if (!doneP)
  1363. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1364. []if (!doneN)
  1365. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1366. []if (!doneP)
  1367. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1368. (doneN = (abs(lumaEndN) >= gradientScaled));
  1369. (doneP = (abs(lumaEndP) >= gradientScaled));
  1370. []if (!doneN)
  1371. (posN.x -= (offNP.x * 2.000000f));
  1372. []if (!doneN)
  1373. (posN.y -= (offNP.y * 2.000000f));
  1374. (doneNP = (!doneN || !doneP));
  1375. []if (!doneP)
  1376. (posP.x += (offNP.x * 2.000000f));
  1377. []if (!doneP)
  1378. (posP.y += (offNP.y * 2.000000f));
  1379. []if (doneNP)
  1380. {
  1381. []if (!doneN)
  1382. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1383. []if (!doneP)
  1384. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1385. []if (!doneN)
  1386. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1387. []if (!doneP)
  1388. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1389. (doneN = (abs(lumaEndN) >= gradientScaled));
  1390. (doneP = (abs(lumaEndP) >= gradientScaled));
  1391. []if (!doneN)
  1392. (posN.x -= (offNP.x * 4.000000f));
  1393. []if (!doneN)
  1394. (posN.y -= (offNP.y * 4.000000f));
  1395. (doneNP = (!doneN || !doneP));
  1396. []if (!doneP)
  1397. (posP.x += (offNP.x * 4.000000f));
  1398. []if (!doneP)
  1399. (posP.y += (offNP.y * 4.000000f));
  1400. []if (doneNP)
  1401. {
  1402. []if (!doneN)
  1403. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1404. []if (!doneP)
  1405. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1406. []if (!doneN)
  1407. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1408. []if (!doneP)
  1409. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1410. (doneN = (abs(lumaEndN) >= gradientScaled));
  1411. (doneP = (abs(lumaEndP) >= gradientScaled));
  1412. []if (!doneN)
  1413. (posN.x -= (offNP.x * 8.000000f));
  1414. []if (!doneN)
  1415. (posN.y -= (offNP.y * 8.000000f));
  1416. (doneNP = (!doneN || !doneP));
  1417. []if (!doneP)
  1418. (posP.x += (offNP.x * 8.000000f));
  1419. []if (!doneP)
  1420. (posP.y += (offNP.y * 8.000000f));
  1421. }
  1422. }
  1423. }
  1424. }
  1425. }
  1426. }
  1427. }
  1428. }
  1429. }
  1430. }
  1431. float dstN = (posM.x - posN.x);
  1432. float dstP = (posP.x - posM.x);
  1433. []if (!horzSpan)
  1434. (dstN = (posM.y - posN.y));
  1435. []if (!horzSpan)
  1436. (dstP = (posP.y - posM.y));
  1437. bool goodSpanN = ((lumaEndN < 0.000000f) != lumaMLTZero);
  1438. float spanLength = (dstP + dstN);
  1439. bool goodSpanP = ((lumaEndP < 0.000000f) != lumaMLTZero);
  1440. float spanLengthRcp = (1.000000f / spanLength);
  1441. bool directionN = (dstN < dstP);
  1442. float dst = min(dstN, dstP);
  1443. bool goodSpan = (directionN ? goodSpanN : goodSpanP);
  1444. float subpixG = (subpixF * subpixF);
  1445. float pixelOffset = ((dst * -spanLengthRcp) + 0.500000f);
  1446. float subpixH = (subpixG * fxaaQualitySubpix);
  1447. float pixelOffsetGood = (goodSpan ? pixelOffset : 0.000000f);
  1448. float pixelOffsetSubpix = max(pixelOffsetGood, subpixH);
  1449. []if (!horzSpan)
  1450. (posM.x += (pixelOffsetSubpix * lengthSign));
  1451. []if (horzSpan)
  1452. (posM.y += (pixelOffsetSubpix * lengthSign));
  1453. return float4(tex2Dlod(tex, float4(posM, 0.000000f, 0.000000f)).xyz, rgbyM.y);
  1454. }
  1455. float4 FXAA(in float4 position, in float2 texcoord)
  1456. {
  1457. return FxaaPixelShader(texcoord, colorGammaSampler, float2(0.000595f, 0.000952f), float4(0.000000f, 0.000000f, 0.000000f, 0.000000f), 1.000000f, 0.000000f, 0.000000f);
  1458. }
  1459. void SharedWrap(in float4 position, in float2 texcoord, out float3 color)
  1460. {
  1461. (color = tex2D(colorGammaSampler, texcoord).xyz);
  1462. float depth = tex2D(depthSampler, texcoord).x;
  1463. []if (depthtoggle)
  1464. {
  1465. const float z_near = 1.000000f;
  1466. const float z_far = 100.000000f;
  1467. (depth = ((2.000000f * z_near) / ((-(z_far - z_near) * depth) + (z_far + z_near))));
  1468. (color.xyz = float3(depth.xxx));
  1469. }
  1470. (color = main(texcoord, color.xyzz).xyz);
  1471. }
  1472. void __main(in uint id : TEXCOORD0, out float4 position : POSITION, out float2 texcoord : TEXCOORD0)
  1473. {
  1474. FullscreenTriangle(id, position, texcoord);
  1475. position.xy += _PIXEL_SIZE_.zw * position.ww;
  1476. }
  1477.  
  1478.  
  1479. 18/01/2015 14:01:13,423 | TRACE | > Compiling shader 'SharedWrap':
  1480.  
  1481. uniform float4 _PIXEL_SIZE_ : register(c223);
  1482. float4 __tex2Dgather(sampler2D s, float2 c) { return float4(tex2D(s, c + float2(0, 1) * _PIXEL_SIZE_.xy).r, tex2D(s, c + float2(1, 1) * _PIXEL_SIZE_.xy).r, tex2D(s, c + float2(1, 0) * _PIXEL_SIZE_.xy).r, tex2D(s, c).r); }
  1483. #define POSITION VPOS
  1484. uniform bool depthtoggle : register(c0);
  1485. uniform float timer : register(c1);
  1486. uniform float timeleft : register(c2);
  1487. sampler2D colorGammaSampler : register(s0);
  1488. sampler2D colorLinearSampler : register(s1);
  1489. sampler2D depthSampler : register(s2);
  1490. float4 main(in float2 tex, in float4 FinalColor)
  1491. {
  1492. return FinalColor;
  1493. }
  1494. void FullscreenTriangle(in uint id, out float4 position, out float2 texcoord)
  1495. {
  1496. (texcoord.x = ((id == 2) ? 2.000000f : 0.000000f));
  1497. (texcoord.y = ((id == 1) ? 2.000000f : 0.000000f));
  1498. (position = float4(((texcoord * float2(2.000000f, -2.000000f)) + float2(-1.000000f, 1.000000f)), 0.000000f, 1.000000f));
  1499. }
  1500. float FxaaLuma(in float4 rgba)
  1501. {
  1502. (rgba.w = dot(rgba.xyz, float3(0.299000f, 0.587000f, 0.114000f)));
  1503. return rgba.w;
  1504. }
  1505. float4 FxaaPixelShader(in float2 pos, in sampler2D tex, in float2 fxaaQualityRcpFrame, in float4 fxaaConsoleRcpFrameOpt2, in float fxaaQualitySubpix, in float fxaaQualityEdgeThreshold, in float fxaaQualityEdgeThresholdMin)
  1506. {
  1507. float2 posM;
  1508. (posM.x = pos.x);
  1509. (posM.y = pos.y);
  1510. float4 rgbyM = tex2Dlod(tex, float4(posM, 0.000000f, 0.000000f));
  1511. float lumaS = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(0.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1512. float lumaE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, 0.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1513. float lumaN = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(0.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1514. float lumaW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, 0.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1515. float maxSM = max(lumaS, rgbyM.y);
  1516. float minSM = min(lumaS, rgbyM.y);
  1517. float maxESM = max(lumaE, maxSM);
  1518. float minESM = min(lumaE, minSM);
  1519. float maxWN = max(lumaN, lumaW);
  1520. float minWN = min(lumaN, lumaW);
  1521. float rangeMax = max(maxWN, maxESM);
  1522. float rangeMin = min(minWN, minESM);
  1523. float rangeMaxScaled = (rangeMax * fxaaQualityEdgeThreshold);
  1524. float range = (rangeMax - rangeMin);
  1525. float rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);
  1526. bool earlyExit = (range < rangeMaxClamped);
  1527. []if (earlyExit)
  1528. return rgbyM;
  1529. float lumaNW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1530. float lumaSE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1531. float lumaNE = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(1.000000f, -1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1532. float lumaSW = FxaaLuma(tex2Dlod(tex, float4((posM + (float2(-1.000000f, 1.000000f) * fxaaQualityRcpFrame.xy)), 0, 0)));
  1533. float lumaNS = (lumaN + lumaS);
  1534. float lumaWE = (lumaW + lumaE);
  1535. float subpixRcpRange = (1.000000f / range);
  1536. float subpixNSWE = (lumaNS + lumaWE);
  1537. float edgeHorz1 = ((-2.000000f * rgbyM.y) + lumaNS);
  1538. float edgeVert1 = ((-2.000000f * rgbyM.y) + lumaWE);
  1539. float lumaNESE = (lumaNE + lumaSE);
  1540. float lumaNWNE = (lumaNW + lumaNE);
  1541. float edgeHorz2 = ((-2.000000f * lumaE) + lumaNESE);
  1542. float edgeVert2 = ((-2.000000f * lumaN) + lumaNWNE);
  1543. float lumaNWSW = (lumaNW + lumaSW);
  1544. float lumaSWSE = (lumaSW + lumaSE);
  1545. float edgeHorz4 = ((abs(edgeHorz1) * 2.000000f) + abs(edgeHorz2));
  1546. float edgeVert4 = ((abs(edgeVert1) * 2.000000f) + abs(edgeVert2));
  1547. float edgeHorz3 = ((-2.000000f * lumaW) + lumaNWSW);
  1548. float edgeVert3 = ((-2.000000f * lumaS) + lumaSWSE);
  1549. float edgeHorz = (abs(edgeHorz3) + edgeHorz4);
  1550. float edgeVert = (abs(edgeVert3) + edgeVert4);
  1551. float subpixNWSWNESE = (lumaNWSW + lumaNESE);
  1552. float lengthSign = fxaaQualityRcpFrame.x;
  1553. bool horzSpan = (edgeHorz >= edgeVert);
  1554. float subpixA = ((subpixNSWE * 2.000000f) + subpixNWSWNESE);
  1555. []if (!horzSpan)
  1556. (lumaN = lumaW);
  1557. []if (!horzSpan)
  1558. (lumaS = lumaE);
  1559. []if (horzSpan)
  1560. (lengthSign = fxaaQualityRcpFrame.y);
  1561. float subpixB = ((subpixA * 0.083333f) - rgbyM.y);
  1562. float gradientN = (lumaN - rgbyM.y);
  1563. float gradientS = (lumaS - rgbyM.y);
  1564. float lumaNN = (lumaN + rgbyM.y);
  1565. float lumaSS = (lumaS + rgbyM.y);
  1566. bool pairN = (abs(gradientN) >= abs(gradientS));
  1567. float gradient = max(abs(gradientN), abs(gradientS));
  1568. []if (pairN)
  1569. (lengthSign = -lengthSign);
  1570. float subpixC = saturate((abs(subpixB) * subpixRcpRange));
  1571. float2 posB;
  1572. (posB.x = posM.x);
  1573. (posB.y = posM.y);
  1574. float2 offNP;
  1575. (offNP.x = (!horzSpan ? 0.000000f : fxaaQualityRcpFrame.x));
  1576. (offNP.y = (horzSpan ? 0.000000f : fxaaQualityRcpFrame.y));
  1577. []if (!horzSpan)
  1578. (posB.x += (lengthSign * 0.500000f));
  1579. []if (horzSpan)
  1580. (posB.y += (lengthSign * 0.500000f));
  1581. float2 posN;
  1582. (posN.x = (posB.x - (offNP.x * 1.000000f)));
  1583. (posN.y = (posB.y - (offNP.y * 1.000000f)));
  1584. float2 posP;
  1585. (posP.x = (posB.x + (offNP.x * 1.000000f)));
  1586. (posP.y = (posB.y + (offNP.y * 1.000000f)));
  1587. float subpixD = ((-2.000000f * subpixC) + 3.000000f);
  1588. float lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN, 0.000000f, 0.000000f)));
  1589. float subpixE = (subpixC * subpixC);
  1590. float lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP, 0.000000f, 0.000000f)));
  1591. []if (!pairN)
  1592. (lumaNN = lumaSS);
  1593. float gradientScaled = ((gradient * 1.000000f) / 4.000000f);
  1594. float lumaMM = (rgbyM.y - (lumaNN * 0.500000f));
  1595. float subpixF = (subpixD * subpixE);
  1596. bool lumaMLTZero = (lumaMM < 0.000000f);
  1597. (lumaEndN -= (lumaNN * 0.500000f));
  1598. (lumaEndP -= (lumaNN * 0.500000f));
  1599. bool doneN = (abs(lumaEndN) >= gradientScaled);
  1600. bool doneP = (abs(lumaEndP) >= gradientScaled);
  1601. []if (!doneN)
  1602. (posN.x -= (offNP.x * 1.000000f));
  1603. []if (!doneN)
  1604. (posN.y -= (offNP.y * 1.000000f));
  1605. bool doneNP = (!doneN || !doneP);
  1606. []if (!doneP)
  1607. (posP.x += (offNP.x * 1.000000f));
  1608. []if (!doneP)
  1609. (posP.y += (offNP.y * 1.000000f));
  1610. []if (doneNP)
  1611. {
  1612. []if (!doneN)
  1613. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1614. []if (!doneP)
  1615. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1616. []if (!doneN)
  1617. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1618. []if (!doneP)
  1619. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1620. (doneN = (abs(lumaEndN) >= gradientScaled));
  1621. (doneP = (abs(lumaEndP) >= gradientScaled));
  1622. []if (!doneN)
  1623. (posN.x -= (offNP.x * 1.000000f));
  1624. []if (!doneN)
  1625. (posN.y -= (offNP.y * 1.000000f));
  1626. (doneNP = (!doneN || !doneP));
  1627. []if (!doneP)
  1628. (posP.x += (offNP.x * 1.000000f));
  1629. []if (!doneP)
  1630. (posP.y += (offNP.y * 1.000000f));
  1631. []if (doneNP)
  1632. {
  1633. []if (!doneN)
  1634. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1635. []if (!doneP)
  1636. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1637. []if (!doneN)
  1638. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1639. []if (!doneP)
  1640. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1641. (doneN = (abs(lumaEndN) >= gradientScaled));
  1642. (doneP = (abs(lumaEndP) >= gradientScaled));
  1643. []if (!doneN)
  1644. (posN.x -= (offNP.x * 1.000000f));
  1645. []if (!doneN)
  1646. (posN.y -= (offNP.y * 1.000000f));
  1647. (doneNP = (!doneN || !doneP));
  1648. []if (!doneP)
  1649. (posP.x += (offNP.x * 1.000000f));
  1650. []if (!doneP)
  1651. (posP.y += (offNP.y * 1.000000f));
  1652. []if (doneNP)
  1653. {
  1654. []if (!doneN)
  1655. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1656. []if (!doneP)
  1657. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1658. []if (!doneN)
  1659. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1660. []if (!doneP)
  1661. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1662. (doneN = (abs(lumaEndN) >= gradientScaled));
  1663. (doneP = (abs(lumaEndP) >= gradientScaled));
  1664. []if (!doneN)
  1665. (posN.x -= (offNP.x * 1.000000f));
  1666. []if (!doneN)
  1667. (posN.y -= (offNP.y * 1.000000f));
  1668. (doneNP = (!doneN || !doneP));
  1669. []if (!doneP)
  1670. (posP.x += (offNP.x * 1.000000f));
  1671. []if (!doneP)
  1672. (posP.y += (offNP.y * 1.000000f));
  1673. []if (doneNP)
  1674. {
  1675. []if (!doneN)
  1676. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1677. []if (!doneP)
  1678. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1679. []if (!doneN)
  1680. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1681. []if (!doneP)
  1682. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1683. (doneN = (abs(lumaEndN) >= gradientScaled));
  1684. (doneP = (abs(lumaEndP) >= gradientScaled));
  1685. []if (!doneN)
  1686. (posN.x -= (offNP.x * 1.500000f));
  1687. []if (!doneN)
  1688. (posN.y -= (offNP.y * 1.500000f));
  1689. (doneNP = (!doneN || !doneP));
  1690. []if (!doneP)
  1691. (posP.x += (offNP.x * 1.500000f));
  1692. []if (!doneP)
  1693. (posP.y += (offNP.y * 1.500000f));
  1694. []if (doneNP)
  1695. {
  1696. []if (!doneN)
  1697. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1698. []if (!doneP)
  1699. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1700. []if (!doneN)
  1701. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1702. []if (!doneP)
  1703. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1704. (doneN = (abs(lumaEndN) >= gradientScaled));
  1705. (doneP = (abs(lumaEndP) >= gradientScaled));
  1706. []if (!doneN)
  1707. (posN.x -= (offNP.x * 2.000000f));
  1708. []if (!doneN)
  1709. (posN.y -= (offNP.y * 2.000000f));
  1710. (doneNP = (!doneN || !doneP));
  1711. []if (!doneP)
  1712. (posP.x += (offNP.x * 2.000000f));
  1713. []if (!doneP)
  1714. (posP.y += (offNP.y * 2.000000f));
  1715. []if (doneNP)
  1716. {
  1717. []if (!doneN)
  1718. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1719. []if (!doneP)
  1720. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1721. []if (!doneN)
  1722. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1723. []if (!doneP)
  1724. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1725. (doneN = (abs(lumaEndN) >= gradientScaled));
  1726. (doneP = (abs(lumaEndP) >= gradientScaled));
  1727. []if (!doneN)
  1728. (posN.x -= (offNP.x * 2.000000f));
  1729. []if (!doneN)
  1730. (posN.y -= (offNP.y * 2.000000f));
  1731. (doneNP = (!doneN || !doneP));
  1732. []if (!doneP)
  1733. (posP.x += (offNP.x * 2.000000f));
  1734. []if (!doneP)
  1735. (posP.y += (offNP.y * 2.000000f));
  1736. []if (doneNP)
  1737. {
  1738. []if (!doneN)
  1739. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1740. []if (!doneP)
  1741. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1742. []if (!doneN)
  1743. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1744. []if (!doneP)
  1745. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1746. (doneN = (abs(lumaEndN) >= gradientScaled));
  1747. (doneP = (abs(lumaEndP) >= gradientScaled));
  1748. []if (!doneN)
  1749. (posN.x -= (offNP.x * 2.000000f));
  1750. []if (!doneN)
  1751. (posN.y -= (offNP.y * 2.000000f));
  1752. (doneNP = (!doneN || !doneP));
  1753. []if (!doneP)
  1754. (posP.x += (offNP.x * 2.000000f));
  1755. []if (!doneP)
  1756. (posP.y += (offNP.y * 2.000000f));
  1757. []if (doneNP)
  1758. {
  1759. []if (!doneN)
  1760. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1761. []if (!doneP)
  1762. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1763. []if (!doneN)
  1764. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1765. []if (!doneP)
  1766. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1767. (doneN = (abs(lumaEndN) >= gradientScaled));
  1768. (doneP = (abs(lumaEndP) >= gradientScaled));
  1769. []if (!doneN)
  1770. (posN.x -= (offNP.x * 2.000000f));
  1771. []if (!doneN)
  1772. (posN.y -= (offNP.y * 2.000000f));
  1773. (doneNP = (!doneN || !doneP));
  1774. []if (!doneP)
  1775. (posP.x += (offNP.x * 2.000000f));
  1776. []if (!doneP)
  1777. (posP.y += (offNP.y * 2.000000f));
  1778. []if (doneNP)
  1779. {
  1780. []if (!doneN)
  1781. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1782. []if (!doneP)
  1783. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1784. []if (!doneN)
  1785. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1786. []if (!doneP)
  1787. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1788. (doneN = (abs(lumaEndN) >= gradientScaled));
  1789. (doneP = (abs(lumaEndP) >= gradientScaled));
  1790. []if (!doneN)
  1791. (posN.x -= (offNP.x * 4.000000f));
  1792. []if (!doneN)
  1793. (posN.y -= (offNP.y * 4.000000f));
  1794. (doneNP = (!doneN || !doneP));
  1795. []if (!doneP)
  1796. (posP.x += (offNP.x * 4.000000f));
  1797. []if (!doneP)
  1798. (posP.y += (offNP.y * 4.000000f));
  1799. []if (doneNP)
  1800. {
  1801. []if (!doneN)
  1802. (lumaEndN = FxaaLuma(tex2Dlod(tex, float4(posN.xy, 0.000000f, 0.000000f))));
  1803. []if (!doneP)
  1804. (lumaEndP = FxaaLuma(tex2Dlod(tex, float4(posP.xy, 0.000000f, 0.000000f))));
  1805. []if (!doneN)
  1806. (lumaEndN = (lumaEndN - (lumaNN * 0.500000f)));
  1807. []if (!doneP)
  1808. (lumaEndP = (lumaEndP - (lumaNN * 0.500000f)));
  1809. (doneN = (abs(lumaEndN) >= gradientScaled));
  1810. (doneP = (abs(lumaEndP) >= gradientScaled));
  1811. []if (!doneN)
  1812. (posN.x -= (offNP.x * 8.000000f));
  1813. []if (!doneN)
  1814. (posN.y -= (offNP.y * 8.000000f));
  1815. (doneNP = (!doneN || !doneP));
  1816. []if (!doneP)
  1817. (posP.x += (offNP.x * 8.000000f));
  1818. []if (!doneP)
  1819. (posP.y += (offNP.y * 8.000000f));
  1820. }
  1821. }
  1822. }
  1823. }
  1824. }
  1825. }
  1826. }
  1827. }
  1828. }
  1829. }
  1830. float dstN = (posM.x - posN.x);
  1831. float dstP = (posP.x - posM.x);
  1832. []if (!horzSpan)
  1833. (dstN = (posM.y - posN.y));
  1834. []if (!horzSpan)
  1835. (dstP = (posP.y - posM.y));
  1836. bool goodSpanN = ((lumaEndN < 0.000000f) != lumaMLTZero);
  1837. float spanLength = (dstP + dstN);
  1838. bool goodSpanP = ((lumaEndP < 0.000000f) != lumaMLTZero);
  1839. float spanLengthRcp = (1.000000f / spanLength);
  1840. bool directionN = (dstN < dstP);
  1841. float dst = min(dstN, dstP);
  1842. bool goodSpan = (directionN ? goodSpanN : goodSpanP);
  1843. float subpixG = (subpixF * subpixF);
  1844. float pixelOffset = ((dst * -spanLengthRcp) + 0.500000f);
  1845. float subpixH = (subpixG * fxaaQualitySubpix);
  1846. float pixelOffsetGood = (goodSpan ? pixelOffset : 0.000000f);
  1847. float pixelOffsetSubpix = max(pixelOffsetGood, subpixH);
  1848. []if (!horzSpan)
  1849. (posM.x += (pixelOffsetSubpix * lengthSign));
  1850. []if (horzSpan)
  1851. (posM.y += (pixelOffsetSubpix * lengthSign));
  1852. return float4(tex2Dlod(tex, float4(posM, 0.000000f, 0.000000f)).xyz, rgbyM.y);
  1853. }
  1854. float4 FXAA(in float4 position, in float2 texcoord)
  1855. {
  1856. return FxaaPixelShader(texcoord, colorGammaSampler, float2(0.000595f, 0.000952f), float4(0.000000f, 0.000000f, 0.000000f, 0.000000f), 1.000000f, 0.000000f, 0.000000f);
  1857. }
  1858. void SharedWrap(in float4 position, in float2 texcoord, out float3 color)
  1859. {
  1860. (color = tex2D(colorGammaSampler, texcoord).xyz);
  1861. float depth = tex2D(depthSampler, texcoord).x;
  1862. []if (depthtoggle)
  1863. {
  1864. const float z_near = 1.000000f;
  1865. const float z_far = 100.000000f;
  1866. (depth = ((2.000000f * z_near) / ((-(z_far - z_near) * depth) + (z_far + z_near))));
  1867. (color.xyz = float3(depth.xxx));
  1868. }
  1869. (color = main(texcoord, color.xyzz).xyz);
  1870. }
  1871. void __main(in float4 position : POSITION, in float2 texcoord : TEXCOORD0, out float4 color : COLOR)
  1872. {
  1873. color = float4(0.0f, 0.0f, 0.0f, 0.0f);
  1874. SharedWrap(position, texcoord, color.xyz);
  1875. }
  1876.  
  1877.  
  1878. 18/01/2015 14:01:13,428 | INFO  | > Successfully compiled effect.
  1879. 18/01/2015 14:01:14,097 | TRACE | Adding depthstencil 06C02380 (Width: 1680, Height: 1050, Format: 1515474505) to list of possible depth candidates ...
  1880. 18/01/2015 14:01:14,227 | TRACE | Switched depth source to depthstencil 03B04BC0.
  1881. 18/01/2015 14:01:22,952 | INFO  | Destroyed effect environment on runtime 068B23C8.
  1882. 18/01/2015 14:01:22,952 | WARN  | Reference count for 'IDirect3DDevice9' object (3492) is inconsistent.
  1883. 18/01/2015 14:01:22,977 | INFO  | Exiting ...
  1884. 18/01/2015 14:01:22,977 | INFO  | Uninstalling 20 hook(s) ...
  1885. 18/01/2015 14:01:22,977 | TRACE | Uninstalling hook for '0x75E7499F' ...
  1886. 18/01/2015 14:01:22,987 | TRACE | > Succeeded.
  1887. 18/01/2015 14:01:22,987 | TRACE | Uninstalling hook for '0x75E748F3' ...
  1888. 18/01/2015 14:01:22,987 | TRACE | > Succeeded.
  1889. 18/01/2015 14:01:22,987 | TRACE | Uninstalling hook for '0x75F87089' ...
  1890. 18/01/2015 14:01:22,987 | TRACE | > Succeeded.
  1891. 18/01/2015 14:01:22,987 | TRACE | Uninstalling hook for '0x75F8CBA6' ...
  1892. 18/01/2015 14:01:22,997 | TRACE | > Succeeded.
  1893. 18/01/2015 14:01:22,997 | TRACE | Uninstalling hook for '0x75F84406' ...
  1894. 18/01/2015 14:01:22,997 | TRACE | > Succeeded.
  1895. 18/01/2015 14:01:22,997 | TRACE | Uninstalling hook for '0x75F9B30C' ...
  1896. 18/01/2015 14:01:23,007 | TRACE | > Succeeded.
  1897. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x75F86B0E' ...
  1898. 18/01/2015 14:01:23,007 | TRACE | > Succeeded.
  1899. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x75F8B6DC' ...
  1900. 18/01/2015 14:01:23,007 | TRACE | > Succeeded.
  1901. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x75F86F01' ...
  1902. 18/01/2015 14:01:23,007 | TRACE | > Succeeded.
  1903. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x75F834B5' ...
  1904. 18/01/2015 14:01:23,007 | TRACE | > Succeeded.
  1905. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A4E71DB' ...
  1906. 18/01/2015 14:01:23,007 | TRACE | > Skipped.
  1907. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A4E7249' ...
  1908. 18/01/2015 14:01:23,007 | TRACE | > Skipped.
  1909. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A4E746D' ...
  1910. 18/01/2015 14:01:23,007 | TRACE | > Skipped.
  1911. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A4E738D' ...
  1912. 18/01/2015 14:01:23,007 | TRACE | > Skipped.
  1913. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A4E72B5' ...
  1914. 18/01/2015 14:01:23,007 | TRACE | > Skipped.
  1915. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A4E7402' ...
  1916. 18/01/2015 14:01:23,007 | TRACE | > Skipped.
  1917. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A4E7321' ...
  1918. 18/01/2015 14:01:23,007 | TRACE | > Skipped.
  1919. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A4A0A62' ...
  1920. 18/01/2015 14:01:23,007 | TRACE | > Skipped.
  1921. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A44CCD5' ...
  1922. 18/01/2015 14:01:23,007 | TRACE | > Skipped.
  1923. 18/01/2015 14:01:23,007 | TRACE | Uninstalling hook for '0x6A462E0E' ...
  1924. 18/01/2015 14:01:23,023 | TRACE | > Succeeded.
  1925. 18/01/2015 14:01:23,023 | INFO  | Exited.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand