Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
RippleNormals.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
6#pragma once
7
9
10#include <vector>
11
12namespace esengine {
13
14inline constexpr u32 RIPPLE_NORMALS_SIZE = 256;
16inline constexpr u32 RIPPLE_NORMALS_LONGEST = 2;
17
19std::vector<u8> buildRippleNormals();
20
21} // namespace esengine
Core type definitions and utilities for ESEngine.
constexpr u32 RIPPLE_NORMALS_SIZE
constexpr u32 RIPPLE_NORMALS_LONGEST
The longest wave in a field runs this many times across the texture, the shortest twenty: a field rea...
std::uint32_t u32
Unsigned 32-bit integer.
Definition Types.hpp:45
std::vector< u8 > buildRippleNormals()
RGBA8, RIPPLE_NORMALS_SIZE square. A texel's rg (and ba) is the xy of a unit normal whose z is up: th...