Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
MorphConstants.hpp File Reference

The shapes one draw is blended towards: which targets, and how far. More...

Include dependency graph for MorphConstants.hpp:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

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.