From 6e888386029a4265a27e5480271c6ca381b26def Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Thu, 19 Oct 2017 13:40:03 -0400 Subject: [PATCH] powf -> pow Fix build errors on linux --- code/glTF2Exporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/glTF2Exporter.cpp b/code/glTF2Exporter.cpp index 46f201b52..9e6415522 100644 --- a/code/glTF2Exporter.cpp +++ b/code/glTF2Exporter.cpp @@ -448,7 +448,7 @@ void glTF2Exporter::ExportMaterials() float specularIntensity = specularColor[0] * 0.2125 + specularColor[1] * 0.7154 + specularColor[2] * 0.0721; float roughnessFactor = 1 - std::sqrt(shininess / 1000); - roughnessFactor = std::powf(roughnessFactor, 2); + roughnessFactor = std::pow(roughnessFactor, 2); roughnessFactor = std::min(std::max(roughnessFactor, 0.0f), 1.0f); // low specular intensity values should produce a rough material even if shininess is high.