Marc Gilleron
1a8cc4380f
Fix normalmaps in blocky mesher
2021-01-22 19:18:26 +00:00
Rathma
8d42c84e1a
Added 3x the number of tangents we actually needed
2020-12-14 03:25:28 -05:00
Rathma
fdc14fcd87
Switched tangents to on by default & changed to a passed value to the
...
bake method rather than being a property of the voxel
2020-11-11 21:58:50 -05:00
Rathma
c9c85ec7cd
Tangent baking now optional by toggling in editor under VoxelLibrary
2020-11-09 20:45:56 -05:00
Rathma
fd07f76586
Changed real_t => float for all tangent related variables(for real this time)
2020-11-09 01:07:59 -05:00
Rathma
3aeca4639f
Switched to deterministic look-up table for cube uvs.
...
Changed code to snake case
Changed PoolArrays from real_t to float
Removed tangents from colored cube generator
2020-11-09 00:45:49 -05:00
Rathma
a887fb12f5
Added a few comments, fixed an indexing and logic mistake.
...
Also the visual glitch I referred to in my last comment was pre-existing
or user-error it appears.
2020-11-08 21:31:16 -05:00
Rathma
fff1ee5f83
Added normal mapping to blocky & cube meshers by implementing tangent
...
calculations in the meshers. This caused a visual bug in the blocky
mesher that needs to be ironed out.
2020-11-08 09:43:18 -05:00
Tom Daffin
17a7674316
Fix bindings so that generate-mono-glue for C# bindings works
2020-11-07 08:02:27 -07:00
Marc Gilleron
bb549198f6
Replaced Voxel.transparent with a transparency_index for more control over face culling
2020-10-25 16:59:19 +00:00
Tom Daffin
5467caf01d
Fix binding of is_empty to allow build with mono
2020-09-07 17:17:42 -06:00
Marc Gilleron
27180e11e6
Fix cube geometry wrongly considered empty
2020-08-13 20:43:34 +01:00
Marc Gilleron
6ed4ef32b7
Separated baked data from config data in VoxelLibrary and introduced thread-safety with blocky mesher
2020-08-11 23:52:42 +01:00
Marc Gilleron
845fa465b8
Put model information within a struct
2020-08-11 20:29:27 +01:00
menip
e64f5f882c
Fix warnings
...
Wparentheses
Wsign-compare
Wreorder
2020-08-01 22:03:26 -07:00
Marc Gilleron
61c82078f7
Added collision masks to voxel models so they can be filtered fast
2020-08-01 22:58:16 +01:00
Marc Gilleron
1310112f25
Fix face culling issue with transparent voxels of different IDs
2020-07-30 18:00:12 +01:00
Marc Gilleron
905dbee563
Explain Voxel ID may not be set again
2020-07-30 17:57:48 +01:00
Marc Gilleron
0cdf5ea550
Added random tick API for blocky voxels
2020-07-28 20:32:33 +01:00
Marc Gilleron
e3abe2f7c0
Fix crash when custom mesh is empty
2020-07-26 18:38:39 +01:00
Marc Gilleron
fd9122a0de
Use StringName for voxel names
2020-07-26 18:37:34 +01:00
Marc Gilleron
f9e2d9cc12
Stop using NULL
2020-07-25 23:19:08 +01:00
Marc Gilleron
1a08cd31d6
Use a macro to print debug stuff only in verbose mode
2020-07-08 20:48:52 +01:00
Marc Gilleron
e96677622a
Fix Voxel erroring when set an ID larger than 255
2020-07-08 19:57:04 +01:00
Marc Gilleron
800febfab6
Implement duplicate() on Voxel
2020-05-08 17:57:00 +01:00
Cory Petkovsek
d407d6201a
Fix build warnings on other platforms
2020-04-03 20:46:29 +08:00
Marc Gilleron
197c6c71bc
Use a pattern matrix to determine side culling, so it can be baked more precisely
2020-02-11 21:20:05 +00:00
Marc Gilleron
7aa33267a8
Culling masks improvements:
...
- Use a 64-bit mask instead of 8-bit
- Fix face separation when a custom mesh is used
- Automatically generate culling masks using raster approximation
2020-02-08 23:05:44 +00:00
Marc Gilleron
b2f7d23f7f
Clang-format
2020-02-06 18:52:18 +00:00
Marc Gilleron
8eae71e1cb
Added face culling masks to customize when blocky sides are getting culled
2020-02-03 16:03:44 +01:00
Marc Gilleron
6c6bd52a68
Can add custom collision AABBs to blocky voxels, for use with VoxelBoxMover
2020-02-03 10:29:25 +01:00
Marc Gilleron
9a296952b7
A blocky voxel can be defined with a custom mesh. Needs a few improvements
2020-01-31 17:53:34 +01:00
Marc Gilleron
3ec2275ffb
Moved Voxel and VoxelLibrary under the blocky mesher directory, since that's what they are actually used for
2020-01-27 00:04:13 +00:00