Drawable Renderer (#1570), [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-05-16 16:59:33 +00:00
committed by Bart Louwers
parent 76658d8717
commit 55077a83dd

View File

@@ -103,7 +103,8 @@ public:
// Reset a single color attribute for all vertexes
virtual void resetColor(const Color&) = 0;
/// Convert from the odd partially-normalized color component array produced by `Color::toArray` into normalized RGBA.
/// Convert from the odd partially-normalized color component array produced by `Color::toArray` into normalized
/// RGBA.
static gfx::VertexAttribute::float4 colorAttrRGBA(const Color& color) {
const auto components = color.toArray();
return {static_cast<float>(components[0] / 255.0),