Joshua Barretto
81dc77c87b
Resolved warnings
2019-09-26 13:34:15 +01:00
Joshua Barretto
899a7c56ab
Dark water
2019-09-26 00:15:07 +01:00
Joshua Barretto
207568a012
Better day/night cycle, less intense sun
2019-09-26 00:15:07 +01:00
Joshua Barretto
b62830b8b4
Better hills
2019-09-26 00:15:07 +01:00
Joshua Barretto
2416b77a33
Meshing performance improvements
2019-09-26 00:15:07 +01:00
Joshua Barretto
3979dddbc1
Faster meshing, better AO, colour correction
2019-09-26 00:15:07 +01:00
Joshua Barretto
2bd8967921
Prevented extreme blending
2019-09-26 00:15:07 +01:00
Joshua Barretto
f1d590464f
Added colour smoothing
2019-09-26 00:15:07 +01:00
Joshua Barretto
6d745fc472
Fixed floodfill algorithm
2019-09-26 00:15:07 +01:00
Imbris
34221a0f1d
Disable AO
2019-09-26 00:15:07 +01:00
Joshua Barretto
d745acc948
Floodfill shadows, smooth shadow lighting
2019-09-26 00:15:07 +01:00
haslersn
1796c09ca1
common: Rework volume API
...
See the doc comments in `common/src/vol.rs` for more information on
the API itself.
The changes include:
* Consistent `Err`/`Error` naming.
* Types are named `...Error`.
* `enum` variants are named `...Err`.
* Rename `VolMap{2d, 3d}` -> `VolGrid{2d, 3d}`. This is in preparation
to an upcoming change where a “map” in the game related sense will
be added.
* Add volume iterators. There are two types of them:
* _Position_ iterators obtained from the trait `IntoPosIterator`
using the method
`fn pos_iter(self, lower_bound: Vec3<i32>, upper_bound: Vec3<i32>) -> ...`
which returns an iterator over `Vec3<i32>`.
* _Volume_ iterators obtained from the trait `IntoVolIterator`
using the method
`fn vol_iter(self, lower_bound: Vec3<i32>, upper_bound: Vec3<i32>) -> ...`
which returns an iterator over `(Vec3<i32>, &Self::Vox)`.
Those traits will usually be implemented by references to volume
types (i.e. `impl IntoVolIterator<'a> for &'a T` where `T` is some
type which usually implements several volume traits, such as `Chunk`).
* _Position_ iterators iterate over the positions valid for that
volume.
* _Volume_ iterators do the same but return not only the position
but also the voxel at that position, in each iteration.
* Introduce trait `RectSizedVol` for the use case which we have with
`Chonk`: A `Chonk` is sized only in x and y direction.
* Introduce traits `RasterableVol`, `RectRasterableVol`
* `RasterableVol` represents a volume that is compile-time sized and has
its lower bound at `(0, 0, 0)`. The name `RasterableVol` was chosen
because such a volume can be used with `VolGrid3d`.
* `RectRasterableVol` represents a volume that is compile-time sized at
least in x and y direction and has its lower bound at `(0, 0, z)`.
There's no requirement on he lower bound or size in z direction.
The name `RectRasterableVol` was chosen because such a volume can be
used with `VolGrid2d`.
2019-09-06 15:43:31 +02:00
Joshua Barretto
1fcb4a0313
Added Generator trait, fixed ocean lighting
2019-08-31 11:44:52 +01:00
Joshua Barretto
b31cca4bb3
Added wheat and sprite rendering
2019-08-19 21:09:35 +01:00
Joshua Barretto
f0e52e6002
Better reflections and water fog
2019-08-18 10:33:18 +01:00
Joshua Barretto
825d8bb632
Fixed water in caves, made water reflection vary with lighting
2019-08-18 10:33:18 +01:00
Joshua Barretto
fa6825f13b
Better fluid meshing, disabled fluid backface culling and depth buffer writing
2019-08-18 10:33:18 +01:00
Joshua Barretto
42237a84e4
Added translucent meshing pass, water reflections
2019-08-18 10:33:18 +01:00
Imbris
c09eb77149
Add srgb converion in shaders
2019-08-15 23:56:14 -04:00
timokoesters
d7c159a4e1
Fix warnings all around voxygen
2019-07-04 14:08:01 +02:00
Joshua Barretto
b94c0ace8c
Removed RefCell from column cache
2019-06-26 19:14:12 +01:00
Joshua Barretto
d0b38e9875
Worldgen performance improvements, better sun
2019-06-26 19:14:12 +01:00
Piotr Korgól
4644199f1b
Make minimap title show location names
2019-06-26 19:14:12 +01:00
Joshua Barretto
5e96e29ff1
AO improvements, day/night cycle
2019-06-26 19:14:12 +01:00
Joshua Barretto
d10ef37528
Fixed AO lighting issue
2019-06-26 19:14:12 +01:00
Joshua Barretto
451bbe9921
Basic region generation
2019-06-26 19:14:12 +01:00
Joshua Barretto
bc7cee1846
Lighting fixes
2019-06-26 19:14:12 +01:00
Joshua Barretto
fa8f3a4b49
Tweaked lighting and AO
2019-06-13 11:59:05 +01:00
Cody
14ac5babd4
Removes most unused imports; changes some unused variables to underscores or provides a leading underscore; removes some unnecessary variables and mutable declarations; and performs other miscellaneous warning fixes.
2019-06-06 14:48:41 +00:00
Joshua Barretto
afd983f6f8
Lighting fix
2019-06-06 12:25:06 +01:00
Joshua Barretto
9da2d82197
Added proper VD fog
2019-06-05 20:52:51 +01:00
Joshua Barretto
e2182b1a68
Added basic light
2019-06-03 22:50:47 +01:00
Pfauenauge90
ce6a9ac32d
Roots added
...
fmt
asset fix
2019-06-03 22:50:27 +01:00
Joshua Barretto
024afb9b4a
Added desert and snowy areas
...
Former-commit-id: 220e404de8f64e35d9f54f2b0eeff3fe90c33802
2019-05-29 22:24:47 +01:00
Joshua Barretto
f49796dcef
Basic cave test
...
Former-commit-id: 5b56bb882aca37d7fee1ee9c5e100ad2bf97834e
2019-05-29 14:49:27 +01:00
Joshua Barretto
1e2f130ad6
Added voxel shadows
...
Former-commit-id: 86f8d6f53073736a7036ad3371eb6f283cfdac3c
2019-05-29 12:01:02 +01:00
Joshua Barretto
fc25dc8c7f
fmt
...
Former-commit-id: 1f7bec8da117091b3f2e8f58ce45b9caf1b6c89d
2019-05-21 23:31:38 +01:00
Joshua Barretto
dcd2b4392d
Added rocks, improved hills
...
Former-commit-id: c8f3d8fb550186bd87d0de953098971050fd1e03
2019-05-21 22:51:41 +01:00
Joshua Barretto
5b2da36fd0
Added mega worldgen
...
Former-commit-id: f7c88a1d387c282b78ab834dd63e64432b371552
2019-05-21 22:51:41 +01:00
Cody
6b09fd7c53
Pedantic comment and language fixes.
...
Former-commit-id: eb49765c911aaa97a9c8ed351216a7a6f8411213
2019-05-17 18:32:07 -04:00
Joshua Barretto
7174830279
fmt
...
Former-commit-id: 71912bdd2b8f40020153c5696cd5cc1af3f154cc
2019-05-17 18:54:56 +01:00
Joshua Barretto
91184356e7
Added chonks
...
Former-commit-id: a62fb321dbfb7541feaa9de4e641db9887b061fd
2019-05-17 18:44:30 +01:00
Joshua Barretto
67241fec31
Massively increased efficiency of terrain meshing, chunks generate from centre
...
Former-commit-id: 66217b9974a791044e4b1f3d4580761bd066113a
2019-05-13 13:08:17 +01:00
robojumper
ba10ca38ba
Fix chunk meshing
...
Former-commit-id: d3a53602e4b480ab9db0a2a98e25cbba5081b624
2019-05-13 11:03:47 +01:00
sxv20_
f600eca072
start fixing chunk rendering, noticed stack overflow crash
...
Former-commit-id: 334904276580cd78f5d5e3bf010a86fcd822cfdf
2019-05-13 11:03:47 +01:00
sxv20_
592477752e
move sample() to returning VolMap, incomplete VolMap meshing code
...
Former-commit-id: 77d3db6c3bf28364089647802f83d2d00f3a152d
2019-05-13 11:03:47 +01:00
Forest Anderson
993388e56a
Ran fmt on codebase
...
Former-commit-id: 7fecffa1dc66fffba4f07d45fb80960dc5178f4f
2019-04-29 20:37:19 +00:00
robojumper
cf88e9a5b1
Line endings are hard
...
Former-commit-id: 3a0e48b7571ff706feeff4e089fb9c5d63f6ac7a
2019-04-29 17:41:12 +02:00
robojumper
0bd84b58ec
Fix occlusion artifact
...
Former-commit-id: 23be3f1173706076802809576e3455833e64b4e4
2019-04-29 17:39:35 +02:00
robojumper
7091557b82
Rename mod ao to vol
...
Former-commit-id: ef126e03761b18151594780777fa27e94efe24d7
2019-04-28 23:35:47 +02:00
robojumper
021c6eeda1
Generalize meshing and AO code over terrain, figure
...
Former-commit-id: f0a91173ec5a0a9c683e6d1c222cb74e858625b7
2019-04-28 19:12:45 +02:00
robojumper
32509d2fb1
Add terrain ambient occlusion
...
Former-commit-id: de73dcb09f68bcad5dc7431c30849e16f68c5ab7
2019-04-28 17:10:09 +02:00
Joshua Barretto
0b0c71592c
Fixed orientation issue
...
Former-commit-id: 9fdeadb4c9a9ff55cbdeccbbf97ac32b4e9f4226
2019-04-25 17:52:11 +01:00
Joshua Barretto
9105bf0811
Added better terrain collisions
...
Former-commit-id: 38de44654d8050260a19a1da6c40c0f701602f13
2019-04-25 17:52:11 +01:00
Joshua Barretto
f210de09df
Added raycasting (needs testing) and basic character terrain collision
...
Former-commit-id: be6bfacfd28e777a64d8157fce129f8072e20b38
2019-04-25 17:52:11 +01:00
Joshua Barretto
8a37662cf0
Cleaned up codebase, added cursor grab toggle
2019-01-23 22:21:47 +00:00
Joshua Barretto
248577bdef
Added test terrain loading and meshing
2019-01-23 20:01:58 +00:00
Joshua Barretto
ae4f1ae2ea
Added vox trait
2019-01-14 18:49:53 +00:00
Joshua Barretto
0a122431db
Restructured animation code
2019-01-14 14:40:22 +00:00
Joshua Barretto
86e70751e0
Moved to Skeleton and Animation traits
2019-01-14 14:18:58 +00:00
Joshua Barretto
8184bc6fc0
Added figures, segments, test .vox files, basic animation test
2019-01-13 20:53:55 +00:00