225 Commits

Author SHA1 Message Date
UnknownShadow200
64cb13d0a6 Gfx: DeleteVb should reset the id too. 2016-10-01 17:45:17 +10:00
UnknownShadow200
ac65ac2ee9 Client: Roughly approximate block density fog in fast mode. 2016-09-15 17:00:51 +10:00
UnknownShadow200
2ca63e97d1 Client: Use better fog colour when in fast render mode. 2016-09-15 16:40:09 +10: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
d837e52724 Better indentation 2016-08-30 12:49:24 +10:00
UnknownShadow200
777d3a829b Do backface determination and distance calculation for chunks in a single pass. 2016-08-23 14:43:48 +10:00
UnknownShadow200
202b6a99aa Microoptimise block redraw methods, makes things slightly faster when changing millions of blocks. 2016-08-17 14:08:43 +10:00
UnknownShadow200
466bd531cd Avoid unnecessary memory allocation in BlockDefinitionChanged. 2016-08-16 14:26:44 +10:00
UnknownShadow200
ff4b1eb723 Avoid foreach wherever possible. 2016-08-15 12:57:25 +10:00
UnknownShadow200
38be2f192e Make ticking tasks code more extensible. 2016-08-06 15:06:20 +10:00
UnknownShadow200
ae5f379438 Fix client crash when using normalfast mode and on Intel OpenGL build. 2016-08-06 09:15:54 +10:00
UnknownShadow200
c283494e4b Fix changing shadow colour not rebuilding map bedrock sides (which uses shadow colour), thanks goodlyay. 2016-07-31 21:13:29 +10:00
UnknownShadow200
cbfcc01bbf Optimise weather rendering, part 1. 2016-07-18 18:21:37 +10:00
UnknownShadow200
7be81bea37 Fix most of remaining compilation errors on android project type. 2016-07-14 11:29:54 +10:00
UnknownShadow200
a9b3c0876e Fix last commit. 2016-07-12 20:15:19 +10:00
UnknownShadow200
8c292d92e3 Use packed ints instead of 4 byte fields in vertex structs. 2016-07-10 11:23:20 +10:00
UnknownShadow200
4281dead19 Allow switching between normal / smooth lighting mesh building at runtime. 2016-07-09 16:10:32 +10: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
UnknownShadow200
9b45596107 Release 0.99.2 again. (Fix last commit, I am too tired) 2016-07-09 00:18:50 +10:00
UnknownShadow200
d26f2a39b5 Release 0.99.2. Dig animation still isn't quite right, annoyingly. 2016-07-08 23:53:51 +10:00
UnknownShadow200
b93b9c6070 Get dig animation mostly right. (Much much thanks to goodlyay and his gifs) 2016-07-08 23:30:08 +10:00
UnknownShadow200
f227bbfbbf Modularise animation part of held block into a separate file. 2016-07-08 22:06:35 +10:00
UnknownShadow200
2a233d9b11 Fix z-fighting and picking issues with water/lava. 2016-07-08 14:47:00 +10:00
UnknownShadow200
118f134b8f Implement top-face water culling like classic. 2016-07-07 17:42:26 +10:00
UnknownShadow200
1578bac6bc Make held block and dig animations more accurate. 2016-07-07 15:21:51 +10:00
UnknownShadow200
ad720d69dd Fix rare crash when placing block at top of map. (Thanks kinjacidaleen) 2016-07-05 20:34:05 +10:00
UnknownShadow200
3291c47b9f Fix last commit. 2016-06-28 16:55:36 +10:00
UnknownShadow200
d2c6820dec Do much more optimised chunk rendering, this can double FPS on very large worlds (512^3 or 1024^3) which have many empty chunks. 2016-06-28 13:29:42 +10:00
UnknownShadow200
b2d0737b18 RenderType command should save between sessions. (Thanks classic1234) 2016-06-26 22:36:49 +10:00
UnknownShadow200
5b5b76f185 Fix skybox not being affected by view bobbing. 2016-06-26 09:03:54 +10:00
UnknownShadow200
29696560be Fix changing a colour code not changing colour in chat, only extended input widget. 2016-06-25 23:04:25 +10:00
UnknownShadow200
0fae1bab87 Fix depth testing for held block. 2016-06-25 21:02:20 +10:00
UnknownShadow200
d3a0cb69c7 Use rewrited view bobbing by goodlyay. (Much much thanks) 2016-06-25 16:13:45 +10:00
UnknownShadow200
f960043a08 Colour held block, more work on dig anim. 2016-06-25 13:48:12 +10:00
UnknownShadow200
81a8fb3de5 Make view bobbing anim better. 2016-06-24 23:34:49 +10:00
UnknownShadow200
23f5be9370 More work on dig anim. 2016-06-24 22:30:09 +10:00
UnknownShadow200
913e3570b5 Adjust held block for block height and initial work on dig anim. 2016-06-24 22:01:21 +10:00
UnknownShadow200
8bdbefb5b2 Fix swing anim and held block moving. 2016-06-24 21:28:00 +10:00
UnknownShadow200
ed6e4463c1 First part of heldblock rewrite. (Thanks goodlyay) 2016-06-24 20:53:22 +10:00
UnknownShadow200
df12571d96 Don't load a texture if it is bigger than gpu's max supported size. 2016-06-23 10:50:51 +10:00
UnknownShadow200
635aa4d348 Fix map border blocks not being at correct height, draw translucent blocks before map water when underwater for proper alpha blending. 2016-06-22 18:50:47 +10:00
UnknownShadow200
46095f6db9 Use methods compatible with OpenTK 1.0 API. 2016-06-21 08:34:27 +10:00
UnknownShadow200
52d25c081a Make lava draw translucent, optimise button widget rendering by only creating a texture size of text and then offseting to correct coords, instead of making one big texture equal to desired button size. 2016-06-18 23:11:06 +10:00
UnknownShadow200
fc688b53d2 Vertex counter now only counts vertices actually submitted to the GPU for drawing. (Thanks Empy) 2016-06-15 21:39:51 +10:00
UnknownShadow200
d6266ed61e Normalise line endings to end this madness. (Thanks Jjp137) 2016-06-11 17:56:37 +10:00
UnknownShadow200
e1d9b979cb Make water/lava be offset down by 1.5 pixels to match original classic. 2016-06-11 17:15:29 +10:00
UnknownShadow200
b2c642b8af Remove Block enum. 2016-06-11 15:29:45 +10:00
UnknownShadow200
585bde4454 Do not toggle depthwrite on/off in weather renderer unless necessary. 2016-06-08 15:16:31 +10:00
UnknownShadow200
1158193ad1 Fix selected block outline not showing when looking through map edge water. 2016-06-08 15:04:17 +10:00