31 Commits

Author SHA1 Message Date
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
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
3d01dbab20 Remove unused code 2017-06-25 20:32:42 +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
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
b45bb70785 some micro optimisations 2017-02-07 22:53:54 +11:00
UnknownShadow200
69dd8af17c reduce code duplication 2017-02-07 15:19:06 +11:00
UnknownShadow200
02550f9d65 xyz 2017-02-04 13:02:03 +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
619ebafca1 more work on abstracting lighting 2016-12-02 15:29:23 +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
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
UnknownShadow200
d886909889 First pass on redesigned smooth lighting code. Still a major WIP. 2016-07-10 20:53:24 +10:00
UnknownShadow200
8c292d92e3 Use packed ints instead of 4 byte fields in vertex structs. 2016-07-10 11:23:20 +10:00
UnknownShadow200
cb07f2666d Finish implementing normal and smooth-lighting subclasses for mesh builder. 2016-07-09 15:56:18 +10:00
Goodlyay
7236d0f419 Revert "Revert "Add smoothing on bottom face.""
This reverts commit 7dc7dbef00673693c2c0379e1adffb2a39ae59ce.
2016-07-08 22:51:01 -07:00
Goodlyay
7dc7dbef00 Revert "Add smoothing on bottom face."
This reverts commit db9089fdd7f6ca85e8ccb319c01c252849a9dfa5.
2016-07-08 22:46:49 -07:00
Goodlyay
db9089fdd7 Add smoothing on bottom face. 2016-07-08 22:41:11 -07:00
Goodlyay
06657bbdf1 Add light smoothing to top and side faces of blocks. 2016-07-08 20:15:14 -07:00
UnknownShadow200
9e1eca9491 Fix 20+names in classic list overflowing box size slightly, also fix selected outlined block being translucent causing entity shadows to disappear. 2016-07-08 20:42:22 +10:00
UnknownShadow200
118f134b8f Implement top-face water culling like classic. 2016-07-07 17:42:26 +10:00