Commit Graph

27 Commits

Author SHA1 Message Date
d66c8c4ac7 Updated copyright headers. 2022-01-12 22:15:58 +01:00
4cc187303b Make sure PropInstancePropJob generates mesh when the prop only has tiled walls. 2021-08-27 19:26:16 +02:00
c6f6871fc2 Added collision layer and mask support to PropInstance. 2021-08-25 22:21:34 +02:00
7ccdbd474c Fixed collision shape positions in PropInstanceMerger. Also improved it's collision shape / physics body handling. 2021-08-25 20:37:37 +02:00
2568178b42 Only call initial_setup_default on the main thread, and document that shader duplication can crash if done from a different thread. Removed the material mutex from the prop cache as it's not needed anymore. 2021-08-25 17:24:25 +02:00
5baba6436f Moved the cache setup code from PropInstanceMerger to the prop job this makes the texture merge actually threaded. 2021-08-18 18:57:19 +02:00
1143adf7ee Moved phase_physics_process and phase_prop in file. 2021-08-18 18:50:52 +02:00
51e3254bfc Tiled Wall support for PropInstance and PropinstanceMerger. Also fixed a double transform multiplication with MeshDataResources in PropInstanceMerger. 2021-08-18 18:48:13 +02:00
1d4e05b5a1 Finished light baking. 2021-08-11 19:12:03 +02:00
db6171c48f Addes api for lights to PropInstancePropJob. Also now PropInstanceMerger will process lights. 2021-08-11 18:29:52 +02:00
308d8e0baf Re-implemented/fixed collider support. Also fixed the debug draw colliders option. 2021-08-10 17:34:17 +02:00
21379908e5 Fix re-baking meshes after prop data assing. 2021-08-10 17:10:05 +02:00
6e5836a859 Fixed more issues. Now meshes actually get built. 2021-08-10 15:06:10 +02:00
924b32e70a Fixed quite a few issues with the prop instance merger's logic. 2021-08-10 12:23:53 +02:00
9320f0c3c4 Reset the meshes even if _prop_data is not valid. 2021-08-10 10:53:22 +02:00
604d895ac9 Improve stage logic a bit. 2021-08-10 09:49:22 +02:00
6ec8e40ea0 Get the material from the material cache. 2021-08-10 09:46:59 +02:00
34492756cd Removed the old (commented out) lod generation code, and the mesh setup code. phase_steps handles this . 2021-08-10 09:45:25 +02:00
64e6447d9c Removed the texture packer from PropInstancePropJob. The code now uses the material cache instead. 2021-08-10 09:39:18 +02:00
35cf1962d0 Undef PROPS_PRESENT just in case. 2021-08-10 09:29:08 +02:00
8805d63f4a Added a material_cache property to PropInstancePropJob. 2021-08-10 09:28:06 +02:00
fca5abaa5d Brought in the step code from Terraman. Not yet finished, but it compiles. 2021-08-09 13:15:20 +02:00
33095a83a1 Added the job steps api to PropInstancePropJob. 2021-08-09 11:30:52 +02:00
0eee4dba90 Cleaned up prop instance job and prop instance merger. All the necessary logic (for the time being) is there. It still needs some fixes though. 2021-05-21 15:33:29 +02:00
243ddc2faf Now the prop instance job now holds an array of PropDataMeshDatas with their base transforms. Also PropInstanceMerger will now add all mesh data resources to the job when processing the prop. 2021-05-20 19:09:00 +02:00
a0d9404201 Added texture packer property to the prop instance job. 2021-05-20 18:58:09 +02:00
669ab8e193 Added PropinstancePropJob (copy paste of terraman's prop job), and started reworking PropInstance. 2021-04-26 16:29:53 +02:00