Load glow scene, moved drawing to scene struct

This commit is contained in:
saschawillems 2016-05-26 11:31:52 +02:00
parent 1c12e06149
commit 9dbf252e27
3 changed files with 70 additions and 58 deletions

View file

@ -19,7 +19,7 @@ void main()
vec3 L = normalize(inLightVec);
vec3 V = normalize(inViewVec);
vec3 R = reflect(-L, N);
vec3 diffuse = max(dot(N, L), 0.0) * inColor;
vec3 diffuse = max(dot(N, L), 0.25) * inColor;
vec3 specular = pow(max(dot(R, V), 0.0), 16.0) * vec3(0.75);
outFragColor = vec4(diffuse * 1.75 + specular, 1.0);
}