Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
RippleNormals.cpp File Reference
#include "RippleNormals.hpp"
#include <algorithm>
#include <cmath>
Include dependency graph for RippleNormals.cpp:

Go to the source code of this file.

Namespaces

namespace  esengine

Functions

std::vector< u8 > esengine::buildRippleNormals ()
 RGBA8, RIPPLE_NORMALS_SIZE square. A texel's rg (and ba) is the xy of a unit normal whose z is up: the slope there is xy / z.