parent
8acc59a2e1
commit
652fc3ab00
9 changed files with 1 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue