Load glow scene, moved drawing to scene struct
This commit is contained in:
parent
1c12e06149
commit
9dbf252e27
3 changed files with 70 additions and 58 deletions
|
|
@ -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);
|
||||
}
|
||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue