everything works when you palce the light in the right spot
This commit is contained in:
1 parent
83feee2706
commit
60457309ae
5 files changed
+48
-28
No files matched your search
@@ -16,7 +16,8 @@ void main()
|
||||
// * view * model
|
||||
gl_Position = projection * model * vec4(position, 1.0);
|
||||
FragPos = vec3(model * vec4(position, 1.0));
|
||||
Normal = normal;
|
||||
Normal = transpose(inverse(mat3(model))) * normal;
|
||||
LightPos = lightPos;
|
||||
// Normal = normal;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user