Craig Robbins
3c8e372119
Removed superfluous facedir check in mapblock_mesh.cpp
2015-01-10 02:06:33 +10:00
unknown
1e8e700ee6
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
c5f6f9f77a
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
535c473103
Restore finalColorBlend implementation in shaders.
2014-12-07 11:05:00 +01:00
Craig Robbins
cb2d467665
Fix smooth lighting (ambient occlusion)
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-22 21:58:00 +10:00
Craig Robbins
d406ac994b
Optimise functions from CNodeDefManager and VoxelManipulator
...
CNodeDefManager::get()
VoxelManipulator::addArea()
2014-11-21 14:56:45 +10:00
Craig Robbins
ea404979e1
Optimise getTileInfo()
...
getTileInfo() ~1.5x faster
getSmoothLight ~2.0x faster
2014-11-21 14:56:45 +10:00
Kahrl
9b551d5cbc
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
076c5ee223
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
0066bd77d2
Add meshnode drawtype.
2014-10-18 16:42:23 +02:00
RealBadAngel
58e6d25e03
Node highlighting.
2014-09-17 22:06:13 +02:00
RealBadAngel
d9df592da8
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
bf91d623c8
Let lighting be done only CPU side. Remove finalColorBlend implementation from shaders.
2014-08-16 14:48:52 +02:00
RealBadAngel
5e54bf1472
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
f0db6c4423
Speedup mapblock_mesh
2014-07-17 22:28:14 +02:00
RealBadAngel
c9ba92c4ad
Faces shading fixes
2014-07-07 18:06:20 +02:00
Perttu Ahola
9b44bbd0a6
Fix non-smooth non-shader node shading ( Fixes #1436 , regression by commit a0f78659f31abd)
2014-07-06 22:01:03 +03:00
sapier
bfaba2c12a
Fix regression in light calculation
2014-06-30 22:56:08 +02:00
sapier
d5de0cbf71
Minor fix in check order
2014-06-23 00:13:41 +02:00
sapier
496cb115b1
Speedup getTileInfo by up to 30%
2014-06-23 00:13:41 +02:00
RealBadAngel
a0f78659f3
Improved faces shading with and without shaders.
2014-06-17 00:56:17 +02:00
RealBadAngel
6c98fd6658
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
9ec281c712
Fixed wrong node texture rotation for facedirs 5 and 7
2014-04-23 12:11:56 +02:00
sapier
556bdc260a
Pass pointer to nodedef directly to avoid recalculation in quite often called function
2014-04-06 10:32:57 +02:00
RealBadAngel
0dc1aec509
Normal maps generation on the fly.
...
Parallax mapping with slope information.
Overriding normal maps.
2014-03-21 01:32:00 +01:00
Novatux
062de11b4c
Fix rendering glitches when far from the center of the map
2014-03-04 20:12:10 +01:00
RealBadAngel
dae03382bf
Optimize shaders code. Add settings at compile time.
2013-12-09 13:28:50 +01:00
RealBadAngel
2330267d22
Shaders rework.
2013-12-03 18:55:25 +01:00
kwolekr
a92fc3563c
Prevent shaders from being created when disabled
2013-11-17 02:46:05 -05:00
Kahrl
af490330e7
Fix remnants of s32 enable_shaders
2013-09-04 00:16:33 +02:00
PilzAdam
56b9377c1c
Dont crash if facedir > 23
2013-08-10 16:26:02 +02:00
Kahrl
96c34d369e
Fix crack overlay for animated textures
2013-08-05 01:52:09 +02:00
RealBadAngel
0850d3fcf8
Fix light issue in 6d facedir.
2013-07-21 14:06:18 +02:00
kwolekr
fc6725f14e
Clean up bumpmap code a bit
2013-07-12 00:11:46 -04:00
sapier
88d43af276
Fix many formspec menu bugs
2013-07-07 19:49:52 -04:00
RealBadAngel
3f6f327cb9
Add texture bumpmapping feature.
2013-07-04 02:36:32 +02:00
Kahrl
8161ab573f
Remove texture atlas / AtlasPointer, rename getTextureRaw to getTexture
2013-07-02 03:03:10 +02:00
Esteban I. Ruiz Moreno
816ffa99ba
Remove useless recalculation of bounding box (mapblock_mesh)
2013-06-18 01:11:46 +02:00
sweetbomber
0413f8ad9d
Removed a redundant step which degraded performance
2013-06-15 21:41:30 +04:00
Kahrl
9a559eb8cf
Remove 'Meshbuffer ran out of indices' limitation
2013-05-06 19:06:18 +02:00
kwolekr
770305e28d
Add option to use texture alpha channel
2013-04-23 22:15:51 -04:00
RealBadAngel
6f8d40ef5d
6d facedir
2013-03-23 21:31:05 +01:00
Ilya Zhuravlev
6a1670dbc3
Migrate to STL containers/algorithms.
2013-03-11 19:08:39 -04:00
Sfan5
6d0ea26c2d
Update Copyright Years
2013-02-24 20:15:24 +01:00
PilzAdam
497ff1ecd6
Change Minetest-c55 to Minetest
2013-02-24 18:49:03 +01:00
Perttu Ahola
07632b7d69
Try to add a bit of topside brightness when not using shaders
2012-12-02 23:48:11 +02:00
Perttu Ahola
cd1f604ffe
Handle day-night transition in shader and make light sources brighter when shaders are used
2012-12-02 14:24:58 +02:00
Perttu Ahola
3e07c5bf82
Fix tile MaterialType to make sense and make lava surface be shader'd lower like water
2012-12-02 02:59:15 +02:00
Perttu Ahola
27373919f4
Implement a global shader parameter passing system and useful shaders
2012-12-02 00:46:18 +02:00
Kahrl
22e6fb7056
ShaderSource and silly example shaders
2012-12-02 00:46:18 +02:00
Perttu Ahola
5c26972cdd
Fix mesh glitches on MapBlock boundaries
2012-11-27 19:00:09 +02:00
Perttu Ahola
1788709e2d
Rotate facedir-rotated top and bottom textures too, and re-implement nodebox side rotation
2012-07-21 20:23:32 +03:00
Perttu Ahola
d0ea6f9920
Properly and efficiently use split utility headers
2012-06-17 02:40:36 +03:00
Perttu Ahola
6b598f61a6
Add desynchronize_mapblock_texture_animation setting and improve minetest.conf.example a bit
2012-06-16 22:37:20 +03:00
Perttu Ahola
fd1135c7af
Node texture animation
2012-06-16 16:47:28 +03:00
Perttu Ahola
037b259197
Switch the license to be LGPLv2/later, with small parts still remaining as GPLv2/later, by agreement of major contributors
2012-06-05 18:54:07 +03:00
Perttu Ahola
74aa598769
Fix MSVC build (pow type overload stuff)
2012-05-31 20:22:37 +03:00
Perttu Ahola
afda9810f1
Tune smooth lighting a bit
2012-05-20 14:12:17 +03:00
Perttu Ahola
d8edd3d0c8
Make lava brighter by showing light sources at their full emitted light level
2012-04-08 04:01:12 +03:00
Kahrl
807a0d313b
MapBlockMesh, mesh animation system, urgent mesh updates, athmospheric light, removed footprints
2012-03-15 21:45:44 +02:00
Kahrl
157a4cf18c
Node placement / mineral / serialization / iron freq / node_dig callback
...
- Node placement code moved to Lua
- Mineral system removed (added default:stone_with_coal and default:stone_with_iron).
- MapBlock and MapNode serialization updated.
- Mapgen: Frequency of iron increased.
- node_dig callback and related changes.
2012-01-22 17:24:50 +02:00
Kahrl
6a76c226e1
The huge item definition and item namespace unification patch (itemdef), see http://c55.me/minetest/wiki/doku.php?id=changes:itemdef
2012-01-12 06:10:39 +01:00
Perttu Ahola
ba762bcd49
Clean mapnode.h and fix other files accordingly
2011-11-29 19:13:44 +02:00
Perttu Ahola
c6fd2986d4
GameDef compiles
2011-11-29 19:13:42 +02:00
Perttu Ahola
abceeee92f
Create framework for getting rid of global definitions of node/tool/item/whatever types
2011-11-29 19:13:41 +02:00
Perttu Ahola
64996422c0
Move ContentFeatures to mapnode_contentfeatures.{h,cpp} and clean stuff
2011-11-29 19:13:40 +02:00
Perttu Ahola
045e32b6ec
Fix water-glass and water-lava surfaces
2011-11-08 16:17:38 +02:00
Perttu Ahola
554f7f120c
Improve rendering and fix tiling in mesh generation
2011-10-18 13:56:35 +03:00
Perttu Ahola
825953bbdc
Fix some "Conditional jump or move depends on uninitialised value(s)" valgrind detections
2011-10-15 23:07:43 +03:00
Perttu Ahola
9e46cbf7ea
Header file tweaking; mainly for speed
2011-10-12 13:53:38 +03:00
Perttu Ahola
73cf4b3016
made shadows less blue
2011-07-24 00:49:45 +03:00
Perttu Ahola
501034a792
merged jungle and bluish shadows
2011-07-23 20:01:06 +03:00
Perttu Ahola
90d793f8f3
extended content-type range
2011-07-23 16:55:26 +03:00
Perttu Ahola
d67cef0eb7
Made dark places tint slightly in blue
2011-07-23 04:10:17 +03:00
Perttu Ahola
2915bd5518
more reorganizing of map code
2011-06-26 01:31:43 +03:00
Perttu Ahola
aed9e809a1
mapgen stuff
2011-06-25 16:32:09 +03:00
Perttu Ahola
682c9d8e7d
Moved stuff from mapblock{h,cpp} to mapblock_mesh.{h,cpp} and content_mapblock.{h,cpp}
2011-06-17 23:20:31 +03:00