|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
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 |
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.
| u32 esengine::BatchVertex::color |
Definition at line 35 of file BatchVertex.hpp.
Referenced by esengine::BatchPlugin::emitQuad().
| glm::vec3 esengine::BatchVertex::position |
Definition at line 34 of file BatchVertex.hpp.
Referenced by esengine::TextPlugin::collect(), esengine::TilemapRenderPlugin::collect(), and esengine::BatchPlugin::emitQuad().
| f32 esengine::BatchVertex::sdfBias = 0.0f |
Definition at line 44 of file BatchVertex.hpp.
| glm::vec2 esengine::BatchVertex::texCoord |
Definition at line 36 of file BatchVertex.hpp.
Referenced by esengine::TextPlugin::collect(), esengine::TilemapRenderPlugin::collect(), and esengine::BatchPlugin::emitQuad().
| f32 esengine::BatchVertex::texIndex = 0.0f |
Definition at line 37 of file BatchVertex.hpp.