aboutsummaryrefslogtreecommitdiff
path: root/minetest.conf.example
Commit message (Expand)AuthorAge
* Add show_statusline_on_connect setting (#5084)Loïc Blot2017-01-21
* Documentation: Correct biome heat / humidity noise parametersparamat2017-01-15
* Enable mod security by defaultShadowNinja2017-01-13
* Fix display gamma documentationThomas--S2017-01-02
* Redo light.cpp.Auke Kok2016-12-28
* Process ABMs in a spherical volume instead of cubicLars Hofhansl2016-12-24
* Disable mod security by default (closes #4944)sfan52016-12-21
* Mapgen: Make mgv7 the default in UIAuke Kok2016-12-16
* Cavegen: Wider tunnels in mgflat, mgfractal, mgvalleysparamat2016-12-14
* Update minetest.conf.example and settings_translation_file.cppest312016-12-14
* Mgv7: Change default cave width to 0.09sfan52016-12-13
* View range: Set maximum to 4000 nodesRogier2016-12-12
* Fog: Make fraction of visible distance at which fog starts configurableLars Hofhansl2016-12-07
* Mgv7: Add optional floatlands, disabled by defaultparamat2016-11-15
* Conf.example: Document block_send_optimize_distanceLars Hofhansl2016-11-08
* Changes to static object storage limit and error messageparamat2016-10-20
* Enable mod security by defaultShadowNinja2016-10-16
* Add missing languages to the settingsSmallJoker2016-10-11
* Chat: new settings to prevent spamLoic Blot2016-10-05
* Conf.example: Re-add deleted noise parameter documentationparamat2016-09-23
* Increase default font size by 1James Stevenson2016-09-21
* Document keymap_autorun in settingtypes.txt and minetest.conf.example (#4486)Rui2016-08-30
* Update minetest.conf.example and settings_translation_file.cppest312016-08-30
* Client: disable pre v25 init sending by defaultest312016-08-22
* Document zoom_fov in settingtypes.txt and minetest.conf.exampleBen Deutsch2016-08-10
* Update minetest.conf.example and the settings translation fileest312016-07-24
* Update minetest.conf.example, and settings_translation_file.cppest312016-07-12
* Remove cinematic toggle on F8rubenwardy2016-07-05
* Mgflat/fractal/v7/valleys: Denser 3D noise tunnelsparamat2016-06-24
* Documentation: Remove incorrect and excessive mapgen flags textparamat2016-05-16
* Update settings translation file and minetest.conf.exampleest312016-05-05
* Mapgen: Make 3D noise tunnels' width settableparamat2016-04-28
* Builtin: Add basic_privs settingrubenwardy2016-04-28
* Add option to disable entity selectionboxes. (#3992)TriBlade92016-04-14
* Mgv7: Decrease cliff steepnessparamat2016-03-30
* Allow NodeTimer, ABM and block mgmt interval changes.Auke Kok2016-03-19
* Add option to not send pre v25 init packetest312016-03-15
* Add options for screenshot format and qualityDiego Martinez2016-03-12
* Documentation: Auto-update conf.example and settings_translation_file.cppparamat2016-03-12
* Documentation: Clarify global and mapgen-specific mapgen flagsparamat2016-03-11
* Add forgotten valleys mapgen in mapgen nameMuhammad Rifqi Priyo Susanto2016-03-05
* Update po files, minetest.conf.example and settings_translation_file.cppest312016-02-27
* Remove new_style_waterRealBadAngel2016-02-26
* Camera: remove auto tune FPS, single view range settingRealBadAngel2016-02-21
* Remove preload_item_visuals codeRealBadAngel2016-02-21
* Documentation: Remove now unused 'vertical spawn range'paramat2016-02-11
* Filmic HDR tone mappingRealBadAngel2016-02-09
* Cleanup selection mesh code, add shaders for halo and selection boxesRealBadAngel2016-02-08
* Use meshes to display inventory itemsRealBadAngel2016-02-07
* Mgvalleys: use standard cavesDuane Robertson2016-01-31
opt">::IImage *src, const core::rect<s32> &srcrect, video::IImage *dest) { double sx, sy, minsx, maxsx, minsy, maxsy, area, ra, ga, ba, aa, pw, ph, pa; u32 dy, dx; video::SColor pxl; // Cache rectsngle boundaries. double sox = srcrect.UpperLeftCorner.X * 1.0; double soy = srcrect.UpperLeftCorner.Y * 1.0; double sw = srcrect.getWidth() * 1.0; double sh = srcrect.getHeight() * 1.0; // Walk each destination image pixel. // Note: loop y around x for better cache locality. core::dimension2d<u32> dim = dest->getDimension(); for (dy = 0; dy < dim.Height; dy++) for (dx = 0; dx < dim.Width; dx++) { // Calculate floating-point source rectangle bounds. // Do some basic clipping, and for mirrored/flipped rects, // make sure min/max are in the right order. minsx = sox + (dx * sw / dim.Width); minsx = rangelim(minsx, 0, sw); maxsx = minsx + sw / dim.Width; maxsx = rangelim(maxsx, 0, sw); if (minsx > maxsx) SWAP(double, minsx, maxsx); minsy = soy + (dy * sh / dim.Height); minsy = rangelim(minsy, 0, sh); maxsy = minsy + sh / dim.Height; maxsy = rangelim(maxsy, 0, sh); if (minsy > maxsy) SWAP(double, minsy, maxsy); // Total area, and integral of r, g, b values over that area, // initialized to zero, to be summed up in next loops. area = 0; ra = 0; ga = 0; ba = 0; aa = 0; // Loop over the integral pixel positions described by those bounds. for (sy = floor(minsy); sy < maxsy; sy++) for (sx = floor(minsx); sx < maxsx; sx++) { // Calculate width, height, then area of dest pixel // that's covered by this source pixel. pw = 1; if (minsx > sx) pw += sx - minsx; if (maxsx < (sx + 1)) pw += maxsx - sx - 1; ph = 1; if (minsy > sy) ph += sy - minsy; if (maxsy < (sy + 1)) ph += maxsy - sy - 1; pa = pw * ph; // Get source pixel and add it to totals, weighted // by covered area and alpha. pxl = src->getPixel((u32)sx, (u32)sy); area += pa; ra += pa * pxl.getRed(); ga += pa * pxl.getGreen(); ba += pa * pxl.getBlue(); aa += pa * pxl.getAlpha(); } // Set the destination image pixel to the average color. if (area > 0) { pxl.setRed(ra / area + 0.5); pxl.setGreen(ga / area + 0.5); pxl.setBlue(ba / area + 0.5); pxl.setAlpha(aa / area + 0.5); } else { pxl.setRed(0); pxl.setGreen(0); pxl.setBlue(0); pxl.setAlpha(0); } dest->setPixel(dx, dy, pxl); } }