update headers
This commit is contained in:
@@ -150,7 +150,7 @@ template<>
|
||||
inline filament::math::float3 linearToSRGB(const filament::math::float3& color) {
|
||||
using filament::math::float3;
|
||||
float3 sRGBColor{color};
|
||||
#pragma nounroll
|
||||
UTILS_NOUNROLL
|
||||
for (size_t i = 0; i < sRGBColor.size(); i++) {
|
||||
sRGBColor[i] = (sRGBColor[i] <= 0.0031308f) ?
|
||||
sRGBColor[i] * 12.92f : (powf(sRGBColor[i], 1.0f / 2.4f) * 1.055f) - 0.055f;
|
||||
|
||||
Reference in New Issue
Block a user