David Jones
9d1284b324
Change i++ to ++i
2015-08-25 18:33:52 -04:00
Břetislav Štec
d1e322facf
Fixed minimap memory leak
2015-07-27 11:06:46 -04:00
RealBadAngel
dd9ca2e7ed
Fix relief mapping issues
2015-07-16 15:36:48 +02:00
kwolekr
9aadb44895
Clean-up Minimap code
...
- Fixed race conditions
- Fixed null dereference
- Fixed out-of-bounds array access
- MinimapMapblock is now allocated and added to update queue only when enabled
- Removed dependency on LocalPlayer
- Fixed code style
- Simplified expressions and program logic
- Cleaned minimap object interfaces
2015-07-08 01:50:31 -04:00
RealBadAngel
15bbb593e4
Add minimap feature
2015-06-27 03:42:01 +02:00
est31
f9eb909eb2
Automated whitespace error fix for last commit
2015-06-14 23:15:20 +02:00
RealBadAngel
a111a5fbcf
Improved parallax mapping. Generate heightmaps on the fly.
2015-06-14 21:13:36 +02:00
Craig Robbins
0731f9ed2a
Move globals from main.cpp to more sane locations
...
Move debug streams to log.cpp|h
Move GUI-related globals to clientlauncher
Move g_settings and g_settings_path to settings.cpp|h
Move g_menuclouds to clouds.cpp|h
Move g_profiler to profiler.cpp|h
2015-04-01 23:04:25 +10:00
Aaron Suen
b7263a190f
Move texture_min_size even further down the pipe. Now, textures are JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.
2015-03-31 16:56:33 +10:00
gregorycu
1622c43591
Optimise MapBlockMesh related functions
...
Directely or indirectly optimises the following functions:
* MapBlockMesh::MapBlockMesh
* MapBlockMesh::getTileInfo
* MapBlockMesh::makeFastFace
* MapBlockMesh::getSmoothLightCombined
2015-02-23 23:20:31 +10:00
Craig Robbins
43bfdaab5f
Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting
...
* Increase performance (client)
* Avoid changing a global value to solve a local problem
2015-02-11 17:45:49 +10:00
Craig Robbins
92c52c10c0
Revert "Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting"
...
This reverts commit d25ff8fd2592f457b91e8a61240694af3902d23f.
2015-02-11 17:01:19 +10:00
Craig Robbins
da65100b53
Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting
...
* Increase performance (client)
* Avoid changing a global value to solve a local problem
2015-02-11 16:02:16 +10:00
Craig Robbins
bc9fad4544
Fix potential out-of-bounds array index
2015-01-16 14:35:57 +10:00
TriBlade9
79775af10d
Added configurable ambient_occlusion_gamma. Default is 2.2 (same as previous hardcoded values).
2015-01-14 23:35:50 +10:00
Craig Robbins
63c19610dc
Removed superfluous facedir check in mapblock_mesh.cpp
2015-01-10 02:06:33 +10:00
unknown
9297cec8b5
Change TileSpec::frames to be std::vector not std::map
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-21 02:41:17 +10:00
Craig Robbins
1995bfbbcc
Increase performance of getLight() by at least 2x
...
Leads to the following increases:
getSmoothLight() approx. 40% increase
getTileInfo() approx. 25% increase
MapBlockMesh::MapBlockMesh() 25-30%
2014-12-10 00:52:02 +10:00
RealBadAngel
0e340a5753
Restore finalColorBlend implementation in shaders.
2014-12-07 11:05:00 +01:00
Craig Robbins
26b19607d9
Fix smooth lighting (ambient occlusion)
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-22 21:58:00 +10:00
Craig Robbins
47d1207aa8
Optimise functions from CNodeDefManager and VoxelManipulator
...
CNodeDefManager::get()
VoxelManipulator::addArea()
2014-11-21 14:56:45 +10:00
Craig Robbins
680a729b90
Optimise getTileInfo()
...
getTileInfo() ~1.5x faster
getSmoothLight ~2.0x faster
2014-11-21 14:56:45 +10:00
Kahrl
c33891174d
Implement WieldMeshSceneNode which improves wield mesh rendering
...
- Don't create and cache an extruded mesh for every (non-node) item.
Instead use a single one per image resolution.
- For cubic nodes reuse a single wield mesh too
- Improve lighting of the wielded item
- Increase far value of wield mesh scene camera, fixes #1770
- Also includes some minor refactorings of Camera and GenericCAO.
2014-11-08 23:11:57 +01:00
Craig Robbins
df5491d040
Various uninitialised variable fixes
...
sky.cpp: m_bgcolor.getAlpha() was being used before initialised
mesh related: m_highlight_mesh_color was being used uninitialised
2014-10-19 15:33:08 +02:00
RealBadAngel
1c09928344
Add meshnode drawtype.
2014-10-18 16:42:23 +02:00
RealBadAngel
61b86590fc
Node highlighting.
2014-09-17 22:06:13 +02:00
RealBadAngel
2b4ddb217a
Pass light sources in blue channel of vertex color instead of decoded light for all special drawtypes.
...
Plus some style fixes and optimizations.
2014-08-21 23:28:01 +02:00
RealBadAngel
eac3364d18
Let lighting be done only CPU side. Remove finalColorBlend implementation from shaders.
2014-08-16 14:48:52 +02:00
RealBadAngel
2d97d0619f
Make faces shading correct for all possible modes.
...
Skip shading for lightsources and top of the nodes.
Fixes liquid sources and flowing surfaces having different brightness.
2014-08-14 06:43:47 +02:00
RealBadAngel
ff1e7d78c9
Speedup mapblock_mesh
2014-07-17 22:28:14 +02:00
RealBadAngel
592c5d9a94
Faces shading fixes
2014-07-07 18:06:20 +02:00
Perttu Ahola
eb8008eb6a
Fix non-smooth non-shader node shading ( Fixes #1436 , regression by commit a0f78659f31abd)
2014-07-06 22:01:03 +03:00
sapier
1e7124b365
Fix regression in light calculation
2014-06-30 22:56:08 +02:00
sapier
b656d38e55
Minor fix in check order
2014-06-23 00:13:41 +02:00
sapier
58da0c5af7
Speedup getTileInfo by up to 30%
2014-06-23 00:13:41 +02:00
RealBadAngel
e1be24b0dc
Improved faces shading with and without shaders.
2014-06-17 00:56:17 +02:00
RealBadAngel
068b1ca61d
Unite nodes shaders.
...
Pass drawtype and material type to shaders.
Move shaders generation to startup only.
Allow assign shaders per tile.
Initial code to support water surface shader.
2014-06-15 05:40:33 +02:00
MetaDucky
1a7db07648
Fixed wrong node texture rotation for facedirs 5 and 7
2014-04-23 12:11:56 +02:00
sapier
4b548c6c2c
Pass pointer to nodedef directly to avoid recalculation in quite often called function
2014-04-06 10:32:57 +02:00
RealBadAngel
9cf4f96fa7
Normal maps generation on the fly.
...
Parallax mapping with slope information.
Overriding normal maps.
2014-03-21 01:32:00 +01:00
Novatux
a662fe9fc4
Fix rendering glitches when far from the center of the map
2014-03-04 20:12:10 +01:00
RealBadAngel
9d6015b41d
Optimize shaders code. Add settings at compile time.
2013-12-09 13:28:50 +01:00
RealBadAngel
c18af13697
Shaders rework.
2013-12-03 18:55:25 +01:00
kwolekr
032913f408
Prevent shaders from being created when disabled
2013-11-17 02:46:05 -05:00
Kahrl
a29d5a37a7
Fix remnants of s32 enable_shaders
2013-09-04 00:16:33 +02:00
PilzAdam
e0e040f464
Dont crash if facedir > 23
2013-08-10 16:26:02 +02:00
Kahrl
2328255b7b
Fix crack overlay for animated textures
2013-08-05 01:52:09 +02:00
RealBadAngel
3ccc4f8dbc
Fix light issue in 6d facedir.
2013-07-21 14:06:18 +02:00
kwolekr
f862a37e19
Clean up bumpmap code a bit
2013-07-12 00:11:46 -04:00
sapier
4f7abcbafa
Fix many formspec menu bugs
2013-07-07 19:49:52 -04:00