Files
MapLibreParticleLab/include/mbgl/shaders/hillshade_layer_ubo.hpp
2023-12-07 08:21:24 -08:00

24 lines
509 B
C++

#pragma once
#include <mbgl/shaders/layer_ubo.hpp>
namespace mbgl {
namespace shaders {
struct alignas(16) HillshadeDrawableUBO {
std::array<float, 4 * 4> matrix;
std::array<float, 2> latrange;
std::array<float, 2> light;
};
static_assert(sizeof(HillshadeDrawableUBO) == 16 * 5);
struct alignas(16) HillshadeEvaluatedPropsUBO {
Color highlight;
Color shadow;
Color accent;
};
static_assert(sizeof(HillshadeEvaluatedPropsUBO) % 16 == 0);
} // namespace shaders
} // namespace mbgl