mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-10 03:55:20 +01:00
Introduce array textures for node rendering (#16574)
This commit is contained in:
@@ -58,6 +58,7 @@ static const VertexType vtStandard = {
|
||||
{EVA_NORMAL, 3, GL_FLOAT, VertexAttribute::Mode::Regular, offsetof(S3DVertex, Normal)},
|
||||
{EVA_COLOR, 4, GL_UNSIGNED_BYTE, VertexAttribute::Mode::Normalized, offsetof(S3DVertex, Color)},
|
||||
{EVA_TCOORD0, 2, GL_FLOAT, VertexAttribute::Mode::Regular, offsetof(S3DVertex, TCoords)},
|
||||
{EVA_AUX, 1, GL_UNSIGNED_SHORT, VertexAttribute::Mode::Regular, offsetof(S3DVertex, Aux)},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -67,6 +68,7 @@ static const VertexType vtStandard = {
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
|
||||
|
||||
|
||||
static const VertexType vt2TCoords = {
|
||||
sizeof(S3DVertex2TCoords),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user