diff options
author | David Thompson <dthompson2@worcester.edu> | 2019-11-05 20:27:28 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2019-11-05 20:27:28 -0500 |
commit | 3cd5be71054fae67705c306726b65631c13b7634 (patch) | |
tree | 591956b94196dcde9f3e8227e799715dd558c72e | |
parent | ab7c8acfd6344668c6605321e03082dc53c8a4d2 (diff) |
render: phong: Fix error in shader.
Wrong boolean value was being checked for specular map.
-rw-r--r-- | chickadee/render/phong.scm | 2 |
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); |