projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40147d2
)
powf -> pow
author
Daniel Hritzkiv
<daniel.hritzkiv@gmail.com>
Thu, 19 Oct 2017 17:40:03 +0000
(13:40 -0400)
committer
Daniel Hritzkiv
<daniel.hritzkiv@gmail.com>
Thu, 19 Oct 2017 20:21:29 +0000
(16:21 -0400)
Fix build errors on linux
code/glTF2Exporter.cpp
patch
|
blob
|
history
diff --git
a/code/glTF2Exporter.cpp
b/code/glTF2Exporter.cpp
index
46f201b
..
9e64155
100644
(file)
--- 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::pow
f
(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.