diff options
author | jvech <jmvalenciae@unal.edu.co> | 2022-11-03 14:50:17 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2022-11-03 14:50:17 -0500 |
commit | 02b8093bf0c09b838650f96d3d86be5d3231490e (patch) | |
tree | a4fd3fe3d31fc963c500a7eaf8d2146e043b7db7 /shaders/dummy.vsh | |
parent | 45584a1c39c699e2bc68638fe2402e590631e3a3 (diff) |
add: material and illumnation render implemented
shaders now render the models using ambient, diffuse and specular
properties and react to directional light.
Diffstat (limited to 'shaders/dummy.vsh')
-rw-r--r-- | shaders/dummy.vsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/dummy.vsh b/shaders/dummy.vsh index bd540ab..d3a2082 100644 --- a/shaders/dummy.vsh +++ b/shaders/dummy.vsh @@ -15,6 +15,6 @@ void main() { gl_Position = proj * view * model * vec4(aPos, 1.0f); FragPos = vec3(model * vec4(aPos, 1.0)); - //Normal = vec3(rotNormals * vec4(aNormal, 1.0)); - //TexCoords = aTexCoords; + Normal = vec3(rotNormals * vec4(aNormal, 1.0)); + TexCoords = aTexCoords; } |