27 Commits

Author SHA1 Message Date
UnknownShadow200
fdd620aba6 Combine some headers, part 2 2018-03-27 13:58:00 +11:00
UnknownShadow200
30937e92f5 little bit less hardcoding 2018-03-20 16:54:48 +11:00
UnknownShadow200
3c6bf3624c Further reduce size of IL code 2017-09-13 23:09:10 +10:00
UnknownShadow200
c23ba90c1f Make BlockInfo class static and break all plugins in the process. 2017-08-14 09:33:21 +10:00
UnknownShadow200
1d00da8381 Fix water modified to be a non-full block still always stretching top face of water. (Thanks VenkSociety) 2017-07-22 12:54:16 +10:00
UnknownShadow200
69f27c750b fix light leaking from outside map (when should be shadow) with adv lighting mesh builder 2017-07-03 22:33:11 +10:00
UnknownShadow200
1f45428ec7 Revert "Merge remote-tracking branch 'refs/remotes/origin/Snowy'"
This reverts commit 300df2ff60efe8385ebba8b05ce1992d9f254f67, reversing
changes made to 652e697bf8f1ea3598e10bddc026578a05c3fc0e.
2017-06-25 17:54:02 +10:00
UnknownShadow200
59673aba3a Initial implementation 2017-06-25 17:07:12 +10:00
UnknownShadow200
c9167859fb Compare light colour instead of isLit, allows for custom lighting implementations. 2017-02-25 19:41:40 +11:00
UnknownShadow200
0a4eece26c Fix blocks on map border/horizon not being tinted. (Thanks joshim4) 2017-02-24 20:29:16 +11:00
UnknownShadow200
7bd365afba microoptimisation for chunk mesh building 2017-02-23 23:30:54 +11:00
UnknownShadow200
005d0cebe2 For the 0-1 people who bother, make 12 bit block ids as easy as a compile time switch. 2017-02-19 22:29:07 +11:00
UnknownShadow200
c92ebcac6c Use BlockID typedef instead of hardcoding byte everywhere.
In the 0.00001% chance someone changes blockid to be 16 bits
2017-02-16 16:31:17 +11:00
UnknownShadow200
1ab8982e7a Optimise adv mesh builder 2017-02-07 21:46:46 +11:00
UnknownShadow200
fea8ec433a Fix advanced mesh builder 2017-02-07 16:36:58 +11:00
UnknownShadow200
69dd8af17c reduce code duplication 2017-02-07 15:19:06 +11:00
UnknownShadow200
babc876601 Fix upside down slab lighting issue with advmeshbuilder 2017-02-04 10:52:23 +11:00
UnknownShadow200
98d435b110 fix licensing 2017-01-20 09:12:04 +11:00
UnknownShadow200
eddf8229f0 Optimise block tinting 2016-12-21 14:27:24 +11:00
Goodlyay
a4cb1e80be Core: add block tinting
Uses the fog colour components of the block to tint it if the name ends
with "#".
2016-12-20 19:05:29 -08:00
UnknownShadow200
2986773b51 Abstract block lighting 2016-11-29 21:01:18 +11:00
UnknownShadow200
1aef52fab2 Use standard indentation for everything. 2016-11-27 14:47:09 +11:00
Goodlyay
f2b799e460 Core: Fix fullbright glow in advanced lighting mode. 2016-11-19 16:05:22 -08:00
UnknownShadow200
89e0145571 Fix UV mapping for blocks. (Thanks goodlyay) 2016-09-04 00:09:24 +10:00
UnknownShadow200
a86d1233d0 Implement greedy meshing for advanced lighting backend.
Note this not 100% optimal, as it does not cover the case of a row of quads in half shadow (one side in shadow, other in sunlight). However, it performs greedy meshing when blocks are either fully in shadow or sunlight so this is much more optimal than before.
2016-07-12 22:31:19 +10:00
UnknownShadow200
c724ba8437 Implement proper face order for advanced lighting. 2016-07-12 20:46:08 +10:00
UnknownShadow200
7711515aee Fix last commit. (Oops) 2016-07-12 20:14:19 +10:00