From 712dc32e48f3f1cdc15dd80a051f19f27b0b5a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 3 Sep 2020 16:35:30 +0200 Subject: [PATCH] doc: slowly switch over to sRGB. Because PBR can't be done without being *correct*. --- doc/snippets/MagnumTrade.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/snippets/MagnumTrade.cpp b/doc/snippets/MagnumTrade.cpp index 2cd7bd56f..826e844d5 100644 --- a/doc/snippets/MagnumTrade.cpp +++ b/doc/snippets/MagnumTrade.cpp @@ -257,8 +257,8 @@ for(auto&& row: data.mutablePixels()) { /* [MaterialAttributeData-name] */ Trade::MaterialAttributeData a{ - Trade::MaterialAttribute::DiffuseColor, 0x3bd267ff_rgbaf}; -Trade::MaterialAttributeData b{"DiffuseColor", 0x3bd267ff_rgbaf}; + Trade::MaterialAttribute::DiffuseColor, 0x3bd267ff_srgbaf}; +Trade::MaterialAttributeData b{"DiffuseColor", 0x3bd267ff_srgbaf}; /* [MaterialAttributeData-name] */ } @@ -271,7 +271,7 @@ Float roughness = data.attribute(Trade::MaterialAttribute::Roughness); // Optional access Color4 color = data.attributeOr(Trade::MaterialAttribute::BaseColor, - 0x3bd267ff_rgbaf); + 0x3bd267ff_srgbaf); if(Containers::Optional texture = data.tryAttribute(Trade::MaterialAttribute::BaseColorTexture)) {