#include <cmath>#include "content_mapblock.h"#include "util/basic_macros.h"#include "util/numeric.h"#include "util/directiontables.h"#include "util/tracy_wrapper.h"#include "mapblock_mesh.h"#include "settings.h"#include "nodedef.h"#include "client/tile.h"#include "mesh.h"#include "client/meshgen/collector.h"#include "client/renderingengine.h"#include "client.h"#include "noise.h"
Include dependency graph for content_mapblock.cpp:Macros | |
| #define | SMOOTH_LIGHTING_OVERSIZE 1.0 |
| #define | FRAMED_EDGE_COUNT 12 |
| #define | FRAMED_NEIGHBOR_COUNT 18 |
Enumerations | |
| enum class | QuadDiagonal { Diag02 , Diag13 } |
Functions | |
| static std::array< video::S3DVertex, 24 > | setupCuboidVertices (const aabb3f &box, const f32 *txc, const TileSpec *tiles, int tilecount) |
| static int | lightDiff (LightPair a, LightPair b) |
Variables | |
| static const v3s16 | light_dirs [8] |
| static const u8 | light_indices [6][4] |
| static constexpr u16 | quad_indices_02 [] = {0, 1, 2, 2, 3, 0} |
| static constexpr u16 | quad_indices_13 [] = {0, 1, 3, 3, 1, 2} |
| static const auto & | quad_indices = quad_indices_02 |
| #define FRAMED_EDGE_COUNT 12 |
Referenced by MapblockMeshGenerator::drawGlasslikeFramedNode().
| #define FRAMED_NEIGHBOR_COUNT 18 |
Referenced by MapblockMeshGenerator::drawGlasslikeFramedNode().
| #define SMOOTH_LIGHTING_OVERSIZE 1.0 |
Referenced by MapblockMeshGenerator::blendLight().
|
strong |
References LightPair::lightDay, and LightPair::lightNight.
Referenced by MapblockMeshGenerator::drawAutoLightedCuboid(), and MapblockMeshGenerator::drawSolidNode().
Here is the caller graph for this function:
|
static |
References MYMIN, None, R180, R270, R90, and TileSpec::rotation.
Referenced by MapblockMeshGenerator::drawCuboid().
Here is the caller graph for this function:
|
static |
Referenced by MapblockMeshGenerator::drawSolidNode(), and MapblockMeshGenerator::getSmoothLightFrame().
|
static |
Referenced by MapblockMeshGenerator::drawAutoLightedCuboid(), and MapblockMeshGenerator::drawSolidNode().
|
static |
|
staticconstexpr |
Referenced by MapblockMeshGenerator::drawCuboid().
|
staticconstexpr |
Referenced by MapblockMeshGenerator::drawCuboid().