77 Commits

Author SHA1 Message Date
UnknownShadow200
3c6bf3624c Further reduce size of IL code 2017-09-13 23:09:10 +10:00
UnknownShadow200
9dd16baf47 ChunkPartInfo is now 12 bytes less in size 2017-09-13 14:20:11 +10:00
UnknownShadow200
09543d9d9f Reduce IL size of MeshBuilder.DrawSprite by 246 bytes 2017-09-13 12:57:06 +10:00
UnknownShadow200
0d95ec7787 Reduce IL size of SkyboxRenderer.MakeVb() by 214 bytes 2017-09-13 10:49:57 +10:00
UnknownShadow200
c23ba90c1f Make BlockInfo class static and break all plugins in the process. 2017-08-14 09:33:21 +10:00
Goodlyay
1594008dab Make DrawSprite virtual void
So both Adv and normal MeshBuilders can override it.
2017-07-21 23:07:57 -07: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
3d01dbab20 Remove unused code 2017-06-25 20:32:42 +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
ac276d3611 Remove generic CreateVb<T>, force everyone to use raw pointers 2017-06-11 22:45:41 +10:00
UnknownShadow200
bc58cb6f93 Mostly port mesh builder to C. 2017-06-08 11:16:52 +10:00
UnknownShadow200
59f3c0bc5c Port TileDrawer to C. 2017-06-07 16:51:32 +10:00
UnknownShadow200
9a2c115af3 Port MapBordersRenderer to C. 2017-05-31 10:09:00 +10:00
UnknownShadow200
9536fa2483 Use single sIndex instead of array variable.
Also don't remove sapling block in singleplayer if tree fails to grow
2017-05-28 16:21:34 +10:00
UnknownShadow200
5f3bd8336c make lighting api consistent 2017-04-21 17:59:53 +10:00
UnknownShadow200
3c9bfe6965 Remember to offset when checking light 2017-02-26 23:24:24 +11: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
2738713a83 Skip inside faces for all opaque blocks, even those that are not a full solid block. 2017-02-21 08:27:09 +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
b6df7d9732 Don't pointlessly recreate all air chunks 2017-02-19 11:40:35 +11:00
UnknownShadow200
cf06302e33 Fix leftover issues 2017-02-16 16:42:50 +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
b45bb70785 some micro optimisations 2017-02-07 22:53:54 +11:00
UnknownShadow200
f96c93c932 combine lava and water animation 2017-02-07 22:22:27 +11:00
UnknownShadow200
1ab8982e7a Optimise adv mesh builder 2017-02-07 21:46:46 +11:00
UnknownShadow200
aee3fe00bb Optimise CuboidDrawer 2017-02-07 16:56:37 +11:00
UnknownShadow200
fea8ec433a Fix advanced mesh builder 2017-02-07 16:36:58 +11:00
UnknownShadow200
a2aa233759 fix tinting 2017-02-07 16:33:39 +11:00
UnknownShadow200
69dd8af17c reduce code duplication 2017-02-07 15:19:06 +11:00
UnknownShadow200
862690993f Fixed entity model bobbing. (Thanks Mrrockman888) 2017-02-07 14:26:29 +11:00
UnknownShadow200
02550f9d65 xyz 2017-02-04 13:02:03 +11:00
UnknownShadow200
babc876601 Fix upside down slab lighting issue with advmeshbuilder 2017-02-04 10:52:23 +11:00
UnknownShadow200
d947ac6988 Slightly less hardcoding 2017-02-01 17:36:09 +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
e33d39685c Style: Make more code available to external plugins. 2016-12-03 19:26:38 +11:00
UnknownShadow200
dddc9954b7 Client: start work on loading external plugins 2016-12-03 17:44:45 +11:00
UnknownShadow200
75f0a73841 Style: Indent catch and switch properly. 2016-12-02 15:31:34 +11:00
UnknownShadow200
619ebafca1 more work on abstracting lighting 2016-12-02 15:29:23 +11:00
UnknownShadow200
b9f404ad08 more work on abstracting lighting 2016-12-02 15:05:09 +11: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
2fa379746a Style: Finish simplifying BlockInfo 2016-10-29 13:49:33 +11:00
UnknownShadow200
f0047be63c Style: Remove CommandReader class, move stuff from ClassicalSharp.TexturePack to ClassicalSharp.Textures 2016-10-17 17:15:24 +11:00