summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chickadee/render/phong.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/render/phong.scm b/chickadee/render/phong.scm
index cb649de..a07f682 100644
--- a/chickadee/render/phong.scm
+++ b/chickadee/render/phong.scm
@@ -182,7 +182,7 @@ void main() {
} else {
baseDiffuseColor = vec3(1.0, 1.0, 1.0);
}
- if(material.useDiffuseMap) {
+ if(material.useSpecularMap) {
baseSpecularColor = texture2D(material.specularMap, fragTex).xyz;
} else {
baseSpecularColor = vec3(1.0, 1.0, 1.0);