|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The shapes one draw is blended towards: which targets, and how far. More...
#include "../../core/Types.hpp"#include "./EngineTextureUnits.hpp"#include "../rhi/GfxEnums.hpp"#include "../../math/Math.hpp"

Go to the source code of this file.
Classes | |
| struct | esengine::MorphConstants |
| One draw's shapes, laid out as the texels they are written as. More... | |
Namespaces | |
| namespace | esengine |
The shapes one draw is blended towards: which targets, and how far.
Per DRAW. The DELTAS are not here: they are per vertex per target, which is megabytes, so they live in a texture the mesh owns and this says where in it to look. What is here is the part that changes every frame: the weights.
The draw list writes them into the frame's record texture beside the draw's entry, info first and then one texel per live shape, and the entry's z names the first (see InstanceConstants.hpp). A texel fetch and not a uniform block: the vertex stage loops over the shapes, and a loop indexing a uniform array is one Adreno 6xx drivers fail to link.
Definition in file MorphConstants.hpp.