Commit Graph

34 Commits

Author SHA1 Message Date
098afa23e2 Changed the Terra and Terraman class prefixes to Terrain. 2022-02-08 13:59:00 +01:00
f256229139 Work on fixing compile for 4.0. 2022-02-08 11:52:29 +01:00
654e8872de Updated copyright headers. 2022-01-12 22:19:46 +01:00
2cbb13ea58 TerraPropJob will now make use of the prop material cache. 2021-08-08 14:02:36 +02:00
114adce2b9 Added a setup phase for TerraPropJob which sets up prop material caches. 2021-08-08 13:37:26 +02:00
2e38466015 Add comment. 2021-08-08 13:34:58 +02:00
d931a53a13 Don't return in the terrain job if the cache is not initialized, wait instead. 2021-08-08 13:22:40 +02:00
e5c860e578 Moved a mesher vertex count check lower. This fixes missing meshes when none of the mesh data resources are fully in a chunk. 2021-08-07 15:14:50 +02:00
8362eaf58e Better phase cleanups in PropJob. 2021-08-07 15:03:35 +02:00
f62b605d9a now PropJob will actually use JobSteps. 2021-08-07 13:47:55 +02:00
ac6c5001d5 Added a few todos. 2021-08-07 13:46:50 +02:00
2ba4bc79c4 Change the terrain mesh indexes to prop mesh indexes in the prop job. Also query for the prop mesh cache. 2021-08-07 12:55:15 +02:00
2fd0eac8cc Added the JobStep api to TerraPropJob. It's used yet. 2021-08-07 12:37:37 +02:00
1fd761e115 Don't cast to TerraMesherBlocky in the TerrarinJob. 2021-08-07 12:32:22 +02:00
8f989f7ae0 Fix potential race condition. 2021-08-03 00:24:15 +02:00
06ade87fac Check whether the chunk has a material cache key set instead of checking whether the library supports caching in the terrain job. 2021-08-02 23:06:22 +02:00
2a731480d0 Improved the cache api again. Now the chunks can store the assigned key, so it does not have to be re-hashed again only if actually needed. 2021-08-02 20:02:48 +02:00
4647db8f1e Now the cache api uses the new TerraMaterialCache class. 2021-08-02 13:39:29 +02:00
adf42dc30d Per chunk material support for the Terrain job. 2021-08-01 22:21:20 +02:00
45d8dca50c Added a new phase to the terrain job, if the library supports per chunk materials, it will query the key from it (which can create materials / textures hence the new phase). 2021-08-01 19:38:45 +02:00
660ea8bf74 Use the new lod variant of the library's material getters wherever possible. 2021-08-01 16:33:17 +02:00
a3c81f4d0c Make baked colors work on every lod types. 2021-04-19 18:15:36 +02:00
437d175533 Fix the normal lod step and merge verts steps. 2021-04-19 17:51:52 +02:00
0043df1c1d Fix crash when lighting is enabled, and the liquid mesher is null. 2021-04-18 19:16:29 +02:00
3841a53e3d Now the Terrain Mesher Job uses job steps. 2021-04-17 19:04:25 +02:00
8741d8d646 Now the terrarin job only supports one liquid mesher, and one normal mesher. 2021-04-17 15:57:31 +02:00
de40b5e130 Added simplify mesh type, and an other type to the new class. Also added a bunch of properties for the simplification type if mesh utils is present. 2021-04-17 13:21:44 +02:00
c63fe5238a Renamed the new class to TerraMesherJobStep, as it can be used in every mesher. 2021-04-17 13:08:47 +02:00
6e1cff8d5a Added a new TerraTerrarinJobStep Reference class. It will be used to simplify the logic in TerrarinJob, and to make it better scriptable (this way mesh generation logic can be changed with the graphic settings aswell). 2021-04-17 13:06:44 +02:00
025c902b44 Now chunks are only laid out on a 2d grid. Removed the y coordinate from everywhere. The meshers doesn't work properly yet. 2021-04-16 17:13:54 +02:00
603581f6e0 Renamed every file prefix from voxelman to terra. 2021-04-16 12:56:21 +02:00
126bb7c712 Changed every Voxel prefix to Terra. Also added back everything to the build. It will also build with voxelman installed. 2021-04-15 21:28:45 +02:00
5b99d7cfd8 Update copyright headers. 2021-04-15 18:30:20 +02:00
40a4beffb9 Added voxelman, and removed everything form compile, and initial setup. 2021-04-15 11:47:28 +02:00