Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::MeshSkinLayout Struct Reference

Where a skinned mesh's vertex holds what the skin cache reads and writes: byte offsets in one vertex, -1 for a channel it does not have. Positions, normals and tangents are floats; joints a byte or two, weights a normalized byte (0), a normalized short (1) or a float (2). More...

#include <Mesh.hpp>

Public Attributes

u32 stride = 0
i32 position = -1
i32 normal = -1
i32 tangent = -1
i32 joints = -1
i32 weights = -1
u32 jointBytes = 1
u32 weightKind = 0

Detailed Description

Where a skinned mesh's vertex holds what the skin cache reads and writes: byte offsets in one vertex, -1 for a channel it does not have. Positions, normals and tangents are floats; joints a byte or two, weights a normalized byte (0), a normalized short (1) or a float (2).

Definition at line 51 of file Mesh.hpp.

Member Data Documentation

◆ jointBytes

u32 esengine::MeshSkinLayout::jointBytes = 1

Definition at line 58 of file Mesh.hpp.

◆ joints

i32 esengine::MeshSkinLayout::joints = -1

Definition at line 56 of file Mesh.hpp.

Referenced by esengine::SkinCache::schedule().

◆ normal

i32 esengine::MeshSkinLayout::normal = -1

Definition at line 54 of file Mesh.hpp.

◆ position

i32 esengine::MeshSkinLayout::position = -1

Definition at line 53 of file Mesh.hpp.

Referenced by esengine::SkinCache::schedule().

◆ stride

u32 esengine::MeshSkinLayout::stride = 0

Definition at line 52 of file Mesh.hpp.

Referenced by esengine::SkinCache::schedule().

◆ tangent

i32 esengine::MeshSkinLayout::tangent = -1

Definition at line 55 of file Mesh.hpp.

◆ weightKind

u32 esengine::MeshSkinLayout::weightKind = 0

Definition at line 59 of file Mesh.hpp.

◆ weights

i32 esengine::MeshSkinLayout::weights = -1

Definition at line 57 of file Mesh.hpp.

Referenced by esengine::SkinCache::schedule().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/resource/Mesh.hpp