Starting the refactor session on day 14. Moved the glad and KHR dirs into src to start.
This commit is contained in:
parent
1b7066757a
commit
5b5e8a9fb0
62 changed files with 13880 additions and 0 deletions
16
14-refactor/shaders/08-lightsource.frag.glsl
Normal file
16
14-refactor/shaders/08-lightsource.frag.glsl
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
struct Light {
|
||||
vec3 position;
|
||||
vec3 ambient;
|
||||
vec3 diffuse;
|
||||
vec3 specular;
|
||||
};
|
||||
|
||||
uniform Light light;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(light.diffuse, 1.0); // set all 4 vector values to 1.0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue