mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
CAO 'node' visual (#15683)
This commit is contained in:
parent
5a8720a484
commit
27bbe3a873
14 changed files with 267 additions and 91 deletions
|
@ -9,7 +9,7 @@
|
|||
#include <vector>
|
||||
#include <SMaterial.h>
|
||||
|
||||
enum MaterialType{
|
||||
enum MaterialType : u8 {
|
||||
TILE_MATERIAL_BASIC,
|
||||
TILE_MATERIAL_ALPHA,
|
||||
TILE_MATERIAL_LIQUID_TRANSPARENT,
|
||||
|
@ -98,8 +98,9 @@ struct TileLayer
|
|||
case TILE_MATERIAL_LIQUID_TRANSPARENT:
|
||||
case TILE_MATERIAL_WAVING_LIQUID_TRANSPARENT:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Ordered for size, please do not reorder
|
||||
|
@ -113,13 +114,14 @@ struct TileLayer
|
|||
u16 animation_frame_length_ms = 0;
|
||||
u16 animation_frame_count = 1;
|
||||
|
||||
u8 material_type = TILE_MATERIAL_BASIC;
|
||||
MaterialType material_type = TILE_MATERIAL_BASIC;
|
||||
u8 material_flags =
|
||||
//0 // <- DEBUG, Use the one below
|
||||
MATERIAL_FLAG_BACKFACE_CULLING |
|
||||
MATERIAL_FLAG_TILEABLE_HORIZONTAL|
|
||||
MATERIAL_FLAG_TILEABLE_VERTICAL;
|
||||
|
||||
/// @note not owned by this struct
|
||||
std::vector<FrameSpec> *frames = nullptr;
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue