update headers

This commit is contained in:
Nick Fisher committed 2022-12-05 17:51:44 +08:00
1 parent 58942ba94d
commit e0f9cfbde6
234 files changed
+62619 -9800

No files matched your search

+1 -1
View File
@@ -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;