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
UnknownShadow200
2452cc93a7
Style: Use gfx consistently everywhere, instead of mixing api and graphics.
2016-10-12 12:25:12 +11:00
UnknownShadow200
b576506b86
Gfx: add bool indicating whether texture should use managed or default pool.
2016-10-06 10:54:17 +11:00
UnknownShadow200
67f98eb825
Client: Don't show water/lava on vertical bit of borders (thanks tornato). Also offset horizon blocks properly.
2016-09-15 15:11:27 +10:00
UnknownShadow200
f399c838f2
Client: Keep track of edge level in mesh builder.
2016-09-15 10:56:32 +10: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
UnknownShadow200
246a47ba67
Optimise advanced lighting mesh builder.
2016-07-12 20:09:25 +10:00
UnknownShadow200
ea12b5a428
Also add very simple dynamic lighting.
2016-07-12 19:54:34 +10:00
UnknownShadow200
39e5cd169d
Fixup lightflags not being set.
2016-07-12 15:54:06 +10:00
UnknownShadow200
d8fa0aeb1f
Slightly fix smooth lighting.
2016-07-12 14:38:16 +10:00
UnknownShadow200
53728f453f
More work on smooth lighting.. breaks it again though.
2016-07-10 23:28:13 +10:00
UnknownShadow200
d886909889
First pass on redesigned smooth lighting code. Still a major WIP.
2016-07-10 20:53:24 +10:00
UnknownShadow200
d2034decf2
Cleanup in smooth lighting mesh builder.
2016-07-10 20:04:31 +10:00
UnknownShadow200
8c292d92e3
Use packed ints instead of 4 byte fields in vertex structs.
2016-07-10 11:23:20 +10:00
Goodlyay
fd87455735
Attempted fix to top face again.
2016-07-09 00:50:44 -07:00
UnknownShadow200
5ce7e3484a
Fix top face.
2016-07-09 17:04:19 +10:00
UnknownShadow200
8ad2dabd29
Inline count function.
2016-07-09 16:53:33 +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
UnknownShadow200
f39f83cd22
Start work on modularising mesh builder class, so we can support both normal and smooth lighting backends.
2016-07-09 15:30:39 +10: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