Code cleanup

Fixes #657
This commit is contained in:
Sascha Willems 2020-01-24 09:16:52 +01:00
parent 8acc59a2e1
commit 652fc3ab00
9 changed files with 1 additions and 9 deletions

View file

@ -1,10 +1,8 @@
#version 450
layout(location = 0) out vec4 color;
//layout(location = 0) out float fragmentdepth;
void main()
{
// fragmentdepth = gl_FragCoord.z;
color = vec4(1.0, 0.0, 0.0, 1.0);
}

View file

@ -60,7 +60,6 @@ void main()
vec3 V = normalize(inViewVec);
vec3 R = normalize(-reflect(L, N));
vec3 diffuse = max(dot(N, L), ambient) * inColor;
// vec3 specular = pow(max(dot(R, V), 0.0), 50.0) * vec3(0.75);
outFragColor = vec4(diffuse * shadow, 1.0);