Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
MorphConstants.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
18#pragma once
19
20#include "../../core/Types.hpp"
22#include "../rhi/GfxEnums.hpp"
23#include "../../math/Math.hpp"
24
25namespace esengine {
26
31 glm::vec4 info{0.0f};
34};
35
36static_assert(sizeof(MorphConstants) == 16 + MESH_MAX_ACTIVE_MORPHS * 16,
37 "MorphConstants must be a tight run of texels");
38
39} // namespace esengine
The samplers the engine injects into a shader, and the texture unit each is pinned to.
Backend-agnostic graphics enumerations.
Math utilities and GLM configuration for ESEngine.
Core type definitions and utilities for ESEngine.
static constexpr u32 MESH_MAX_ACTIVE_MORPHS
Definition GfxEnums.hpp:142
One draw's shapes, laid out as the texels they are written as.
glm::vec4 shape[MESH_MAX_ACTIVE_MORPHS]
x = which target, y = how far towards it. Only the first info.x are written.