Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
node_visuals.cpp File Reference
#include "node_visuals.h"
#include "mesh.h"
#include "shader.h"
#include "client.h"
#include "renderingengine.h"
#include "texturesource.h"
#include "wieldmesh.h"
#include "tile.h"
#include <IMeshManipulator.h>
#include <SMesh.h>
#include <SkinnedMesh.h>
+ Include dependency graph for node_visuals.cpp:

Classes

struct  TileAttribContext
 
struct  PreLoadedTexture
 
struct  PreLoadedTextures
 

Typedefs

using GetShaderCallback = std::function<u32 (bool )>
 

Functions

static void fillTileAttribs (TileLayer *layer, TileAttribContext context, const TileSpec &tile, const TileDef &tiledef, MaterialType material_type, GetShaderCallback get_shader)
 
static bool isWorldAligned (AlignStyle style, WorldAlignMode mode, NodeDrawType drawtype)
 
static size_t getArrayTextureMax (IShaderSource *shdsrc)
 

Typedef Documentation

◆ GetShaderCallback

using GetShaderCallback = std::function<u32 (bool )>

Function Documentation

◆ fillTileAttribs()

◆ getArrayTextureMax()

static size_t getArrayTextureMax ( IShaderSource * shdsrc)
static
Returns
maximum number of layers in array textures we can use (0 if unsupported)

References g_settings, RenderingEngine::get_video_driver(), Settings::getU32(), IShaderSource::supportsSampler2DArray(), and TileLayer::texture_layer_idx.

Referenced by NodeVisuals::fillNodeVisuals().

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

◆ isWorldAligned()

static bool isWorldAligned ( AlignStyle style,
WorldAlignMode mode,
NodeDrawType drawtype )
static

References ALIGN_STYLE_USER_DEFINED, ALIGN_STYLE_WORLD, NDT_NODEBOX, NDT_NORMAL, WORLDALIGN_DISABLE, WORLDALIGN_FORCE, and WORLDALIGN_FORCE_NODEBOX.

Referenced by NodeVisuals::updateTextures().

+ Here is the caller graph for this function: