Minetest  5.4.0
clientmap.cpp File Reference
#include "clientmap.h"
#include "client.h"
#include "mapblock_mesh.h"
#include <IMaterialRenderer.h>
#include <matrix4.h>
#include "mapsector.h"
#include "mapblock.h"
#include "profiler.h"
#include "settings.h"
#include "camera.h"
#include "util/basic_macros.h"
#include <algorithm>
#include "client/renderingengine.h"
+ Include dependency graph for clientmap.cpp:

Functions

static bool getVisibleBrightness (Map *map, const v3f &p0, v3f dir, float step, float step_multiplier, float start_distance, float end_distance, const NodeDefManager *ndef, u32 daylight_factor, float sunlight_min_d, int *result, bool *sunlight_seen)
 

Function Documentation

◆ getVisibleBrightness()

static bool getVisibleBrightness ( Map map,
const v3f p0,
v3f  dir,
float  step,
float  step_multiplier,
float  start_distance,
float  end_distance,
const NodeDefManager ndef,
u32  daylight_factor,
float  sunlight_min_d,
int *  result,
bool *  sunlight_seen 
)
static

References BS, CONTENT_IGNORE, CPT_LIGHT, decode_light(), dir(), floatToInt(), NodeDefManager::get(), MapNode::getContent(), MapNode::getLight(), MapNode::getLightBlend(), Map::getNode(), LIGHT_SUN, LIGHTBANK_DAY, p(), ContentFeatures::param_type, and ContentFeatures::sunlight_propagates.

Referenced by ClientMap::getBackgroundBrightness().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: