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

One vertex of the shared batch stream. More...

#include <BatchVertex.hpp>

Public Attributes

glm::vec3 position
u32 color
glm::vec2 texCoord
f32 texIndex = 0.0f
f32 sdfBias = 0.0f

Detailed Description

One vertex of the shared batch stream.

position.z is world z: what the projection and the depth test consume. BatchDrawKey::depth is that same point measured from the viewer instead — one is geometry, the other decides draw ORDER. They must agree on which of two draws is nearer, or painter's order and the depth buffer place them apart.

Definition at line 33 of file BatchVertex.hpp.

Member Data Documentation

◆ color

u32 esengine::BatchVertex::color

Definition at line 35 of file BatchVertex.hpp.

Referenced by esengine::BatchPlugin::emitQuad().

◆ position

glm::vec3 esengine::BatchVertex::position

◆ sdfBias

f32 esengine::BatchVertex::sdfBias = 0.0f

Definition at line 44 of file BatchVertex.hpp.

◆ texCoord

glm::vec2 esengine::BatchVertex::texCoord

◆ texIndex

f32 esengine::BatchVertex::texIndex = 0.0f

Definition at line 37 of file BatchVertex.hpp.


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