136 Commits

Author SHA1 Message Date
William Moorehouse
ef69c85038 Fixed cobble and stone textures being mixed up 2015-06-21 20:02:10 -04:00
William Moorehouse
1633d214c1 Don't crash when block values are invalid 2015-06-21 19:57:12 -04:00
William Moorehouse
f60f65458e Implemented static texture maps 2015-06-21 19:53:04 -04:00
William Moorehouse
1c340d25f7 Added slab renderer 2015-06-21 19:26:58 -04:00
William Moorehouse
88ed21639e Simplified cobweb renderer 2015-06-21 18:36:02 -04:00
William Moorehouse
ef0a24bce2 Added cobweb renderer 2015-06-21 18:27:09 -04:00
William Moorehouse
9f7b923fbf Fixed build failure (on Windows?) due to unimplemented virtual property 2015-06-21 16:30:40 -04:00
William Moorehouse
655a0d71e8 Fixed issue where the client continued to reset the mouse position after losing focus 2015-06-21 16:26:09 -04:00
Drew DeVault
8697994737 Add wheat and farmland renderers 2015-06-20 13:56:57 -04:00
Drew DeVault
939a6dc79c Render snow variation of grass blocks
This also increases the average rainfall everywhere so that fucking
deserts are less common
2015-06-20 11:01:07 -04:00
Drew DeVault
f3fc43fbf9 Implement biome coloring for grass/vegitation/etc
Fixes #147
2015-06-19 17:36:39 -04:00
Drew DeVault
4596fef1a8 Change hue of ice texture slightly 2015-06-19 11:58:03 -04:00
Drew DeVault
12a5483d3b Add vegitation renderer
This replaces TallGrassRenderer and adds support for flowers.

This should be used going forward for any plants that can be rendered as
an x-quad.
2015-06-19 11:53:08 -04:00
Drew DeVault
76d0af7e36 Move GraphicsDevice references to main thread 2015-06-19 01:11:14 -04:00
Drew DeVault
5c52b7634e Remove references to GraphicsDevice on workers 2015-06-19 00:58:30 -04:00
William Moorehouse
596311101a Proper disposal of ChunkRenderer 2015-06-18 21:55:35 -04:00
Drew DeVault
fa26b1a5d7 Or we could not do that 2015-06-18 21:29:36 -04:00
Drew DeVault
9c29f845ae Load textures through PngReader
Instead of Texture2D.FromStream.

Fixes the purple water bug (fixes #138)
2015-06-18 21:04:03 -04:00
William Moorehouse
7046a0f53c 💤 2015-06-18 17:51:47 -04:00
William Moorehouse
fc7f52b619 Slight optimization thanks to @UnknownShadow200 2015-06-18 17:35:44 -04:00
William Moorehouse
33bf6b2a0b Fixed building on Windows 2015-06-18 17:23:50 -04:00
Drew DeVault
386d8f7328 Add option to download Mojang assets
Also fixes a bug with texture pack loading in the client.

Note: we cannot distribute Mojang assets, but some players might want to
use them. To that end, the launcher now has a button that allows the
user to download them him or herself. Since we download them directly
from Mojang, we're be good to go.
2015-06-18 13:59:03 -04:00
Drew DeVault
8d16467ac0 Move near plane to 0.5f 2015-06-18 13:07:36 -04:00
Drew DeVault
64f3d2e774 Merge pull request #134 from mrpimpunicorn/master
Rebased rendering enhancements and a bug fix
2015-06-18 12:54:10 -04:00
Drew DeVault
ce4d662e67 Replace workaround with better solution
Thanks @mlehmk
2015-06-18 12:53:24 -04:00
William Moorehouse
aaddec8951 Rebased rendering enhancements and a bug fix 2015-06-18 12:45:00 -04:00
Drew DeVault
73869d7123 Fix client targets 2015-06-18 12:29:49 -04:00
Drew DeVault
bebaed2b5b Load MonoGame.Framework manually at runtime
This lets us have one build that will in theory work on Windows and
Linux.
2015-06-18 12:23:27 -04:00
Drew DeVault
c91dff52a9 Run client Main in an STA thread manually 2015-06-18 12:20:15 -04:00
William Moorehouse
df927e6c0f Fixed a crash in singleplayer when attempting to render a chunk with no transparent blocks in it 2015-06-18 11:43:20 -04:00
Drew DeVault
6d56fc7011 Move to Any CPU builds 2015-06-18 08:51:37 -06:00
William Moorehouse
ba63e7d234 Added support for translucent rendering 2015-06-18 08:29:51 -04:00
William Moorehouse
72e632a071 Fixed Z-fighting with transparent objects, for now 2015-06-17 21:47:34 -04:00
William Moorehouse
6a1dce540a Set near clipping plane distance to 1.0 2015-06-17 20:50:56 -04:00
William Moorehouse
341093384d Initial work on improving rendering; separated threading from mesh generation 2015-06-17 19:23:24 -04:00
Mitchell Kutchuk
6bf10feb41 Fixed merge conflicts 2015-06-17 12:37:55 -07:00
William Moorehouse
d5224f72c9 Added more resolution options and fullscreen support 2015-06-17 15:03:06 -04:00
William Moorehouse
9ad14273a4 Changed resolution setting to a dropdown 2015-06-17 14:23:46 -04:00
William Moorehouse
5c3c035019 Fixes for client crashing when not run through the launcher 2015-06-17 13:24:39 -04:00
Mitchell Kutchuk
63d538e98d Move Linux/Windows references to targets file
MonoDevelop keeps breaking the build on Windows
(8848697656fdbc77eb0a8bd806ad69c19a42b419). Moving the references to a
separate file should prevent this from happening again.
2015-06-17 07:44:31 -07:00
William Moorehouse
9538d1321a Added support for changing preferred resolution 2015-06-17 10:02:06 -04:00
William Moorehouse
a7d394ef19 Fixed exception in client when settings.json managed to refer to a non-existent or corrupt .zip 2015-06-17 09:17:26 -04:00
William Moorehouse
f15744b7a2 Finished cleaning up texture pack code 2015-06-17 09:10:42 -04:00
William Moorehouse
f66ab8a2be Expanded TextureMapper 2015-06-17 08:17:25 -04:00
William Moorehouse
7b5b8ee6e4 Removed obsolete code 2015-06-17 08:07:01 -04:00
William Moorehouse
9c982b6083 Fixed building on Windows 2015-06-17 08:06:17 -04:00
Drew DeVault
8848697656 Fix font loader on case sensitive filesystems 2015-06-16 22:22:40 -06:00
William Moorehouse
2ae26f1519 More fixes 2015-06-16 22:17:30 -06:00
William Moorehouse
3c2bb1a225 Fixed known issues with texture pack loading 2015-06-16 22:17:30 -06:00
William Moorehouse
b799809d74 Now load terrain.png from current texture pack 2015-06-16 22:17:30 -06:00