Compare commits
643 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3abbafa530 | |||
| 2cd7967ec4 | |||
| 73d0fc4973 | |||
| 450eedda02 | |||
| b715220e5b | |||
| 8e6405bc7c | |||
| a66be45e72 | |||
| 45dfa52512 | |||
| 784605f974 | |||
| 4e541dc0ba | |||
| fba60f05a0 | |||
| 1d7ba2210a | |||
| 8885412350 | |||
| d712a83c69 | |||
| 6f756acb33 | |||
| a1dea6a756 | |||
| 2b400a7f50 | |||
| 3499127b91 | |||
| 2cfd6c20e7 | |||
| 69a2d10c57 | |||
| cbd2561e22 | |||
| 88b46d1720 | |||
| 98616f443b | |||
| 2fb6ab4f44 | |||
| 57cb15486e | |||
| d50908e10b | |||
| 0b71549834 | |||
| 20ebe3ac85 | |||
| a545520d6b | |||
| f4516718a0 | |||
| 7c557d627a | |||
| 8f8df34342 | |||
| 04d44d8a15 | |||
| b2f22b2d87 | |||
| a19c17cfb9 | |||
| a3a44f0cef | |||
| 01eb42dd10 | |||
| bf30d7cd29 | |||
| ed7cc96889 | |||
| b17070adf5 | |||
| 698545006f | |||
| c7a3fb4341 | |||
| db6cd541c2 | |||
| 0b15c369d6 | |||
| 31fb4f6a15 | |||
| c43f724189 | |||
| ff87cdfebb | |||
| b8922ee846 | |||
| 1e8e5c0f7c | |||
| 9b816a321c | |||
| d8c224112b | |||
| 6c9b1f6be0 | |||
| 6a1378ebdb | |||
| 210342d337 | |||
| 49df15c021 | |||
| 07b02e6cf3 | |||
| 183e87d147 | |||
| 0eba11f1eb | |||
| a4cdca80fc | |||
| 5dadaf70f9 | |||
| bb7d4f7812 | |||
| 7af0dc1b43 | |||
| ad7a8e528a | |||
| ed9f3f3d55 | |||
| f781fd8ab6 | |||
| 9caf80bdc9 | |||
| b23cf5f1d8 | |||
| ce1465ae98 | |||
| 9d8f75d957 | |||
| 982e8df9b6 | |||
| 4c280ef015 | |||
| 142d81065a | |||
| 3089cc3b59 | |||
| 8d990018b5 | |||
| cc59a2b5fe | |||
| 4923d63a94 | |||
| 6f18a8a3ff | |||
| 8f895e54cd | |||
| ad37b8361b | |||
| 64609f823c | |||
| dbd48ac5b4 | |||
| e59de73948 | |||
| f16372efad | |||
| 94060e16b9 | |||
| 095f20ab6a | |||
| 9e9233fd76 | |||
| ba901d4453 | |||
| a6e9abfceb | |||
| fe1cab6a7f | |||
| 4915e9fea0 | |||
| 3601d36955 | |||
| 7953f6cb83 | |||
| 1d7e88635f | |||
| 20572c53af | |||
| 2104dbc682 | |||
| 1fdc43699c | |||
| 17b3434342 | |||
| 3b52914416 | |||
| 3a39dad30f | |||
| db24ea950e | |||
| d47b452808 | |||
| 03ecb23bae | |||
| 6cf91b1da4 | |||
| 22209108c9 | |||
| 0ac91fa34d | |||
| 4b6e75c0af | |||
| e16cbdbfd0 | |||
| bdb69d57dd | |||
| 6f35b27c29 | |||
| ceeefd1796 | |||
| bfec5d6a8d | |||
| 4197e7b21e | |||
| e1e32ecbfd | |||
| 41aefb1bda | |||
| 1ef8bb723c | |||
| 163704085a | |||
| 8c310b7c5c | |||
| 99d1c1903f | |||
| cced83ca96 | |||
| adaaaa3e3f | |||
| bbb5b68e91 | |||
| ff1fba403d | |||
| 8beb732cb9 | |||
| 9d26004864 | |||
| cfb98a39b0 | |||
| da616fc578 | |||
| 22367498da | |||
| 51c49cfac9 | |||
| 1f495205af | |||
| a4478b9497 | |||
| 5fea0cd693 | |||
| c25305e695 | |||
| 928d318f24 | |||
| 2dfd676c5e | |||
| 74e3d1ad8f | |||
| 47b255ed3e | |||
| 32fe383c10 | |||
| a590336118 | |||
| 1ae80da888 | |||
| 8d6fa34108 | |||
| 0a1d8f6b3b | |||
| 37fbc7600e | |||
| 1633d8ebb6 | |||
| b9cd6974fb | |||
| 2a3316ac5e | |||
| d33cf5f6d9 | |||
| 3d43586e0f | |||
| e4079f011d | |||
| 00f2548f1a | |||
| 3c94814e9f | |||
| 033c5eb188 | |||
| 726937dad7 | |||
| 2a53143bc4 | |||
| f90808749e | |||
| fd4af3964d | |||
| d77a7921b0 | |||
| 543c7efc0f | |||
| 2de20b93c7 | |||
| 1019550d4a | |||
| ea54505c6d | |||
| 7de42c1681 | |||
| 0af86d8cb8 | |||
| b184650835 | |||
| 9f7f764359 | |||
| 9ff0ad4734 | |||
| 63c9cdfc31 | |||
| e346fa1dca | |||
| 66d1015399 | |||
| b67649dfbd | |||
| 5c6b5ad948 | |||
| 6061a0a344 | |||
| fb3601dac6 | |||
| 60f868a08b | |||
| 3dbff3cab7 | |||
| b6652a61c6 | |||
| 5010903c78 | |||
| 25790bd0c9 | |||
| 3239150a61 | |||
| 9aff782907 | |||
| 7f3a32a69b | |||
| fe0e24357a | |||
| 1f1c3adaf1 | |||
| 2c12ea2fba | |||
| 5c5824bbb7 | |||
| d586269eec | |||
| 528a009b6b | |||
| ee0f54434e | |||
| 74f4f8e4da | |||
| 5f6d2b175d | |||
| 8440c596ac | |||
| 12558567ec | |||
| a2677a25a9 | |||
| a8579cadcc | |||
| 53baccaf96 | |||
| e210e58644 | |||
| 0d8ebd332e | |||
| 4cc7bb96f5 | |||
| 2b76c369ac | |||
| 85f351663b | |||
| 047821f7d2 | |||
| dda8912332 | |||
| 57279b14eb | |||
| b80f2118bd | |||
| 89688f93e1 | |||
| c27a1ddb41 | |||
| 7a15ed3e43 | |||
| 93fe79c0ac | |||
| 92eb19291d | |||
| 7b041bbaa5 | |||
| f89ba20d9c | |||
| 0ba1c124f7 | |||
| df48d71045 | |||
| 5437f7cc1a | |||
| f221bc6361 | |||
| 02dbd07506 | |||
| bd90280da7 | |||
| 9192375ddb | |||
| 4560b98336 | |||
| ec7aece135 | |||
| 511682db87 | |||
| 2e947ab85a | |||
| 8da4e546da | |||
| 3070493729 | |||
| e4a4e7926e | |||
| 64b2b23201 | |||
| 5a366bc1a0 | |||
| e34e4caf08 | |||
| cb92e3c54c | |||
| 039bf8253a | |||
| a8a34b391b | |||
| 5708f2ae0b | |||
| d9dc23afc1 | |||
| 62ff305fad | |||
| 98d8543334 | |||
| 400c4bb570 | |||
| d0955a5ac0 | |||
| 33513834df | |||
| 85fe22d7a7 | |||
| de2d041e47 | |||
| 07c6c5a841 | |||
| 427c3a9099 | |||
| e2319ceca3 | |||
| b40a890d31 | |||
| 4007c5e29c | |||
| 27515585db | |||
| db284c58a3 | |||
| 7ebdce5e42 | |||
| 2cd244fbd3 | |||
| 9fa2a5ff93 | |||
| 090225bef2 | |||
| 27d266546e | |||
| b1640515c4 | |||
| fe6226b276 | |||
| ea34207d07 | |||
| 56322005e2 | |||
| df691e62f8 | |||
| 5ee8785ede | |||
| 443ce106e2 | |||
| d861518d2e | |||
| d5a529e00a | |||
| d8e79101e7 | |||
| a7463872a8 | |||
| 5fdd8a4b72 | |||
| 982accde6d | |||
| 282b9066b8 | |||
| 787d788055 | |||
| 00498106fa | |||
| 5633d1bcb9 | |||
| a7b31fbf9b | |||
| b69e42b79c | |||
| 1dab45f407 | |||
| 4afb74c7b3 | |||
| 5d34575a91 | |||
| 134c8b99aa | |||
| 4637017707 | |||
| f3bd0e469c | |||
| 10adf1eba1 | |||
| da85c1f55c | |||
| f31ba5cad8 | |||
| 9cbaeb21f5 | |||
| 3238861f64 | |||
| 5239a2b410 | |||
| 41a58f3f2c | |||
| 1fbdabdcd0 | |||
| 2e2404dc5f | |||
| 1db65ac882 | |||
| 9f99d74e53 | |||
| 3c0e42ea78 | |||
| b8ff4ae2e0 | |||
| 2e06d1ce2a | |||
| 0872d10f43 | |||
| 1b4dded11e | |||
| 2bd3c0f74f | |||
| 02cb0f938b | |||
| 9ba117cde3 | |||
| 995e5bc6ff | |||
| e548dbfb19 | |||
| bc8cc75ad8 | |||
| 0d3ecd6dd2 | |||
| cf1f8487e7 | |||
| 62a39911dd | |||
| 84ddba5814 | |||
| 4386dc8774 | |||
| 37295e1ec7 | |||
| 7167a6d15a | |||
| 020e6f671c | |||
| 8158052ec7 | |||
| 857691983f | |||
| 6ec34a2dec | |||
| 69b69f9ea9 | |||
| 3925c6221c | |||
| 2bf6fac77d | |||
| b49e5e9984 | |||
| 7c923198e0 | |||
| 8eb59703bd | |||
| 47a3ac36cd | |||
| 98473487bc | |||
| 5dcde83f22 | |||
| d4d27b88f0 | |||
| 3294624849 | |||
| fc96620045 | |||
| 0729ffdafe | |||
| 4cabf9de53 | |||
| 2522d84a21 | |||
| c6e909c867 | |||
| 18cd7b657e | |||
| b815ba51a5 | |||
| b89e3bb0ff | |||
| 4967b27ff7 | |||
| ffce2005da | |||
| 37511c0e6b | |||
| eb1e39b3c4 | |||
| 6c45fff205 | |||
| e96e6bea86 | |||
| ca0c3eb7d6 | |||
| 78afe60343 | |||
| 1fc26a63a7 | |||
| e43515f653 | |||
| bc65057eb7 | |||
| a881c90b2e | |||
| 1978949b22 | |||
| d4839b9c78 | |||
| aa58665740 | |||
| f685c67275 | |||
| 3b27ae5fa9 | |||
| 3a8e5e0bbe | |||
| 211491f3d2 | |||
| 6a74ebd62e | |||
| dc2a9c0702 | |||
| 73d762cf0c | |||
| 5ee62be166 | |||
| c147e3bff4 | |||
| 1f1ed2bf60 | |||
| 31d9802cf4 | |||
| bbbfa4d5fe | |||
| 79220556df | |||
| befaf65ab1 | |||
| 54c322da7c | |||
| d05c09a33d | |||
| 641d04a50e | |||
| 81f62f58d7 | |||
| bdc7b3b754 | |||
| d0a6f82cc2 | |||
| eb6050cf27 | |||
| 48b3a34182 | |||
| 3377229966 | |||
| c2082925c7 | |||
| ec443b811b | |||
| f82e370392 | |||
| 1303740611 | |||
| edbf0761d2 | |||
| e6a06832bf | |||
| a116a1fb8d | |||
| c87f2f5b56 | |||
| e4e5745101 | |||
| e9c8584656 | |||
| b30d22fa45 | |||
| 85fd540b97 | |||
| b70bce1746 | |||
| d39b6d7120 | |||
| c0412cc4f4 | |||
| 89ac470733 | |||
| 72c0474397 | |||
| 375222a089 | |||
| 2eb51f9a83 | |||
| 785f8915b7 | |||
| f53a5ff536 | |||
| 5e6c518c39 | |||
| b7459c7311 | |||
| e43ef605c2 | |||
| ed908a260e | |||
| 2369b6a34a | |||
| 1a64df9116 | |||
| c3b2c55d51 | |||
| 04c0f19584 | |||
| 523d961f28 | |||
| 8c971cd11e | |||
| f9d5c74507 | |||
| 4a2e8d0a69 | |||
| 8125e406bb | |||
| c74b66f728 | |||
| 778e4e0ea7 | |||
| e72b2b385f | |||
| afbbe6cf3f | |||
| bdbced0bbc | |||
| 3d7d52e779 | |||
| 94f54abb62 | |||
| 05a7fd45c3 | |||
| 389dfb44de | |||
| f7e48d9b23 | |||
| 69b9c1b9ee | |||
| abcc319168 | |||
| f7955a5c4e | |||
| 70de677266 | |||
| 5525527ecd | |||
| 650d15a665 | |||
| a5bcff5231 | |||
| 782c3a0e3e | |||
| 8b1e0df222 | |||
| 1d228d28bf | |||
| 3523b1a85f | |||
| 1acac3845e | |||
| 78d6fe6b50 | |||
| 4cedd0f30c | |||
| 2d27e0997f | |||
| 21e6c2603c | |||
| 90906baae2 | |||
| 3766488114 | |||
| 7bb5ffc2a4 | |||
| ae63508049 | |||
| 7303377358 | |||
| 2a4057cbc2 | |||
| bc6b70f4f9 | |||
| 225cc38ea8 | |||
| 6e2b854544 | |||
| ab37cc72a9 | |||
| acd064c364 | |||
| 4b6fce7e5d | |||
| 551459022d | |||
| 04a7dab7e7 | |||
| 8e02d449fb | |||
| 1859d7c2f5 | |||
| 12d960e787 | |||
| 426b53e46d | |||
| 2935b85543 | |||
| 26d4ebd3d5 | |||
| 3546793e12 | |||
| c5135372ca | |||
| eb75a3c2fb | |||
| 74b23d0e00 | |||
| 7731db638f | |||
| 8428f28239 | |||
| 5465652466 | |||
| c5bfdc66a4 | |||
| a2eaab0ca3 | |||
| d76fd634a5 | |||
| 7e609984b4 | |||
| 1a711ea14f | |||
| 70b9db7598 | |||
| 3ec856778c | |||
| 158c29e598 | |||
| a7e512bd50 | |||
| 37a49c0d2e | |||
| 27a1dc8966 | |||
| 49aa4abc20 | |||
| 703152cb2f | |||
| 4524edb899 | |||
| 42bb4483b3 | |||
| 77dcc9b7a3 | |||
| 9d205cbb7d | |||
| cad9bad950 | |||
| ca935f4f08 | |||
| b3d18f3b0e | |||
| 5345d1f685 | |||
| 0a458d94c4 | |||
| 60d2670e2e | |||
| e44c09aa6e | |||
| 0b6d3a313e | |||
| 8ed2bb4179 | |||
| 1523fa98ec | |||
| fe430e81ad | |||
| b9652949b0 | |||
| c53a463bb1 | |||
| a6c14bd986 | |||
| 3c841b1be1 | |||
| ddb9b327d4 | |||
| 75b61f2bef | |||
| 8a01a31e8d | |||
| 493787d4d6 | |||
| 997d2a4db9 | |||
| 2b9aa0cf71 | |||
| 991abb1cf8 | |||
| 03524caebf | |||
| 4ac9406b90 | |||
| 47cc49a962 | |||
| d52e70af6c | |||
| e554b7f531 | |||
| 3d76b2c10f | |||
| a27d69f852 | |||
| 9fb4624b03 | |||
| 017492dbfa | |||
| 0668a23167 | |||
| 738e7d2516 | |||
| 96ed170871 | |||
| 58491e6d23 | |||
| e32ad93020 | |||
| 0a27d277a0 | |||
| 74b95a6ebb | |||
| db08204ead | |||
| c99793d2a4 | |||
| e8774ebd29 | |||
| db0cb04b83 | |||
| bd48829a09 | |||
| 52245d36d6 | |||
| 1eac02d173 | |||
| ea4224ba67 | |||
| 1d7448ec83 | |||
| c7c6acfc78 | |||
| 7735849b7f | |||
| fbc1e6c861 | |||
| 598876d8e3 | |||
| a9d66d6535 | |||
| da4008575b | |||
| 49a67be419 | |||
| 430ef09ab1 | |||
| 34c0d6c442 | |||
| 60d6e6b9ce | |||
| 5fc9cb154b | |||
| aba0e46073 | |||
| 016b96e9f0 | |||
| 8bf01146f1 | |||
| 4c98e0a335 | |||
| 3ded5326a2 | |||
| 52bb5803b3 | |||
| cff57e5697 | |||
| 251de1b643 | |||
| de8a6bea58 | |||
| 94799a9e28 | |||
| ceb64afd4a | |||
| 63b8b0cb50 | |||
| 787e7b423c | |||
| 9d56093381 | |||
| 26b2cb291e | |||
| f59ab696e2 | |||
| fd425363b6 | |||
| 3c4fd80f6e | |||
| 2b9a03d9bc | |||
| a9061eb44f | |||
| f3324ae2fd | |||
| 94fbc28ee0 | |||
| f10af9d8fb | |||
| 95e90d5c37 | |||
| 0ca6e70b66 | |||
| 8e79529e4e | |||
| 79669a8789 | |||
| c41a446ae9 | |||
| 446a6f22fa | |||
| 2b83975ea2 | |||
| fc138bbbbb | |||
| e56b280f5b | |||
| a685962d32 | |||
| 4938c7e64b | |||
| 3a9edabd03 | |||
| bcc4a2c0a4 | |||
| 5d0c27dff3 | |||
| 9a0d4ae53b | |||
| 6e6f2859ab | |||
| f608d2537f | |||
| 2bf0a7af8e | |||
| 5a0d8f44ff | |||
| 3e9b6caa1c | |||
| a917397090 | |||
| 6c4e61a924 | |||
| 1271a337c5 | |||
| a5af0a1c81 | |||
| 4a18185e81 | |||
| f8670a497e | |||
| b847b9ccba | |||
| dff1b37a3b | |||
| 80d7c854ab | |||
| d5297f9047 | |||
| 92ab3d005e | |||
| 67d1e43f6c | |||
| 67b6604a67 | |||
| a1fbf79ebf | |||
| b08d2001fd | |||
| e89e6edfb8 | |||
| b2e91b8a07 | |||
| 532203040f | |||
| bb2f8f34dc | |||
| d5060e9067 | |||
| 891d65dc87 | |||
| 832a4bf86a | |||
| 885d2f0771 | |||
| 18321937e4 | |||
| 6196bb31fe | |||
| 92f5377f70 | |||
| 9107897b76 | |||
| aa9161a16f | |||
| c10cdc3d90 | |||
| d58584e1fd | |||
| 8f99a3df76 | |||
| abbb0eb85c | |||
| 85f88efa95 | |||
| 8ed7b0f455 | |||
| 8d0a779ff4 | |||
| 8cca7f884b | |||
| 10d09711d9 | |||
| c85ee9ff52 | |||
| cd66981c1d | |||
| 3dac0d4786 | |||
| 3d35277a87 | |||
| 33fe5e7518 | |||
| e794911755 | |||
| b780e33a5b | |||
| 6da3dff5de | |||
| 8e28fef91f | |||
| aed6f0403d | |||
| 09c995d67b | |||
| 07760f7acd | |||
| 748b857e57 | |||
| 8271a2b718 | |||
| 3fe1e2c763 | |||
| 8c075c78cb | |||
| 8082f5f909 | |||
| 1fa06546f4 | |||
| 749895f2ca | |||
| 8db4c3cfff | |||
| 5d4c168e1e | |||
| a857e6daa0 | |||
| 6b3e911b40 | |||
| 311b95b9fc | |||
| 7979831f5c | |||
| 9dc49f7165 | |||
| 788b1a7531 | |||
| 79cacbf36e | |||
| 1168176016 | |||
| 9a4aa20bbb | |||
| 88879e441e | |||
| 70ca42794a | |||
| 9a3a6c8a72 | |||
| f67371d524 | |||
| 7e2e764e1e |
@@ -0,0 +1,21 @@
|
||||
name: Build Android
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
# Game
|
||||
game-windows:
|
||||
name: Game (Android, Release ARM64)
|
||||
runs-on: "windows-2019"
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Vulkan
|
||||
uses: ./.github/actions/vulkan
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
git lfs version
|
||||
git lfs pull
|
||||
- name: Build
|
||||
run: |
|
||||
.\Development\Scripts\Windows\CallBuildTool.bat -build -log -arch=ARM64 -platform=Android -configuration=Release -buildtargets=FlaxGame
|
||||
@@ -29,6 +29,10 @@ jobs:
|
||||
./Development/Scripts/Linux/CallBuildTool.sh -build -log -arch=x64 -platform=Linux -configuration=Debug -buildtargets="Flax.Build.Tests"
|
||||
- name: Test
|
||||
run: |
|
||||
Binaries/Tests/Linux/x64/Development/FlaxTests
|
||||
Binaries/Editor/Linux/Development/FlaxTests
|
||||
mono Source/Platforms/DotNet/NUnit/nunit3-console.exe Binaries/Tools/FlaxEngine.Tests.dll --framework=mono-4.0
|
||||
mono Source/Platforms/DotNet/NUnit/nunit3-console.exe Binaries/Tools/Flax.Build.Tests.dll --framework=mono-4.0
|
||||
- name: Test UseLargeWorlds
|
||||
run: |
|
||||
./Development/Scripts/Linux/CallBuildTool.sh -build -log -arch=x64 -platform=Linux -configuration=Development -buildtargets=FlaxTestsTarget -UseLargeWorlds=true
|
||||
Binaries/Editor/Linux/Development/FlaxTests
|
||||
|
||||
@@ -10,6 +10,8 @@ Source/*.csproj
|
||||
/Package_*/
|
||||
!Source/Engine/Debug
|
||||
/Source/Platforms/Editor/Linux/Mono/etc/mono/registry
|
||||
PackageEditor_Cert.bat
|
||||
PackagePlatforms_Cert.bat
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
@@ -148,5 +150,6 @@ bin/
|
||||
obj/
|
||||
*.vcxproj.filters
|
||||
.vscode/
|
||||
.idea/
|
||||
*.code-workspace
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -25,7 +25,7 @@ void PS_GBuffer(
|
||||
#endif
|
||||
)
|
||||
{
|
||||
Light = 0;
|
||||
Light = float4(0, 0, 0, 1);
|
||||
|
||||
#if USE_DITHERED_LOD_TRANSITION
|
||||
// LOD masking
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
#include "./Flax/LightingCommon.hlsl"
|
||||
#if USE_REFLECTIONS
|
||||
#include "./Flax/ReflectionsCommon.hlsl"
|
||||
#define MATERIAL_REFLECTIONS_SSR 1
|
||||
#if MATERIAL_REFLECTIONS == MATERIAL_REFLECTIONS_SSR
|
||||
#include "./Flax/SSR.hlsl"
|
||||
#endif
|
||||
#endif
|
||||
#include "./Flax/Lighting.hlsl"
|
||||
#include "./Flax/ShadowsSampling.hlsl"
|
||||
@@ -93,9 +97,34 @@ float4 PS_Forward(PixelInput input) : SV_Target0
|
||||
light += GetLighting(ViewPos, localLight, gBuffer, shadowMask, true, isSpotLight);
|
||||
}
|
||||
|
||||
#if USE_REFLECTIONS
|
||||
// Calculate lighting from Global Illumination
|
||||
#if USE_GI
|
||||
light += GetGlobalIlluminationLighting(gBuffer);
|
||||
#endif
|
||||
|
||||
// Calculate reflections
|
||||
light.rgb += GetEnvProbeLighting(ViewPos, EnvProbe, EnvironmentProbe, gBuffer) * light.a;
|
||||
#if USE_REFLECTIONS
|
||||
float3 reflections = SampleReflectionProbe(ViewPos, EnvProbe, EnvironmentProbe, gBuffer.WorldPos, gBuffer.Normal, gBuffer.Roughness).rgb;
|
||||
|
||||
#if MATERIAL_REFLECTIONS == MATERIAL_REFLECTIONS_SSR
|
||||
// Screen Space Reflections
|
||||
Texture2D sceneDepthTexture = MATERIAL_REFLECTIONS_SSR_DEPTH; // Material Generator inserts depth and color buffers and plugs it via internal define
|
||||
Texture2D sceneColorTexture = MATERIAL_REFLECTIONS_SSR_COLOR;
|
||||
float2 screenUV = materialInput.SvPosition.xy * ScreenSize.zw;
|
||||
float stepSize = ScreenSize.z; // 1 / screenWidth
|
||||
float maxSamples = 48;
|
||||
float worldAntiSelfOcclusionBias = 0.1f;
|
||||
float brdfBias = 0.82f;
|
||||
float drawDistance = 5000.0f;
|
||||
float3 hit = TraceScreenSpaceReflection(screenUV, gBuffer, sceneDepthTexture, ViewPos, ViewMatrix, ViewProjectionMatrix, stepSize, maxSamples, false, 0.0f, worldAntiSelfOcclusionBias, brdfBias, drawDistance);
|
||||
if (hit.z > 0)
|
||||
{
|
||||
float3 screenColor = sceneColorTexture.SampleLevel(SamplerPointClamp, hit.xy, 0).rgb;
|
||||
reflections = lerp(reflections, screenColor, hit.z);
|
||||
}
|
||||
#endif
|
||||
|
||||
light.rgb += reflections * GetReflectionSpecularLighting(ViewPos, gBuffer) * light.a;
|
||||
#endif
|
||||
|
||||
// Add lighting (apply ambient occlusion)
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
@0// Global Illumination: Defines
|
||||
#define USE_GI 1
|
||||
@1// Global Illumination: Includes
|
||||
#include "./Flax/GI/DDGI.hlsl"
|
||||
#include "./Flax/LightingCommon.hlsl"
|
||||
@2// Global Illumination: Constants
|
||||
DDGIData DDGI;
|
||||
@3// Global Illumination: Resources
|
||||
Texture2D<snorm float4> ProbesState : register(t__SRV__);
|
||||
Texture2D<float4> ProbesDistance : register(t__SRV__);
|
||||
Texture2D<float4> ProbesIrradiance : register(t__SRV__);
|
||||
@4// Global Illumination: Utilities
|
||||
float4 GetGlobalIlluminationLighting(GBufferSample gBuffer)
|
||||
{
|
||||
float3 irradiance = SampleDDGIIrradiance(DDGI, ProbesState, ProbesDistance, ProbesIrradiance, gBuffer.WorldPos, gBuffer.Normal);
|
||||
float3 diffuseColor = GetDiffuseColor(gBuffer);
|
||||
float3 diffuse = Diffuse_Lambert(diffuseColor);
|
||||
return float4(diffuse * irradiance, saturate(length(irradiance)));
|
||||
}
|
||||
|
||||
@5// Global Illumination: Shaders
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "./Flax/Common.hlsl"
|
||||
#include "./Flax/GBufferCommon.hlsl"
|
||||
#include "./Flax/Matrix.hlsl"
|
||||
#include "./Flax/Noise.hlsl"
|
||||
@7
|
||||
// Primary constant buffer
|
||||
META_CB_BEGIN(0, Data)
|
||||
@@ -62,68 +63,6 @@ float Rand(inout uint seed)
|
||||
return asfloat((seed >> 9) | 0x3f800000) - 1.0f;
|
||||
}
|
||||
|
||||
float4 Mod289(float4 x)
|
||||
{
|
||||
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
||||
}
|
||||
|
||||
float4 Perm(float4 x)
|
||||
{
|
||||
return Mod289(((x * 34.0) + 1.0) * x);
|
||||
}
|
||||
|
||||
float Noise(float3 p)
|
||||
{
|
||||
float3 a = floor(p);
|
||||
float3 d = p - a;
|
||||
d = d * d * (3.0 - 2.0 * d);
|
||||
|
||||
float4 b = a.xxyy + float4(0.0, 1.0, 0.0, 1.0);
|
||||
float4 k1 = Perm(b.xyxy);
|
||||
float4 k2 = Perm(k1.xyxy + b.zzww);
|
||||
|
||||
float4 c = k2 + a.zzzz;
|
||||
float4 k3 = Perm(c);
|
||||
float4 k4 = Perm(c + 1.0);
|
||||
|
||||
float4 o1 = frac(k3 * (1.0 / 41.0));
|
||||
float4 o2 = frac(k4 * (1.0 / 41.0));
|
||||
|
||||
float4 o3 = o2 * d.z + o1 * (1.0 - d.z);
|
||||
float2 o4 = o3.yw * d.x + o3.xz * (1.0 - d.x);
|
||||
|
||||
return o4.y * d.y + o4.x * (1.0 - d.y);
|
||||
}
|
||||
|
||||
float3 Noise3D(float3 p)
|
||||
{
|
||||
float o = Noise(p);
|
||||
float a = Noise(p + float3(0.0001f, 0.0f, 0.0f));
|
||||
float b = Noise(p + float3(0.0f, 0.0001f, 0.0f));
|
||||
float c = Noise(p + float3(0.0f, 0.0f, 0.0001f));
|
||||
|
||||
float3 grad = float3(o - a, o - b, o - c);
|
||||
float3 other = abs(grad.zxy);
|
||||
return normalize(cross(grad,other));
|
||||
}
|
||||
|
||||
float3 Noise3D(float3 position, int octaves, float roughness)
|
||||
{
|
||||
float weight = 0.0f;
|
||||
float3 noise = float3(0.0, 0.0, 0.0);
|
||||
float scale = 1.0f;
|
||||
for (int i = 0; i < octaves; i++)
|
||||
{
|
||||
float curWeight = pow((1.0-((float)i / octaves)), lerp(2.0, 0.2, roughness));
|
||||
|
||||
noise += Noise3D(position * scale) * curWeight;
|
||||
weight += curWeight;
|
||||
|
||||
scale *= 1.72531;
|
||||
}
|
||||
return noise / weight;
|
||||
}
|
||||
|
||||
// Reprojects the world space position from the given UV and raw device depth
|
||||
float3 ReprojectPosition(float2 uv, float rawDepth)
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ float3 ViewDir;
|
||||
float TimeParam;
|
||||
float4 ViewInfo;
|
||||
float4 ScreenSize;
|
||||
float4 ViewSize;
|
||||
@1META_CB_END
|
||||
|
||||
// Shader resources
|
||||
|
||||
@@ -76,8 +76,8 @@ struct VertexOutput
|
||||
#if USE_CUSTOM_VERTEX_INTERPOLATORS
|
||||
float4 CustomVSToPS[CUSTOM_VERTEX_INTERPOLATORS_COUNT] : TEXCOORD9;
|
||||
#endif
|
||||
float3 InstanceOrigin : TEXCOORD6;
|
||||
float InstanceParams : TEXCOORD7; // x-PerInstanceRandom
|
||||
nointerpolation float3 InstanceOrigin : TEXCOORD6;
|
||||
nointerpolation float InstanceParams : TEXCOORD7; // x-PerInstanceRandom
|
||||
};
|
||||
|
||||
// Interpolants passed to the pixel shader
|
||||
@@ -94,8 +94,8 @@ struct PixelInput
|
||||
#if USE_CUSTOM_VERTEX_INTERPOLATORS
|
||||
float4 CustomVSToPS[CUSTOM_VERTEX_INTERPOLATORS_COUNT] : TEXCOORD9;
|
||||
#endif
|
||||
float3 InstanceOrigin : TEXCOORD6;
|
||||
float InstanceParams : TEXCOORD7; // x-PerInstanceRandom
|
||||
nointerpolation float3 InstanceOrigin : TEXCOORD6;
|
||||
nointerpolation float InstanceParams : TEXCOORD7; // x-PerInstanceRandom
|
||||
bool IsFrontFace : SV_IsFrontFace;
|
||||
};
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ float4x4 WorldMatrix;
|
||||
float4x4 ViewMatrix;
|
||||
float4x4 PrevViewProjectionMatrix;
|
||||
float4x4 PrevWorldMatrix;
|
||||
float4x4 MainViewProjectionMatrix;
|
||||
float4 MainScreenSize;
|
||||
float3 ViewPos;
|
||||
float ViewFar;
|
||||
float3 ViewDir;
|
||||
@@ -43,8 +45,8 @@ struct GeometryData
|
||||
#endif
|
||||
float3 WorldNormal : TEXCOORD3;
|
||||
float4 WorldTangent : TEXCOORD4;
|
||||
float3 InstanceOrigin : TEXCOORD5;
|
||||
float2 InstanceParams : TEXCOORD6; // x-PerInstanceRandom, y-LODDitherFactor
|
||||
nointerpolation float3 InstanceOrigin : TEXCOORD5;
|
||||
nointerpolation float2 InstanceParams : TEXCOORD6; // x-PerInstanceRandom, y-LODDitherFactor
|
||||
float3 PrevWorldPosition : TEXCOORD7;
|
||||
};
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -2,6 +2,8 @@
|
||||
|
||||
Custom fork: [https://github.com/FlaxEngine/mono](https://github.com/FlaxEngine/mono) with custom features for C# assemblies hot-reloading at runtime without domain unload (more: [https://flaxengine.com/blog/flax-facts-16-scripts-hot-reload/](https://flaxengine.com/blog/flax-facts-16-scripts-hot-reload/)).
|
||||
|
||||
Startup docs about building mono: [https://www.mono-project.com/docs/compiling-mono/](https://www.mono-project.com/docs/compiling-mono/)
|
||||
|
||||
### Notes
|
||||
|
||||
Some useful notes and tips for devs:
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 341 KiB After Width: | Height: | Size: 263 KiB |
+7
-3
@@ -2,11 +2,15 @@
|
||||
"Name": "Flax",
|
||||
"Version": {
|
||||
"Major": 1,
|
||||
"Minor": 3,
|
||||
"Build": 6228
|
||||
"Minor": 4,
|
||||
"Build": 6334
|
||||
},
|
||||
"Company": "Flax",
|
||||
"Copyright": "Copyright (c) 2012-2022 Wojciech Figat. All rights reserved.",
|
||||
"GameTarget": "FlaxGame",
|
||||
"EditorTarget": "FlaxEditor"
|
||||
"EditorTarget": "FlaxEditor",
|
||||
"Configuration": {
|
||||
"UseCSharp": true,
|
||||
"UseLargeWorlds": false
|
||||
}
|
||||
}
|
||||
@@ -237,6 +237,7 @@
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Ackermann/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=analytics/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Antialiasing/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=ascender/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=backbuffer/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=backbuffers/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=backends/@EntryIndexedValue">True</s:Boolean>
|
||||
@@ -254,6 +255,7 @@
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=comperand/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=coord/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=cubemap/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=defragmentation/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Delaunay/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Defocus/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Deinitialize/@EntryIndexedValue">True</s:Boolean>
|
||||
@@ -340,6 +342,7 @@
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=subresource/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=subresources/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=taskbar/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Teleport/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=texcoord/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=texcoords/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=texel/@EntryIndexedValue">True</s:Boolean>
|
||||
@@ -360,6 +363,7 @@
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Upgrader/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=upgraders/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Visject/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=voxel/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=voxels/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=vsync/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=vtable/@EntryIndexedValue">True</s:Boolean>
|
||||
|
||||
@@ -18,9 +18,9 @@ This repository contains full source code of the Flax Engine (excluding NDA-prot
|
||||
|
||||
# Screenshots
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
# Getting started
|
||||
|
||||
|
||||
@@ -18,6 +18,11 @@ indent_size = 4
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
# Shader files
|
||||
[*.{hlsl,shader,glsl}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
# XAML files
|
||||
[*.xaml]
|
||||
indent_style = space
|
||||
|
||||
@@ -73,7 +73,7 @@ void EditorAnalytics::StartSession()
|
||||
}
|
||||
if (ScreenResolution.IsEmpty())
|
||||
{
|
||||
const Vector2 desktopSize = Platform::GetDesktopSize();
|
||||
const auto desktopSize = Platform::GetDesktopSize();
|
||||
ScreenResolution = StringAnsi(StringUtils::ToString((int32)desktopSize.X)) + "x" + StringAnsi(StringUtils::ToString((int32)desktopSize.Y));
|
||||
}
|
||||
if (UserLanguage.IsEmpty())
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace FlaxEditor.Content.Create
|
||||
_settingsEditor = new CustomEditorPresenter(null);
|
||||
_settingsEditor.Panel.Parent = panel;
|
||||
|
||||
_dialogSize = new Vector2(TotalWidth, panel.Bottom);
|
||||
_dialogSize = new Float2(TotalWidth, panel.Bottom);
|
||||
|
||||
_settingsEditor.Select(_entry.Settings);
|
||||
}
|
||||
@@ -102,7 +102,7 @@ namespace FlaxEditor.Content.Create
|
||||
{
|
||||
base.SetupWindowSettings(ref settings);
|
||||
|
||||
settings.MinimumSize = new Vector2(300, 400);
|
||||
settings.MinimumSize = new Float2(300, 400);
|
||||
settings.HasSizingFrame = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace FlaxEditor.Content.GUI
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override DragDropEffect OnDragEnter(ref Vector2 location, DragData data)
|
||||
public override DragDropEffect OnDragEnter(ref Float2 location, DragData data)
|
||||
{
|
||||
base.OnDragEnter(ref location, data);
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace FlaxEditor.Content.GUI
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override DragDropEffect OnDragMove(ref Vector2 location, DragData data)
|
||||
public override DragDropEffect OnDragMove(ref Float2 location, DragData data)
|
||||
{
|
||||
base.OnDragMove(ref location, data);
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace FlaxEditor.Content.GUI
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override DragDropEffect OnDragDrop(ref Vector2 location, DragData data)
|
||||
public override DragDropEffect OnDragDrop(ref Float2 location, DragData data)
|
||||
{
|
||||
var result = DragDropEffect.None;
|
||||
base.OnDragDrop(ref location, data);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace FlaxEditor.Content.GUI
|
||||
private DragActors _dragActors;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override DragDropEffect OnDragEnter(ref Vector2 location, DragData data)
|
||||
public override DragDropEffect OnDragEnter(ref Float2 location, DragData data)
|
||||
{
|
||||
var result = base.OnDragEnter(ref location, data);
|
||||
if (result != DragDropEffect.None)
|
||||
@@ -50,7 +50,7 @@ namespace FlaxEditor.Content.GUI
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override DragDropEffect OnDragMove(ref Vector2 location, DragData data)
|
||||
public override DragDropEffect OnDragMove(ref Float2 location, DragData data)
|
||||
{
|
||||
_validDragOver = false;
|
||||
var result = base.OnDragMove(ref location, data);
|
||||
@@ -72,7 +72,7 @@ namespace FlaxEditor.Content.GUI
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override DragDropEffect OnDragDrop(ref Vector2 location, DragData data)
|
||||
public override DragDropEffect OnDragDrop(ref Float2 location, DragData data)
|
||||
{
|
||||
var result = base.OnDragDrop(ref location, data);
|
||||
if (result != DragDropEffect.None)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user