20 lightDay(core::clamp(core::round32(valueA), 0, 255)),
21 lightNight(core::clamp(core::round32(valueB), 0, 255)) {}
80 u8 reset_flags = 0,
bool special =
false);
87 float vertical_tiling = 1.0);
90 template <
typename Fn>
147 bool offset_top_only =
false);
152 float offset_h,
float offset_v = 0.0);
static v2f dir(const v2f &pos_dist)
Definition camera.cpp:191
Definition content_mapblock.h:46
void drawRaillikeNode()
Definition content_mapblock.cpp:1456
void drawTorchlikeNode()
Definition content_mapblock.cpp:999
void useTile(int index=0, u8 set_flags=MATERIAL_FLAG_CRACK_OVERLAY, u8 reset_flags=0, bool special=false)
Definition content_mapblock.cpp:71
void drawPlantlike(bool is_rooted=false)
Definition content_mapblock.cpp:1153
RaillikeData cur_rail
Definition content_mapblock.h:132
void errorUnknownDrawtype()
Definition content_mapblock.cpp:1709
void drawSignlikeNode()
Definition content_mapblock.cpp:1060
void getTile(int index, TileSpec *tile)
Definition content_mapblock.cpp:87
void generateCuboidTextureCoords(aabb3f const &box, f32 *coords)
Definition content_mapblock.cpp:301
const NodeDefManager *const nodedef
Definition content_mapblock.h:56
PlantlikeData cur_plant
Definition content_mapblock.h:144
void calculateCornerLevels()
Definition content_mapblock.cpp:598
LightPair light
Definition content_mapblock.h:66
void drawLiquidSides()
Definition content_mapblock.cpp:660
video::SColor blendLightColor(const v3f &vertex_pos)
Definition content_mapblock.cpp:284
u8 getNodeBoxMask(aabb3f box, u8 solid_neighbors, u8 sametype_neighbors) const
Definition content_mapblock.cpp:484
void drawLiquidBottom()
Definition content_mapblock.cpp:787
f32 scale
Definition content_mapblock.h:70
void drawNodeboxNode()
Definition content_mapblock.cpp:1532
MapNode n
Definition content_mapblock.h:64
const v3s16 blockpos_nodes
Definition content_mapblock.h:58
void drawLiquidNode()
Definition content_mapblock.cpp:805
void drawAutoLightedCuboid(aabb3f box, f32 const *txc=nullptr, TileSpec *tiles=nullptr, int tile_count=0, u8 mask=0)
Definition content_mapblock.cpp:326
v3s16 p
Definition content_mapblock.h:62
void getLiquidNeighborhood()
Definition content_mapblock.cpp:558
video::SColor color
Definition content_mapblock.h:68
LightInfo blendLight(const v3f &vertex_pos)
Definition content_mapblock.cpp:257
void generate()
Definition content_mapblock.cpp:1750
f32 getCornerLevel(int i, int k) const
Definition content_mapblock.cpp:605
bool isSameRail(v3s16 dir)
Definition content_mapblock.cpp:1405
TileSpec tile
Definition content_mapblock.h:69
void drawFencelikeNode()
Definition content_mapblock.cpp:1328
void drawPlantlikeQuad(float rotation, float quad_offset=0, bool offset_top_only=false)
Definition content_mapblock.cpp:1097
void drawQuad(v3f *vertices, const v3s16 &normal=v3s16(0, 0, 0), float vertical_tiling=1.0)
Definition content_mapblock.cpp:117
MeshMakeData *const data
Definition content_mapblock.h:53
void drawMeshNode()
Definition content_mapblock.cpp:1640
static const std::string raillike_groupname
Definition content_mapblock.h:128
void getSpecialTile(int index, TileSpec *tile, bool apply_crack=false)
Definition content_mapblock.cpp:99
LightFrame frame
Definition content_mapblock.h:67
void drawCuboid(const aabb3f &box, TileSpec *tiles, int tilecount, const f32 *txc, u8 mask, Fn &&face_lighter)
Definition content_mapblock.cpp:220
MapblockMeshGenerator(MeshMakeData *input, MeshCollector *output)
Definition content_mapblock.cpp:62
LiquidData cur_liquid
Definition content_mapblock.h:115
void getSmoothLightFrame()
Definition content_mapblock.cpp:238
void drawFirelikeQuad(float rotation, float opening_angle, float offset_h, float offset_v=0.0)
Definition content_mapblock.cpp:1261
bool smooth_liquids
Definition content_mapblock.h:116
void drawFirelikeNode()
Definition content_mapblock.cpp:1281
void renderSingle(content_t node, u8 param2=0x00)
Definition content_mapblock.cpp:1763
void drawSolidNode()
Definition content_mapblock.cpp:392
v3f origin
Definition content_mapblock.h:63
void drawLiquidTop()
Definition content_mapblock.cpp:707
struct MapblockMeshGenerator::@15 cur_node
void drawGlasslikeFramedNode()
Definition content_mapblock.cpp:857
void prepareLiquidNodeDrawing()
Definition content_mapblock.cpp:521
MeshCollector *const collector
Definition content_mapblock.h:54
void drawPlantlikeNode()
Definition content_mapblock.cpp:1239
void drawNode()
Definition content_mapblock.cpp:1715
void drawGlasslikeNode()
Definition content_mapblock.cpp:817
void drawAllfacesNode()
Definition content_mapblock.cpp:1521
void drawPlantlikeRootedNode()
Definition content_mapblock.cpp:1245
const ContentFeatures * f
Definition content_mapblock.h:65
This class is for getting the actual properties of nodes from their content ID.
Definition nodedef.h:545
core::aabbox3d< f32 > aabb3f
Definition irr_aabb3d.h:11
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
u16 content_t
Definition mapnode.h:22
PlantlikeStyle
Definition nodedef.h:239
Definition content_mapblock.h:39
f32 lightsDay[8]
Definition content_mapblock.h:40
bool sunlight[8]
Definition content_mapblock.h:42
f32 lightsNight[8]
Definition content_mapblock.h:41
Definition content_mapblock.h:25
LightPair getPair(float sunlight_boost=0.0) const
Definition content_mapblock.h:30
float light_day
Definition content_mapblock.h:26
float light_boosted
Definition content_mapblock.h:28
float light_night
Definition content_mapblock.h:27
Definition content_mapblock.h:12
LightPair(u8 valueA, u8 valueB)
Definition content_mapblock.h:18
LightPair(float valueA, float valueB)
Definition content_mapblock.h:19
LightPair(u16 value)
Definition content_mapblock.h:17
u8 lightDay
Definition content_mapblock.h:13
u8 lightNight
Definition content_mapblock.h:14
Definition content_mapblock.h:98
f32 level
Definition content_mapblock.h:99
bool top_is_same_liquid
Definition content_mapblock.h:102
bool is_same_liquid
Definition content_mapblock.h:101
content_t content
Definition content_mapblock.h:100
Definition content_mapblock.h:97
video::SColor color_top
Definition content_mapblock.h:111
TileSpec tile_top
Definition content_mapblock.h:108
content_t c_flowing
Definition content_mapblock.h:109
TileSpec tile
Definition content_mapblock.h:107
NeighborData neighbors[3][3]
Definition content_mapblock.h:112
f32 corner_levels[2][2]
Definition content_mapblock.h:113
bool draw_bottom
Definition content_mapblock.h:106
bool top_is_same_liquid
Definition content_mapblock.h:105
content_t c_source
Definition content_mapblock.h:110
Definition content_mapblock.h:136
PlantlikeStyle draw_style
Definition content_mapblock.h:137
float rotate_degree
Definition content_mapblock.h:139
int face_num
Definition content_mapblock.h:141
bool random_offset_Y
Definition content_mapblock.h:140
float plant_height
Definition content_mapblock.h:142
v3f offset
Definition content_mapblock.h:138
Definition content_mapblock.h:129
int raillike_group
Definition content_mapblock.h:130
Definition collector.h:24
Definition mapblock_mesh.h:30
#define MATERIAL_FLAG_CRACK_OVERLAY
Definition tile.h:35