Commit graph

340 commits

Author SHA1 Message Date
UnknownShadow200
20433f97ab Make TerrainAtlas and TerrainAtlas1D static for very minor performance increase 2018-03-15 21:04:21 +11:00
UnknownShadow200
e54475e09f Port HeldBlockRenderer to C 2018-03-11 15:22:14 +11:00
UnknownShadow200
c61f3cb326 Allow turning off individual channels in gfx api 2018-03-10 17:07:38 +11:00
UnknownShadow200
4bf1754843 minor code cleanup 2018-03-05 07:53:19 +11:00
UnknownShadow200
bc90eb9d52 Fix external plugins changing game.Graphics causing issues 2018-03-04 19:44:03 +11:00
UnknownShadow200
e4310342bb Port player list widget to C. 2018-01-21 22:17:06 +11:00
UnknownShadow200
fd5427edb4 don't use d3d9 managed pool for map border and sides textures 2018-01-16 20:44:23 +11:00
UnknownShadow200
4a332f80ac Increase default max chunks built per frame from 20 to 30, also add undocumented option to increase that even more. 2018-01-15 11:37:02 +11:00
UnknownShadow200
0ee7101a55 Fix rare crashing when minimised on some GPUs, fixes #489.
Also redesign matrix setting architecture to completely eliminate matrix push/pop stack usage.
2017-12-18 21:27:44 +11:00
UnknownShadow200
3bb02e56b8 gfx api can override perspective matrix calculation, partially port Player to C. 2017-12-14 11:01:07 +11:00
UnknownShadow200
96d01f101f Fix snow/rain not rendering properly over map bedrock borders, when border height is > height of map. 2017-12-09 08:54:46 +11:00
UnknownShadow200
b2cacf6dc0 Fix incorrect rendering when chunk had over 65,536 vertices. (Thanks Empy) 2017-12-07 19:24:53 +11:00
UnknownShadow200
71a21714a0 Port InventoryScreen to C. 2017-11-29 10:58:52 +11:00
UnknownShadow200
ac971a1c5b Fix arm not rendering properly with non power of two skin (thanks masoncb) 2017-11-23 09:32:23 +11:00
UnknownShadow200
caf6de6792 Fix block break animation only beginning to play after switching back to first person camera, if block was broken with third person camera. (Thanks Cybertoon) 2017-11-22 22:25:57 +11:00
UnknownShadow200
3dfe3847b9 Add DrawText/MeasureText to C platform API 2017-10-28 21:15:29 +11:00
UnknownShadow200
3049822462 Fix height of gas block affecting the position of arm. (Thanks kingoscargames1) 2017-10-19 22:14:07 +11:00
UnknownShadow200
9556b1a384 If 'useclouds' is in the texture pack zip, then both the skybox and clouds render. 2017-09-28 12:23:45 +10:00
UnknownShadow200
b85afc73f9 Add ability to rotate skybox 2017-09-27 10:12:05 +10:00
UnknownShadow200
7a77a34b14 Little bit less use of generics 2017-09-19 23:11:59 +10:00
UnknownShadow200
7d9dd4ec1e For consistency, always use verticesCount in 3D graphics APIs, instead of mixing vertices and indices count 2017-09-16 20:30:05 +10:00
UnknownShadow200
cf8812a03c Port Options.Set to C. 2017-09-15 22:19:44 +10:00
UnknownShadow200
3c6bf3624c Further reduce size of IL code 2017-09-13 23:09:10 +10:00
UnknownShadow200
a14492daa8 Begin porting Options to C. 2017-09-13 18:23:24 +10:00
UnknownShadow200
9dd16baf47 ChunkPartInfo is now 12 bytes less in size 2017-09-13 14:20:11 +10:00
UnknownShadow200
0d95ec7787 Reduce IL size of SkyboxRenderer.MakeVb() by 214 bytes 2017-09-13 10:49:57 +10:00
UnknownShadow200
f986d5254e get rid of implicit matrix operator usage to avoid a copy 2017-09-07 10:18:54 +10:00
UnknownShadow200
ffcd5d2d58 Optimise Entity.TransformMatrix, prefer 32 to 64 bit usages in places, start work on parsing C string to 32 bit number. 2017-08-23 12:43:36 +10:00
UnknownShadow200
3a7cc8924b Implement mipmaps with direct3d9 backend too. Fixes #214. 2017-08-22 23:47:00 +10:00
UnknownShadow200
ff177cd023 Start work on mipmaps support, fix plugin warning crashing client 2017-08-22 20:38:19 +10:00
UnknownShadow200
cade919527 Fix some minor issues with held block. 2017-08-19 16:38:23 +10:00
UnknownShadow200
0cf4e91888 Implement nicer dig animation, see https://github.com/UnknownShadow200/ClassicalSharp/wiki/Dig-animation-details (Thanks goodlyay) 2017-08-18 21:00:57 +10:00
UnknownShadow200
32e24eb914 Initial work on arm in hand.
Based on https://github.com/UnknownShadow200/ClassicalSharp/wiki/Position-of-the-player%27s-arm-in-1st-person%2C-from-Survival-Test, thanks goodlyay
2017-08-18 14:04:37 +10:00
UnknownShadow200
c23ba90c1f Make BlockInfo class static and break all plugins in the process. 2017-08-14 09:33:21 +10:00
UnknownShadow200
dd08385fdc Fix WeatherRenderer in C. 2017-08-04 12:32:24 +10:00
UnknownShadow200
446afae0bd Finish porting EnvRenderer to C. 2017-08-04 12:26:52 +10:00
UnknownShadow200
9172afcfc9 Combine MinimalEnvRenderer and StandardEnvRenderer, remove a bunch of yucky 'if X is Y', casts, game.ReplaceComponent 2017-08-04 11:36:51 +10:00
UnknownShadow200
a49fda440f Remove the yucky 'is entity FakePlayer', instead store ModelBlock as a field. 2017-08-03 14:53:34 +10:00
UnknownShadow200
bee207138c Only pick a block if the intersection point is exactly within reach distance. Should address #461. 2017-08-02 20:06:01 +10:00
UnknownShadow200
8113246985 allow changing scaling of each axis of model independently. 2017-07-30 10:05:05 +10:00
UnknownShadow200
c82e1e91c1 Port skeleton model to C. 2017-07-24 11:00:01 +10:00
UnknownShadow200
8b8fa40548 Fix skybox being clipped by near plane with 150 FOV, fixes #457. (Thanks goodlyay) 2017-07-11 17:23:28 +10:00
UnknownShadow200
a5cb7bb1d7 Fix a missing space in a comment. 2017-07-08 23:52:18 +10:00
UnknownShadow200
d82cfe2cbe For maximum performance, provide an overload of DrawTris that does not take a startIndex as a parameter 2017-07-06 11:29:51 +10:00
UnknownShadow200
bf846b80c0 Remove DrawMode/DrawVb/DrawIndexedVb, just provide DrawVb_Lines and DrawVb_IndexedTris 2017-07-03 23:56:05 +10:00
UnknownShadow200
eef4167ac9 Renderers should use the generic Gfx_DrawIndexedVb, only MapRenderer should use Gfx_DrawIndexedVb_TrisT2fC4b 2017-07-02 18:44:05 +10:00
UnknownShadow200
f626084eff remove some whitespace to force build-bot to rebuild releases 2017-06-26 22:34:08 +10:00
UnknownShadow200
652e697bf8 Don't bother allocating a vertex buffer when map sides/edges is a gas draw type block such as air. Fixes #406 2017-06-25 15:24:29 +10:00
UnknownShadow200
ddac95104c Show average ping in status in top left. Fixes #444 2017-06-25 14:54:06 +10:00
UnknownShadow200
9d5f378be8 Don't render backfaces of held block. Fixes #443. 2017-06-25 14:49:17 +10:00