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:
committed by
Bart Louwers
parent
76658d8717
commit
55077a83dd
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user