Files
MapLibreParticleLab/include/mbgl/shaders/raster_layer_ubo.hpp
Alex Cristici cca3adb375 Layer group uniforms (#2247)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-18 14:22:11 +03:00

36 lines
742 B
C++

#pragma once
#include <mbgl/shaders/layer_ubo.hpp>
namespace mbgl {
namespace shaders {
struct alignas(16) RasterDrawableUBO {
std::array<float, 4 * 4> matrix;
};
static_assert(sizeof(RasterDrawableUBO) == 64);
struct alignas(16) RasterEvaluatedPropsUBO {
std::array<float, 4> spin_weights;
std::array<float, 2> tl_parent;
float scale_parent;
float buffer_scale;
float fade_t;
float opacity;
float brightness_low;
float brightness_high;
float saturation_factor;
float contrast_factor;
float pad1, pad2;
};
static_assert(sizeof(RasterEvaluatedPropsUBO) == 64);
enum {
idRasterDrawableUBO,
idRasterEvaluatedPropsUBO,
rasterUBOCount
};
} // namespace shaders
} // namespace mbgl