projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add specular component
[opengl.git]
/
normalfrag.glsl
diff --git
a/normalfrag.glsl
b/normalfrag.glsl
index 1683592f4a546c830a161286ed785d961826f60d..f78fd811b96e889185d2a5b8e7615c0ffc75f9d7 100644
(file)
--- a/
normalfrag.glsl
+++ b/
normalfrag.glsl
@@
-19,6
+19,6
@@
void main() {
vec4 lighting = (ambient + diffuse + specular) * lightColor;
vec4 lighting = (ambient + diffuse + specular) * lightColor;
- FragColor = lighting * vec4(
normalEye
, 1);
+ FragColor = lighting * vec4(
(normal + 1) / 2
, 1);
}
}